From d203c55b7ced6a54fcf76e1fd63b3a8b3fffa638 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 10 Mar 2023 00:44:02 +0000 Subject: [PATCH 1/2] fix: Add service_yaml_parameters to `java_gapic_library` targets PiperOrigin-RevId: 515423972 Source-Link: https://github.com/googleapis/googleapis/commit/b5b457107dc6a34527f9304e44363611313674d0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/806347af5bd3f5d1e9c6d85ccf489d5dbc5ef667 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODA2MzQ3YWY1YmQzZjVkMWU5YzZkODVjY2Y0ODlkNWRiYzVlZjY2NyJ9 --- .../storage/v1/BigQueryWriteGrpc.java | 1069 -- .../storage/v1beta2/BigQueryWriteGrpc.java | 1049 -- .../storage/v1/BaseBigQueryReadClient.java | 0 .../storage/v1/BaseBigQueryReadSettings.java | 1 + .../storage/v1/BigQueryWriteClient.java | 0 .../storage/v1/BigQueryWriteSettings.java | 1 + .../bigquery/storage/v1/gapic_metadata.json | 0 .../bigquery/storage/v1/package-info.java | 4 +- .../storage/v1/stub/BigQueryReadStub.java | 0 .../v1/stub/BigQueryReadStubSettings.java | 369 + .../storage/v1/stub/BigQueryWriteStub.java | 0 .../v1/stub/BigQueryWriteStubSettings.java | 0 .../stub/GrpcBigQueryReadCallableFactory.java | 0 .../storage/v1/stub/GrpcBigQueryReadStub.java | 1 + .../GrpcBigQueryWriteCallableFactory.java | 0 .../v1/stub/GrpcBigQueryWriteStub.java | 1 + .../v1/BaseBigQueryReadClientTest.java | 0 .../storage/v1/BigQueryWriteClientTest.java | 0 .../bigquery/storage/v1/MockBigQueryRead.java | 0 .../storage/v1/MockBigQueryReadImpl.java | 0 .../storage/v1/MockBigQueryWrite.java | 0 .../storage/v1/MockBigQueryWriteImpl.java | 0 .../bigquery/storage/v1/BigQueryReadGrpc.java | 419 +- .../storage/v1/BigQueryWriteGrpc.java | 832 ++ .../bigquery/storage/v1/AnnotationsProto.java | 71 + .../storage/v1/AppendRowsRequest.java | 1696 ++- .../v1/AppendRowsRequestOrBuilder.java | 158 +- .../storage/v1/AppendRowsResponse.java | 1261 +-- .../v1/AppendRowsResponseOrBuilder.java | 81 +- .../cloud/bigquery/storage/v1/ArrowProto.java | 83 + .../bigquery/storage/v1/ArrowRecordBatch.java | 359 +- .../storage/v1/ArrowRecordBatchOrBuilder.java | 31 +- .../bigquery/storage/v1/ArrowSchema.java | 286 +- .../storage/v1/ArrowSchemaOrBuilder.java | 19 + .../storage/v1/ArrowSerializationOptions.java | 452 +- .../ArrowSerializationOptionsOrBuilder.java | 30 + .../cloud/bigquery/storage/v1/AvroProto.java | 78 + .../cloud/bigquery/storage/v1/AvroRows.java | 349 +- .../storage/v1/AvroRowsOrBuilder.java | 31 +- .../cloud/bigquery/storage/v1/AvroSchema.java | 321 +- .../storage/v1/AvroSchemaOrBuilder.java | 27 +- .../storage/v1/AvroSerializationOptions.java | 305 +- .../v1/AvroSerializationOptionsOrBuilder.java | 21 +- .../v1/BatchCommitWriteStreamsRequest.java | 498 +- ...tchCommitWriteStreamsRequestOrBuilder.java | 53 +- .../v1/BatchCommitWriteStreamsResponse.java | 529 +- ...chCommitWriteStreamsResponseOrBuilder.java | 44 +- .../storage/v1/CreateReadSessionRequest.java | 576 +- .../v1/CreateReadSessionRequestOrBuilder.java | 61 +- .../storage/v1/CreateWriteStreamRequest.java | 510 +- .../v1/CreateWriteStreamRequestOrBuilder.java | 58 + .../cloud/bigquery/storage/v1/DataFormat.java | 82 +- .../v1/FinalizeWriteStreamRequest.java | 379 +- .../FinalizeWriteStreamRequestOrBuilder.java | 31 + .../v1/FinalizeWriteStreamResponse.java | 318 +- .../FinalizeWriteStreamResponseOrBuilder.java | 19 + .../bigquery/storage/v1/FlushRowsRequest.java | 439 +- .../storage/v1/FlushRowsRequestOrBuilder.java | 43 +- .../storage/v1/FlushRowsResponse.java | 295 +- .../v1/FlushRowsResponseOrBuilder.java | 19 + .../storage/v1/GetWriteStreamRequest.java | 422 +- .../v1/GetWriteStreamRequestOrBuilder.java | 41 +- .../bigquery/storage/v1/ProjectName.java | 0 .../bigquery/storage/v1/ProtoBufProto.java | 69 + .../cloud/bigquery/storage/v1/ProtoRows.java | 330 +- .../storage/v1/ProtoRowsOrBuilder.java | 27 +- .../bigquery/storage/v1/ProtoSchema.java | 364 +- .../storage/v1/ProtoSchemaOrBuilder.java | 26 +- .../bigquery/storage/v1/ReadRowsRequest.java | 389 +- .../storage/v1/ReadRowsRequestOrBuilder.java | 41 + .../bigquery/storage/v1/ReadRowsResponse.java | 1042 +- .../storage/v1/ReadRowsResponseOrBuilder.java | 93 +- .../bigquery/storage/v1/ReadSession.java | 3038 ++---- .../storage/v1/ReadSessionOrBuilder.java | 217 +- .../cloud/bigquery/storage/v1/ReadStream.java | 321 +- .../bigquery/storage/v1/ReadStreamName.java | 0 .../storage/v1/ReadStreamOrBuilder.java | 27 +- .../cloud/bigquery/storage/v1/RowError.java | 477 +- .../storage/v1/RowErrorOrBuilder.java | 36 +- .../storage/v1/SplitReadStreamRequest.java | 395 +- .../v1/SplitReadStreamRequestOrBuilder.java | 38 +- .../storage/v1/SplitReadStreamResponse.java | 461 +- .../v1/SplitReadStreamResponseOrBuilder.java | 34 +- .../bigquery/storage/v1/StorageError.java | 585 +- .../storage/v1/StorageErrorOrBuilder.java | 42 +- .../bigquery/storage/v1/StorageProto.java | 499 + .../bigquery/storage/v1/StreamProto.java | 175 + .../bigquery/storage/v1/StreamStats.java | 684 +- .../storage/v1/StreamStatsOrBuilder.java | 26 +- .../bigquery/storage/v1/TableFieldSchema.java | 1258 +-- .../storage/v1/TableFieldSchemaOrBuilder.java | 120 +- .../cloud/bigquery/storage/v1/TableName.java | 0 .../cloud/bigquery/storage/v1/TableProto.java | 90 + .../bigquery/storage/v1/TableSchema.java | 401 +- .../storage/v1/TableSchemaOrBuilder.java | 36 +- .../bigquery/storage/v1/ThrottleState.java | 289 +- .../storage/v1/ThrottleStateOrBuilder.java | 20 + .../bigquery/storage/v1/WriteStream.java | 1123 +- .../bigquery/storage/v1/WriteStreamName.java | 0 .../storage/v1/WriteStreamOrBuilder.java | 118 +- .../bigquery/storage/v1/WriteStreamView.java | 82 +- .../bigquery/storage/v1/annotations.proto | 0 .../cloud/bigquery/storage/v1/arrow.proto | 0 .../cloud/bigquery/storage/v1/avro.proto | 0 .../cloud/bigquery/storage/v1/protobuf.proto | 0 .../cloud/bigquery/storage/v1/storage.proto | 0 .../cloud/bigquery/storage/v1/stream.proto | 0 .../cloud/bigquery/storage/v1/table.proto | 0 .../v1beta1/BaseBigQueryStorageClient.java | 0 .../v1beta1/BaseBigQueryStorageSettings.java | 1 + .../storage/v1beta1/gapic_metadata.json | 0 .../storage/v1beta1/package-info.java | 4 +- .../v1beta1/stub/BigQueryStorageStub.java | 0 .../stub/BigQueryStorageStubSettings.java | 0 .../GrpcBigQueryStorageCallableFactory.java | 0 .../v1beta1/stub/GrpcBigQueryStorageStub.java | 1 + .../BaseBigQueryStorageClientTest.java | 0 .../storage/v1beta1/MockBigQueryStorage.java | 0 .../v1beta1/MockBigQueryStorageImpl.java | 0 .../storage/v1beta1/BigQueryStorageGrpc.java | 672 +- .../bigquery/storage/v1beta1/ArrowProto.java | 772 +- .../bigquery/storage/v1beta1/AvroProto.java | 775 +- .../bigquery/storage/v1beta1/ProjectName.java | 0 .../bigquery/storage/v1beta1/ReadOptions.java | 565 +- .../bigquery/storage/v1beta1/Storage.java | 9165 ++++++----------- .../storage/v1beta1/TableReferenceProto.java | 1148 +-- .../bigquery/storage/v1beta1/arrow.proto | 0 .../cloud/bigquery/storage/v1beta1/avro.proto | 0 .../storage/v1beta1/read_options.proto | 0 .../bigquery/storage/v1beta1/storage.proto | 0 .../storage/v1beta1/table_reference.proto | 0 .../v1beta2/BaseBigQueryReadClient.java | 0 .../v1beta2/BaseBigQueryReadSettings.java | 1 + .../storage/v1beta2/BigQueryWriteClient.java | 0 .../v1beta2/BigQueryWriteSettings.java | 1 + .../storage/v1beta2/gapic_metadata.json | 0 .../storage/v1beta2/package-info.java | 4 +- .../v1beta2/stub/BigQueryReadStub.java | 0 .../stub/BigQueryReadStubSettings.java | 370 + .../v1beta2/stub/BigQueryWriteStub.java | 0 .../stub/BigQueryWriteStubSettings.java | 0 .../stub/GrpcBigQueryReadCallableFactory.java | 0 .../v1beta2/stub/GrpcBigQueryReadStub.java | 1 + .../GrpcBigQueryWriteCallableFactory.java | 0 .../v1beta2/stub/GrpcBigQueryWriteStub.java | 1 + .../v1beta2/BaseBigQueryReadClientTest.java | 0 .../v1beta2/BigQueryWriteClientTest.java | 0 .../storage/v1beta2/MockBigQueryRead.java | 0 .../storage/v1beta2/MockBigQueryReadImpl.java | 0 .../storage/v1beta2/MockBigQueryWrite.java | 0 .../v1beta2/MockBigQueryWriteImpl.java | 0 .../storage/v1beta2/BigQueryReadGrpc.java | 423 +- .../storage/v1beta2/BigQueryWriteGrpc.java | 806 ++ .../storage/v1beta2/AppendRowsRequest.java | 1216 +-- .../v1beta2/AppendRowsRequestOrBuilder.java | 63 +- .../storage/v1beta2/AppendRowsResponse.java | 1130 +- .../v1beta2/AppendRowsResponseOrBuilder.java | 57 +- .../bigquery/storage/v1beta2/ArrowProto.java | 80 + .../storage/v1beta2/ArrowRecordBatch.java | 295 +- .../v1beta2/ArrowRecordBatchOrBuilder.java | 19 + .../bigquery/storage/v1beta2/ArrowSchema.java | 289 +- .../storage/v1beta2/ArrowSchemaOrBuilder.java | 19 + .../v1beta2/ArrowSerializationOptions.java | 453 +- .../ArrowSerializationOptionsOrBuilder.java | 30 +- .../bigquery/storage/v1beta2/AvroProto.java | 64 + .../bigquery/storage/v1beta2/AvroRows.java | 292 +- .../storage/v1beta2/AvroRowsOrBuilder.java | 19 + .../bigquery/storage/v1beta2/AvroSchema.java | 325 +- .../storage/v1beta2/AvroSchemaOrBuilder.java | 27 +- .../BatchCommitWriteStreamsRequest.java | 483 +- ...tchCommitWriteStreamsRequestOrBuilder.java | 45 +- .../BatchCommitWriteStreamsResponse.java | 555 +- ...chCommitWriteStreamsResponseOrBuilder.java | 41 +- .../v1beta2/CreateReadSessionRequest.java | 571 +- .../CreateReadSessionRequestOrBuilder.java | 58 +- .../v1beta2/CreateWriteStreamRequest.java | 538 +- .../CreateWriteStreamRequestOrBuilder.java | 58 + .../bigquery/storage/v1beta2/DataFormat.java | 90 +- .../v1beta2/FinalizeWriteStreamRequest.java | 391 +- .../FinalizeWriteStreamRequestOrBuilder.java | 31 + .../v1beta2/FinalizeWriteStreamResponse.java | 330 +- .../FinalizeWriteStreamResponseOrBuilder.java | 19 + .../storage/v1beta2/FlushRowsRequest.java | 439 +- .../v1beta2/FlushRowsRequestOrBuilder.java | 43 +- .../storage/v1beta2/FlushRowsResponse.java | 295 +- .../v1beta2/FlushRowsResponseOrBuilder.java | 19 + .../v1beta2/GetWriteStreamRequest.java | 379 +- .../GetWriteStreamRequestOrBuilder.java | 31 + .../bigquery/storage/v1beta2/ProjectName.java | 0 .../storage/v1beta2/ProtoBufProto.java | 68 + .../bigquery/storage/v1beta2/ProtoRows.java | 340 +- .../storage/v1beta2/ProtoRowsOrBuilder.java | 27 +- .../bigquery/storage/v1beta2/ProtoSchema.java | 367 +- .../storage/v1beta2/ProtoSchemaOrBuilder.java | 26 +- .../storage/v1beta2/ReadRowsRequest.java | 392 +- .../v1beta2/ReadRowsRequestOrBuilder.java | 41 + .../storage/v1beta2/ReadRowsResponse.java | 1064 +- .../v1beta2/ReadRowsResponseOrBuilder.java | 96 +- .../bigquery/storage/v1beta2/ReadSession.java | 2636 ++--- .../storage/v1beta2/ReadSessionOrBuilder.java | 199 +- .../bigquery/storage/v1beta2/ReadStream.java | 325 +- .../storage/v1beta2/ReadStreamName.java | 0 .../storage/v1beta2/ReadStreamOrBuilder.java | 27 +- .../v1beta2/SplitReadStreamRequest.java | 418 +- .../SplitReadStreamRequestOrBuilder.java | 38 +- .../v1beta2/SplitReadStreamResponse.java | 501 +- .../SplitReadStreamResponseOrBuilder.java | 34 +- .../storage/v1beta2/StorageError.java | 567 +- .../v1beta2/StorageErrorOrBuilder.java | 42 +- .../storage/v1beta2/StorageProto.java | 457 + .../bigquery/storage/v1beta2/StreamProto.java | 167 + .../bigquery/storage/v1beta2/StreamStats.java | 723 +- .../storage/v1beta2/StreamStatsOrBuilder.java | 26 +- .../storage/v1beta2/TableFieldSchema.java | 1095 +- .../v1beta2/TableFieldSchemaOrBuilder.java | 102 +- .../bigquery/storage/v1beta2/TableName.java | 0 .../bigquery/storage/v1beta2/TableProto.java | 87 + .../bigquery/storage/v1beta2/TableSchema.java | 421 +- .../storage/v1beta2/TableSchemaOrBuilder.java | 36 +- .../storage/v1beta2/ThrottleState.java | 292 +- .../v1beta2/ThrottleStateOrBuilder.java | 20 + .../bigquery/storage/v1beta2/WriteStream.java | 912 +- .../storage/v1beta2/WriteStreamName.java | 0 .../storage/v1beta2/WriteStreamOrBuilder.java | 95 +- .../bigquery/storage/v1beta2/arrow.proto | 0 .../cloud/bigquery/storage/v1beta2/avro.proto | 0 .../bigquery/storage/v1beta2/protobuf.proto | 0 .../bigquery/storage/v1beta2/storage.proto | 0 .../bigquery/storage/v1beta2/stream.proto | 0 .../bigquery/storage/v1beta2/table.proto | 0 .../bigquery/storage/v1/AnnotationsProto.java | 86 - .../cloud/bigquery/storage/v1/ArrowProto.java | 98 - .../storage/v1/ArrowSchemaOrBuilder.java | 38 - .../ArrowSerializationOptionsOrBuilder.java | 57 - .../cloud/bigquery/storage/v1/AvroProto.java | 93 - .../v1/CreateWriteStreamRequestOrBuilder.java | 97 - .../FinalizeWriteStreamRequestOrBuilder.java | 56 - .../FinalizeWriteStreamResponseOrBuilder.java | 38 - .../v1/FlushRowsResponseOrBuilder.java | 38 - .../bigquery/storage/v1/ProtoBufProto.java | 85 - .../storage/v1/ReadRowsRequestOrBuilder.java | 69 - .../bigquery/storage/v1/StorageProto.java | 557 - .../bigquery/storage/v1/StreamProto.java | 214 - .../cloud/bigquery/storage/v1/TableProto.java | 114 - .../storage/v1/ThrottleStateOrBuilder.java | 39 - .../bigquery/storage/v1beta2/ArrowProto.java | 95 - .../v1beta2/ArrowRecordBatchOrBuilder.java | 38 - .../storage/v1beta2/ArrowSchemaOrBuilder.java | 38 - .../bigquery/storage/v1beta2/AvroProto.java | 78 - .../storage/v1beta2/AvroRowsOrBuilder.java | 38 - .../CreateWriteStreamRequestOrBuilder.java | 97 - .../FinalizeWriteStreamRequestOrBuilder.java | 56 - .../FinalizeWriteStreamResponseOrBuilder.java | 38 - .../v1beta2/FlushRowsResponseOrBuilder.java | 38 - .../GetWriteStreamRequestOrBuilder.java | 56 - .../storage/v1beta2/ProtoBufProto.java | 84 - .../v1beta2/ReadRowsRequestOrBuilder.java | 69 - .../storage/v1beta2/StorageProto.java | 506 - .../bigquery/storage/v1beta2/StreamProto.java | 199 - .../bigquery/storage/v1beta2/TableProto.java | 103 - .../v1beta2/ThrottleStateOrBuilder.java | 39 - 261 files changed, 24910 insertions(+), 40281 deletions(-) delete mode 100644 grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java delete mode 100644 grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java (99%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java (99%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java (96%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStubSettings.java rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStub.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadCallableFactory.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java (99%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteCallableFactory.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java (99%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryReadImpl.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWriteImpl.java (100%) rename {grpc-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java (58%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java (71%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java (74%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java (74%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java (86%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java (64%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java (51%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java (59%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java (65%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java (51%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java (65%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java (50%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java (66%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java (60%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java (64%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java (62%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java (74%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java (82%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java (65%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java (63%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java (59%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java (69%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java (60%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java (60%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java (66%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java (58%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java (64%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java (57%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java (100%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java (68%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java (68%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java (72%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java (79%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java (68%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java (73%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java (70%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java (67%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java (66%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java (100%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java (55%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java (68%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java (64%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java (65%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java (54%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java (68%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java (77%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java (69%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java (70%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java (61%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java (70%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java (72%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java (100%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java (71%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java (65%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java (64%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java (67%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java (100%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java (71%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java (70%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto (100%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto (100%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto (100%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto (100%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto (100%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto (100%) rename {proto-google-cloud-bigquerystorage-v1 => owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/table.proto (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java (99%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java (94%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStub.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageCallableFactory.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java (99%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClientTest.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta1/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorageImpl.java (100%) rename {grpc-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/grpc-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java (51%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java (62%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java (65%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java (100%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java (71%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java (65%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java (61%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto (100%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto (100%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/proto/google/cloud/bigquery/storage/v1beta1/read_options.proto (100%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/proto/google/cloud/bigquery/storage/v1beta1/storage.proto (100%) rename {proto-google-cloud-bigquerystorage-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1}/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java (99%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java (99%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java (96%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java (100%) create mode 100644 owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStubSettings.java rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadCallableFactory.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java (99%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java (99%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClientTest.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClientTest.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryReadImpl.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java (100%) rename {google-cloud-bigquerystorage => owl-bot-staging/v1beta2/google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWriteImpl.java (100%) rename {grpc-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java (58%) create mode 100644 owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java (70%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java (76%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java (69%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java (83%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java (65%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java (66%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java (60%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java (51%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java (65%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java (66%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java (51%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java (66%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java (70%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java (73%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java (83%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java (61%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java (55%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java (58%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java (65%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java (59%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java (60%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java (67%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java (58%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java (65%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java (61%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java (100%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java (68%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java (68%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java (69%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java (71%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java (64%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java (68%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java (73%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java (66%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java (62%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java (68%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java (100%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java (56%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java (64%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java (55%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java (67%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java (78%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java (69%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java (64%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java (69%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java (62%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java (65%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java (58%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java (100%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java (70%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java (65%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java (66%) create mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java (67%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java (100%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java (71%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto (100%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto (100%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto (100%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto (100%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/stream.proto (100%) rename {proto-google-cloud-bigquerystorage-v1beta2 => owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/table.proto (100%) delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java delete mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java diff --git a/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java b/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java deleted file mode 100644 index e6d4a78c92..0000000000 --- a/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java +++ /dev/null @@ -1,1069 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.bigquery.storage.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * BigQuery Write API.
- * The Write API can be used to write data to BigQuery.
- * For supplementary information about the Write API, see:
- * https://cloud.google.com/bigquery/docs/write-api
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/storage/v1/storage.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BigQueryWriteGrpc { - - private BigQueryWriteGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1.BigQueryWrite"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream> - getCreateWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWriteStream", - requestType = com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.WriteStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream> - getCreateWriteStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream> - getCreateWriteStreamMethod; - if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { - BigQueryWriteGrpc.getCreateWriteStreamMethod = - getCreateWriteStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.WriteStream - .getDefaultInstance())) - .setSchemaDescriptor( - new BigQueryWriteMethodDescriptorSupplier("CreateWriteStream")) - .build(); - } - } - } - return getCreateWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse> - getAppendRowsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AppendRows", - requestType = com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse> - getAppendRowsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse> - getAppendRowsMethod; - if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { - BigQueryWriteGrpc.getAppendRowsMethod = - getAppendRowsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AppendRows")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.AppendRowsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("AppendRows")) - .build(); - } - } - } - return getAppendRowsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream> - getGetWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWriteStream", - requestType = com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.WriteStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream> - getGetWriteStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream> - getGetWriteStreamMethod; - if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { - BigQueryWriteGrpc.getGetWriteStreamMethod = - getGetWriteStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.WriteStream - .getDefaultInstance())) - .setSchemaDescriptor( - new BigQueryWriteMethodDescriptorSupplier("GetWriteStream")) - .build(); - } - } - } - return getGetWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> - getFinalizeWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FinalizeWriteStream", - requestType = com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> - getFinalizeWriteStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> - getFinalizeWriteStreamMethod; - if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) - == null) { - BigQueryWriteGrpc.getFinalizeWriteStreamMethod = - getFinalizeWriteStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "FinalizeWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BigQueryWriteMethodDescriptorSupplier("FinalizeWriteStream")) - .build(); - } - } - } - return getFinalizeWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> - getBatchCommitWriteStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchCommitWriteStreams", - requestType = com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> - getBatchCommitWriteStreamsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> - getBatchCommitWriteStreamsMethod; - if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) - == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) - == null) { - BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod = - getBatchCommitWriteStreamsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchCommitWriteStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BigQueryWriteMethodDescriptorSupplier("BatchCommitWriteStreams")) - .build(); - } - } - } - return getBatchCommitWriteStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1.FlushRowsResponse> - getFlushRowsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FlushRows", - requestType = com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1.FlushRowsResponse> - getFlushRowsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1.FlushRowsResponse> - getFlushRowsMethod; - if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { - BigQueryWriteGrpc.getFlushRowsMethod = - getFlushRowsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FlushRows")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.FlushRowsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.FlushRowsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FlushRows")) - .build(); - } - } - } - return getFlushRowsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BigQueryWriteStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteStub(channel, callOptions); - } - }; - return BigQueryWriteStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BigQueryWriteBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteBlockingStub(channel, callOptions); - } - }; - return BigQueryWriteBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BigQueryWriteFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteFutureStub(channel, callOptions); - } - }; - return BigQueryWriteFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * For supplementary information about the Write API, see:
-   * https://cloud.google.com/bigquery/docs/write-api
-   * 
- */ - public abstract static class BigQueryWriteImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public void createWriteStream( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWriteStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Appends data to the given stream.
-     * If `offset` is specified, the `offset` is checked against the end of
-     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
-     * attempt is made to append to an offset beyond the current end of the stream
-     * or `ALREADY_EXISTS` if user provides an `offset` that has already been
-     * written to. User can retry with adjusted offset within the same RPC
-     * connection. If `offset` is not specified, append happens at the end of the
-     * stream.
-     * The response contains an optional offset at which the append
-     * happened.  No offset information will be returned for appends to a
-     * default stream.
-     * Responses are received in the same order in which requests are sent.
-     * There will be one response for each successful inserted request.  Responses
-     * may optionally embed error information if the originating AppendRequest was
-     * not successfully processed.
-     * The specifics of when successfully appended data is made visible to the
-     * table are governed by the type of stream:
-     * * For COMMITTED streams (which includes the default stream), data is
-     * visible immediately upon successful append.
-     * * For BUFFERED streams, data is made visible via a subsequent `FlushRows`
-     * rpc which advances a cursor to a newer offset in the stream.
-     * * For PENDING streams, data is not made visible until the stream itself is
-     * finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
-     * committed via the `BatchCommitWriteStreams` rpc.
-     * 
- */ - public io.grpc.stub.StreamObserver - appendRows( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getAppendRowsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets information about a write stream.
-     * 
- */ - public void getWriteStream( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWriteStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public void finalizeWriteStream( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFinalizeWriteStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public void batchCommitWriteStreams( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchCommitWriteStreamsMethod(), responseObserver); - } - - /** - * - * - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public void flushRows( - com.google.cloud.bigquery.storage.v1.FlushRowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushRowsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream>( - this, METHODID_CREATE_WRITE_STREAM))) - .addMethod( - getAppendRowsMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse>( - this, METHODID_APPEND_ROWS))) - .addMethod( - getGetWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream>( - this, METHODID_GET_WRITE_STREAM))) - .addMethod( - getFinalizeWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse>( - this, METHODID_FINALIZE_WRITE_STREAM))) - .addMethod( - getBatchCommitWriteStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse>( - this, METHODID_BATCH_COMMIT_WRITE_STREAMS))) - .addMethod( - getFlushRowsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1.FlushRowsResponse>( - this, METHODID_FLUSH_ROWS))) - .build(); - } - } - - /** - * - * - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * For supplementary information about the Write API, see:
-   * https://cloud.google.com/bigquery/docs/write-api
-   * 
- */ - public static final class BigQueryWriteStub - extends io.grpc.stub.AbstractAsyncStub { - private BigQueryWriteStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public void createWriteStream( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Appends data to the given stream.
-     * If `offset` is specified, the `offset` is checked against the end of
-     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
-     * attempt is made to append to an offset beyond the current end of the stream
-     * or `ALREADY_EXISTS` if user provides an `offset` that has already been
-     * written to. User can retry with adjusted offset within the same RPC
-     * connection. If `offset` is not specified, append happens at the end of the
-     * stream.
-     * The response contains an optional offset at which the append
-     * happened.  No offset information will be returned for appends to a
-     * default stream.
-     * Responses are received in the same order in which requests are sent.
-     * There will be one response for each successful inserted request.  Responses
-     * may optionally embed error information if the originating AppendRequest was
-     * not successfully processed.
-     * The specifics of when successfully appended data is made visible to the
-     * table are governed by the type of stream:
-     * * For COMMITTED streams (which includes the default stream), data is
-     * visible immediately upon successful append.
-     * * For BUFFERED streams, data is made visible via a subsequent `FlushRows`
-     * rpc which advances a cursor to a newer offset in the stream.
-     * * For PENDING streams, data is not made visible until the stream itself is
-     * finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
-     * committed via the `BatchCommitWriteStreams` rpc.
-     * 
- */ - public io.grpc.stub.StreamObserver - appendRows( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getAppendRowsMethod(), getCallOptions()), responseObserver); - } - - /** - * - * - *
-     * Gets information about a write stream.
-     * 
- */ - public void getWriteStream( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public void finalizeWriteStream( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public void batchCommitWriteStreams( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public void flushRows( - com.google.cloud.bigquery.storage.v1.FlushRowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * For supplementary information about the Write API, see:
-   * https://cloud.google.com/bigquery/docs/write-api
-   * 
- */ - public static final class BigQueryWriteBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BigQueryWriteBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1.WriteStream createWriteStream( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWriteStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets information about a write stream.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWriteStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse finalizeWriteStream( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFinalizeWriteStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse - batchCommitWriteStreams( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCommitWriteStreamsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1.FlushRowsResponse flushRows( - com.google.cloud.bigquery.storage.v1.FlushRowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFlushRowsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * For supplementary information about the Write API, see:
-   * https://cloud.google.com/bigquery/docs/write-api
-   * 
- */ - public static final class BigQueryWriteFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BigQueryWriteFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1.WriteStream> - createWriteStream(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets information about a write stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1.WriteStream> - getWriteStream(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> - finalizeWriteStream( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> - batchCommitWriteStreams( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1.FlushRowsResponse> - flushRows(com.google.cloud.bigquery.storage.v1.FlushRowsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_WRITE_STREAM = 0; - private static final int METHODID_GET_WRITE_STREAM = 1; - private static final int METHODID_FINALIZE_WRITE_STREAM = 2; - private static final int METHODID_BATCH_COMMIT_WRITE_STREAMS = 3; - private static final int METHODID_FLUSH_ROWS = 4; - private static final int METHODID_APPEND_ROWS = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final BigQueryWriteImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BigQueryWriteImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_WRITE_STREAM: - serviceImpl.createWriteStream( - (com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_WRITE_STREAM: - serviceImpl.getWriteStream( - (com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_FINALIZE_WRITE_STREAM: - serviceImpl.finalizeWriteStream( - (com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse>) - responseObserver); - break; - case METHODID_BATCH_COMMIT_WRITE_STREAMS: - serviceImpl.batchCommitWriteStreams( - (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse>) - responseObserver); - break; - case METHODID_FLUSH_ROWS: - serviceImpl.flushRows( - (com.google.cloud.bigquery.storage.v1.FlushRowsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_APPEND_ROWS: - return (io.grpc.stub.StreamObserver) - serviceImpl.appendRows( - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1.AppendRowsResponse>) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - private abstract static class BigQueryWriteBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BigQueryWriteBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BigQueryWrite"); - } - } - - private static final class BigQueryWriteFileDescriptorSupplier - extends BigQueryWriteBaseDescriptorSupplier { - BigQueryWriteFileDescriptorSupplier() {} - } - - private static final class BigQueryWriteMethodDescriptorSupplier - extends BigQueryWriteBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BigQueryWriteMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (BigQueryWriteGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BigQueryWriteFileDescriptorSupplier()) - .addMethod(getCreateWriteStreamMethod()) - .addMethod(getAppendRowsMethod()) - .addMethod(getGetWriteStreamMethod()) - .addMethod(getFinalizeWriteStreamMethod()) - .addMethod(getBatchCommitWriteStreamsMethod()) - .addMethod(getFlushRowsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java deleted file mode 100644 index 8cd9ee60c9..0000000000 --- a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java +++ /dev/null @@ -1,1049 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.bigquery.storage.v1beta2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * BigQuery Write API.
- * The Write API can be used to write data to BigQuery.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/storage/v1beta2/storage.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BigQueryWriteGrpc { - - private BigQueryWriteGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1beta2.BigQueryWrite"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream> - getCreateWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWriteStream", - requestType = com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream> - getCreateWriteStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream> - getCreateWriteStreamMethod; - if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { - BigQueryWriteGrpc.getCreateWriteStreamMethod = - getCreateWriteStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.WriteStream - .getDefaultInstance())) - .setSchemaDescriptor( - new BigQueryWriteMethodDescriptorSupplier("CreateWriteStream")) - .build(); - } - } - } - return getCreateWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse> - getAppendRowsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AppendRows", - requestType = com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse> - getAppendRowsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse> - getAppendRowsMethod; - if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { - BigQueryWriteGrpc.getAppendRowsMethod = - getAppendRowsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AppendRows")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("AppendRows")) - .build(); - } - } - } - return getAppendRowsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream> - getGetWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWriteStream", - requestType = com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream> - getGetWriteStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream> - getGetWriteStreamMethod; - if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { - BigQueryWriteGrpc.getGetWriteStreamMethod = - getGetWriteStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.WriteStream - .getDefaultInstance())) - .setSchemaDescriptor( - new BigQueryWriteMethodDescriptorSupplier("GetWriteStream")) - .build(); - } - } - } - return getGetWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> - getFinalizeWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FinalizeWriteStream", - requestType = com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> - getFinalizeWriteStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> - getFinalizeWriteStreamMethod; - if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) - == null) { - BigQueryWriteGrpc.getFinalizeWriteStreamMethod = - getFinalizeWriteStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "FinalizeWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new BigQueryWriteMethodDescriptorSupplier("FinalizeWriteStream")) - .build(); - } - } - } - return getFinalizeWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> - getBatchCommitWriteStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchCommitWriteStreams", - requestType = com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, - responseType = - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> - getBatchCommitWriteStreamsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> - getBatchCommitWriteStreamsMethod; - if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) - == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) - == null) { - BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod = - getBatchCommitWriteStreamsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "BatchCommitWriteStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2 - .BatchCommitWriteStreamsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2 - .BatchCommitWriteStreamsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new BigQueryWriteMethodDescriptorSupplier("BatchCommitWriteStreams")) - .build(); - } - } - } - return getBatchCommitWriteStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse> - getFlushRowsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FlushRows", - requestType = com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse> - getFlushRowsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse> - getFlushRowsMethod; - if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { - BigQueryWriteGrpc.getFlushRowsMethod = - getFlushRowsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FlushRows")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FlushRows")) - .build(); - } - } - } - return getFlushRowsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static BigQueryWriteStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteStub(channel, callOptions); - } - }; - return BigQueryWriteStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BigQueryWriteBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteBlockingStub(channel, callOptions); - } - }; - return BigQueryWriteBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static BigQueryWriteFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteFutureStub(channel, callOptions); - } - }; - return BigQueryWriteFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * 
- */ - public abstract static class BigQueryWriteImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special COMMITTED stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public void createWriteStream( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWriteStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Appends data to the given stream.
-     * If `offset` is specified, the `offset` is checked against the end of
-     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
-     * attempt is made to append to an offset beyond the current end of the stream
-     * or `ALREADY_EXISTS` if user provids an `offset` that has already been
-     * written to. User can retry with adjusted offset within the same RPC
-     * stream. If `offset` is not specified, append happens at the end of the
-     * stream.
-     * The response contains the offset at which the append happened. Responses
-     * are received in the same order in which requests are sent. There will be
-     * one response for each successful request. If the `offset` is not set in
-     * response, it means append didn't happen due to some errors. If one request
-     * fails, all the subsequent requests will also fail until a success request
-     * is made again.
-     * If the stream is of `PENDING` type, data will only be available for read
-     * operations after the stream is committed.
-     * 
- */ - public io.grpc.stub.StreamObserver - appendRows( - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse> - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getAppendRowsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a write stream.
-     * 
- */ - public void getWriteStream( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWriteStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public void finalizeWriteStream( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFinalizeWriteStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public void batchCommitWriteStreams( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchCommitWriteStreamsMethod(), responseObserver); - } - - /** - * - * - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public void flushRows( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushRowsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream>( - this, METHODID_CREATE_WRITE_STREAM))) - .addMethod( - getAppendRowsMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse>( - this, METHODID_APPEND_ROWS))) - .addMethod( - getGetWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream>( - this, METHODID_GET_WRITE_STREAM))) - .addMethod( - getFinalizeWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse>( - this, METHODID_FINALIZE_WRITE_STREAM))) - .addMethod( - getBatchCommitWriteStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse>( - this, METHODID_BATCH_COMMIT_WRITE_STREAMS))) - .addMethod( - getFlushRowsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse>( - this, METHODID_FLUSH_ROWS))) - .build(); - } - } - - /** - * - * - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * 
- */ - public static final class BigQueryWriteStub - extends io.grpc.stub.AbstractAsyncStub { - private BigQueryWriteStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special COMMITTED stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public void createWriteStream( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Appends data to the given stream.
-     * If `offset` is specified, the `offset` is checked against the end of
-     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
-     * attempt is made to append to an offset beyond the current end of the stream
-     * or `ALREADY_EXISTS` if user provids an `offset` that has already been
-     * written to. User can retry with adjusted offset within the same RPC
-     * stream. If `offset` is not specified, append happens at the end of the
-     * stream.
-     * The response contains the offset at which the append happened. Responses
-     * are received in the same order in which requests are sent. There will be
-     * one response for each successful request. If the `offset` is not set in
-     * response, it means append didn't happen due to some errors. If one request
-     * fails, all the subsequent requests will also fail until a success request
-     * is made again.
-     * If the stream is of `PENDING` type, data will only be available for read
-     * operations after the stream is committed.
-     * 
- */ - public io.grpc.stub.StreamObserver - appendRows( - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse> - responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getAppendRowsMethod(), getCallOptions()), responseObserver); - } - - /** - * - * - *
-     * Gets a write stream.
-     * 
- */ - public void getWriteStream( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public void finalizeWriteStream( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public void batchCommitWriteStreams( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public void flushRows( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * 
- */ - public static final class BigQueryWriteBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BigQueryWriteBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special COMMITTED stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1beta2.WriteStream createWriteStream( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWriteStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a write stream.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWriteStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse - finalizeWriteStream( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFinalizeWriteStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse - batchCommitWriteStreams( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCommitWriteStreamsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse flushRows( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFlushRowsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * 
- */ - public static final class BigQueryWriteFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BigQueryWriteFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special COMMITTED stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1beta2.WriteStream> - createWriteStream( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a write stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1beta2.WriteStream> - getWriteStream(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> - finalizeWriteStream( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> - batchCommitWriteStreams( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse> - flushRows(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_WRITE_STREAM = 0; - private static final int METHODID_GET_WRITE_STREAM = 1; - private static final int METHODID_FINALIZE_WRITE_STREAM = 2; - private static final int METHODID_BATCH_COMMIT_WRITE_STREAMS = 3; - private static final int METHODID_FLUSH_ROWS = 4; - private static final int METHODID_APPEND_ROWS = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final BigQueryWriteImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BigQueryWriteImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_WRITE_STREAM: - serviceImpl.createWriteStream( - (com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_WRITE_STREAM: - serviceImpl.getWriteStream( - (com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_FINALIZE_WRITE_STREAM: - serviceImpl.finalizeWriteStream( - (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse>) - responseObserver); - break; - case METHODID_BATCH_COMMIT_WRITE_STREAMS: - serviceImpl.batchCommitWriteStreams( - (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse>) - responseObserver); - break; - case METHODID_FLUSH_ROWS: - serviceImpl.flushRows( - (com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse>) - responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_APPEND_ROWS: - return (io.grpc.stub.StreamObserver) - serviceImpl.appendRows( - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse>) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - private abstract static class BigQueryWriteBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BigQueryWriteBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BigQueryWrite"); - } - } - - private static final class BigQueryWriteFileDescriptorSupplier - extends BigQueryWriteBaseDescriptorSupplier { - BigQueryWriteFileDescriptorSupplier() {} - } - - private static final class BigQueryWriteMethodDescriptorSupplier - extends BigQueryWriteBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BigQueryWriteMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (BigQueryWriteGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BigQueryWriteFileDescriptorSupplier()) - .addMethod(getCreateWriteStreamMethod()) - .addMethod(getAppendRowsMethod()) - .addMethod(getGetWriteStreamMethod()) - .addMethod(getFinalizeWriteStreamMethod()) - .addMethod(getBatchCommitWriteStreamsMethod()) - .addMethod(getFlushRowsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java similarity index 99% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java index 1e6cb3fd29..f138998cb1 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java +++ b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.storage.v1.stub.BigQueryReadStubSettings; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java similarity index 99% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java index f50d99342b..d58a3cda3a 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java +++ b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.storage.v1.stub.BigQueryWriteStubSettings; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java similarity index 96% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java index 0f3d464e01..ea1e55be4d 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java +++ b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to BigQuery Storage API + * + *

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

======================= BaseBigQueryReadClient ======================= * diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStubSettings.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStubSettings.java new file mode 100644 index 0000000000..d000dcda30 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStubSettings.java @@ -0,0 +1,369 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.storage.v1.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest; +import com.google.cloud.bigquery.storage.v1.ReadRowsRequest; +import com.google.cloud.bigquery.storage.v1.ReadRowsResponse; +import com.google.cloud.bigquery.storage.v1.ReadSession; +import com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest; +import com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BigQueryReadStub}. + * + *

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

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

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

For example, to set the total timeout of createReadSession to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BigQueryReadStubSettings.Builder baseBigQueryReadSettingsBuilder =
+ *     BigQueryReadStubSettings.newBuilder();
+ * baseBigQueryReadSettingsBuilder
+ *     .createReadSessionSettings()
+ *     .setRetrySettings(
+ *         baseBigQueryReadSettingsBuilder
+ *             .createReadSessionSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * BigQueryReadStubSettings baseBigQueryReadSettings = baseBigQueryReadSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class BigQueryReadStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/bigquery") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings createReadSessionSettings; + private final ServerStreamingCallSettings readRowsSettings; + private final UnaryCallSettings + splitReadStreamSettings; + + /** Returns the object with the settings used for calls to createReadSession. */ + public UnaryCallSettings createReadSessionSettings() { + return createReadSessionSettings; + } + + /** Returns the object with the settings used for calls to readRows. */ + public ServerStreamingCallSettings readRowsSettings() { + return readRowsSettings; + } + + /** Returns the object with the settings used for calls to splitReadStream. */ + public UnaryCallSettings + splitReadStreamSettings() { + return splitReadStreamSettings; + } + + public BigQueryReadStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcBigQueryReadStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "bigquerystorage.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "bigquerystorage.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BigQueryReadStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BigQueryReadStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createReadSessionSettings = settingsBuilder.createReadSessionSettings().build(); + readRowsSettings = settingsBuilder.readRowsSettings().build(); + splitReadStreamSettings = settingsBuilder.splitReadStreamSettings().build(); + } + + /** Builder for BigQueryReadStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createReadSessionSettings; + private final ServerStreamingCallSettings.Builder + readRowsSettings; + private final UnaryCallSettings.Builder + splitReadStreamSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_2_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(86400000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(86400000L)) + .setTotalTimeout(Duration.ofMillis(86400000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_2_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createReadSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + readRowsSettings = ServerStreamingCallSettings.newBuilder(); + splitReadStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createReadSessionSettings, splitReadStreamSettings); + initDefaults(this); + } + + protected Builder(BigQueryReadStubSettings settings) { + super(settings); + + createReadSessionSettings = settings.createReadSessionSettings.toBuilder(); + readRowsSettings = settings.readRowsSettings.toBuilder(); + splitReadStreamSettings = settings.splitReadStreamSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createReadSessionSettings, splitReadStreamSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createReadSessionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .readRowsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .splitReadStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createReadSession. */ + public UnaryCallSettings.Builder + createReadSessionSettings() { + return createReadSessionSettings; + } + + /** Returns the builder for the settings used for calls to readRows. */ + public ServerStreamingCallSettings.Builder + readRowsSettings() { + return readRowsSettings; + } + + /** Returns the builder for the settings used for calls to splitReadStream. */ + public UnaryCallSettings.Builder + splitReadStreamSettings() { + return splitReadStreamSettings; + } + + @Override + public BigQueryReadStubSettings build() throws IOException { + return new BigQueryReadStubSettings(this); + } + } +} diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStub.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStub.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStub.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStub.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadCallableFactory.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadCallableFactory.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadCallableFactory.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadCallableFactory.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java similarity index 99% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java index 26697edd2e..4dcf368e44 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java +++ b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java @@ -34,6 +34,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteCallableFactory.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteCallableFactory.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteCallableFactory.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteCallableFactory.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java similarity index 99% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java index 906e6a0ea1..da56c92c6b 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java +++ b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java @@ -39,6 +39,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryReadImpl.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryReadImpl.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryReadImpl.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryReadImpl.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWriteImpl.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWriteImpl.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWriteImpl.java rename to owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWriteImpl.java diff --git a/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java similarity index 58% rename from grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java index 06dff1c5d2..7bcf2b6077 100644 --- a/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.bigquery.storage.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * BigQuery Read API.
  * The Read API can be used to read data from BigQuery.
@@ -36,200 +19,152 @@ private BigQueryReadGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1.BigQueryRead";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest,
-          com.google.cloud.bigquery.storage.v1.ReadSession>
-      getCreateReadSessionMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateReadSessionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReadSession",
       requestType = com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1.ReadSession.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest,
-          com.google.cloud.bigquery.storage.v1.ReadSession>
-      getCreateReadSessionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest,
-            com.google.cloud.bigquery.storage.v1.ReadSession>
-        getCreateReadSessionMethod;
+  public static io.grpc.MethodDescriptor getCreateReadSessionMethod() {
+    io.grpc.MethodDescriptor getCreateReadSessionMethod;
     if ((getCreateReadSessionMethod = BigQueryReadGrpc.getCreateReadSessionMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getCreateReadSessionMethod = BigQueryReadGrpc.getCreateReadSessionMethod) == null) {
-          BigQueryReadGrpc.getCreateReadSessionMethod =
-              getCreateReadSessionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1.ReadSession
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BigQueryReadMethodDescriptorSupplier("CreateReadSession"))
-                      .build();
+          BigQueryReadGrpc.getCreateReadSessionMethod = getCreateReadSessionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("CreateReadSession"))
+              .build();
         }
       }
     }
     return getCreateReadSessionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1.ReadRowsRequest,
-          com.google.cloud.bigquery.storage.v1.ReadRowsResponse>
-      getReadRowsMethod;
+  private static volatile io.grpc.MethodDescriptor getReadRowsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ReadRows",
       requestType = com.google.cloud.bigquery.storage.v1.ReadRowsRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1.ReadRowsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1.ReadRowsRequest,
-          com.google.cloud.bigquery.storage.v1.ReadRowsResponse>
-      getReadRowsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1.ReadRowsRequest,
-            com.google.cloud.bigquery.storage.v1.ReadRowsResponse>
-        getReadRowsMethod;
+  public static io.grpc.MethodDescriptor getReadRowsMethod() {
+    io.grpc.MethodDescriptor getReadRowsMethod;
     if ((getReadRowsMethod = BigQueryReadGrpc.getReadRowsMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getReadRowsMethod = BigQueryReadGrpc.getReadRowsMethod) == null) {
-          BigQueryReadGrpc.getReadRowsMethod =
-              getReadRowsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1.ReadRowsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1.ReadRowsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("ReadRows"))
-                      .build();
+          BigQueryReadGrpc.getReadRowsMethod = getReadRowsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1.ReadRowsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1.ReadRowsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("ReadRows"))
+              .build();
         }
       }
     }
     return getReadRowsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest,
-          com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>
-      getSplitReadStreamMethod;
+  private static volatile io.grpc.MethodDescriptor getSplitReadStreamMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "SplitReadStream",
       requestType = com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest,
-          com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>
-      getSplitReadStreamMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest,
-            com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>
-        getSplitReadStreamMethod;
+  public static io.grpc.MethodDescriptor getSplitReadStreamMethod() {
+    io.grpc.MethodDescriptor getSplitReadStreamMethod;
     if ((getSplitReadStreamMethod = BigQueryReadGrpc.getSplitReadStreamMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getSplitReadStreamMethod = BigQueryReadGrpc.getSplitReadStreamMethod) == null) {
-          BigQueryReadGrpc.getSplitReadStreamMethod =
-              getSplitReadStreamMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BigQueryReadMethodDescriptorSupplier("SplitReadStream"))
-                      .build();
+          BigQueryReadGrpc.getSplitReadStreamMethod = getSplitReadStreamMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("SplitReadStream"))
+              .build();
         }
       }
     }
     return getSplitReadStreamMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static BigQueryReadStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BigQueryReadStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BigQueryReadStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BigQueryReadStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BigQueryReadStub(channel, callOptions);
+        }
+      };
     return BigQueryReadStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BigQueryReadBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static BigQueryReadBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BigQueryReadBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BigQueryReadBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BigQueryReadBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BigQueryReadBlockingStub(channel, callOptions);
+        }
+      };
     return BigQueryReadBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static BigQueryReadFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static BigQueryReadFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BigQueryReadFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BigQueryReadFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BigQueryReadFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BigQueryReadFutureStub(channel, callOptions);
+        }
+      };
     return BigQueryReadFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
    * 
*/ - public abstract static class BigQueryReadImplBase implements io.grpc.BindableService { + public static abstract class BigQueryReadImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -249,17 +184,12 @@ public abstract static class BigQueryReadImplBase implements io.grpc.BindableSer
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession( - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateReadSessionMethod(), responseObserver); + public void createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReadSessionMethod(), responseObserver); } /** - * - * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -269,16 +199,12 @@ public void createReadSession(
      * state of the stream.
      * 
*/ - public void readRows( - com.google.cloud.bigquery.storage.v1.ReadRowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void readRows(com.google.cloud.bigquery.storage.v1.ReadRowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadRowsMethod(), responseObserver); } /** - * - * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -293,64 +219,57 @@ public void readRows(
      * completion.
      * 
*/ - public void splitReadStream( - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSplitReadStreamMethod(), responseObserver); + public void splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSplitReadStreamMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateReadSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest, - com.google.cloud.bigquery.storage.v1.ReadSession>( - this, METHODID_CREATE_READ_SESSION))) + getCreateReadSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest, + com.google.cloud.bigquery.storage.v1.ReadSession>( + this, METHODID_CREATE_READ_SESSION))) .addMethod( - getReadRowsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.ReadRowsRequest, - com.google.cloud.bigquery.storage.v1.ReadRowsResponse>( - this, METHODID_READ_ROWS))) + getReadRowsMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.ReadRowsRequest, + com.google.cloud.bigquery.storage.v1.ReadRowsResponse>( + this, METHODID_READ_ROWS))) .addMethod( - getSplitReadStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest, - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>( - this, METHODID_SPLIT_READ_STREAM))) + getSplitReadStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest, + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>( + this, METHODID_SPLIT_READ_STREAM))) .build(); } } /** - * - * *
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
    * 
*/ - public static final class BigQueryReadStub - extends io.grpc.stub.AbstractAsyncStub { - private BigQueryReadStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadStub extends io.grpc.stub.AbstractAsyncStub { + private BigQueryReadStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected BigQueryReadStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected BigQueryReadStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BigQueryReadStub(channel, callOptions); } /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -370,19 +289,13 @@ protected BigQueryReadStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession( - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -392,17 +305,13 @@ public void createReadSession(
      * state of the stream.
      * 
*/ - public void readRows( - com.google.cloud.bigquery.storage.v1.ReadRowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void readRows(com.google.cloud.bigquery.storage.v1.ReadRowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getReadRowsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -417,28 +326,22 @@ public void readRows(
      * completion.
      * 
*/ - public void splitReadStream( - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
    * 
*/ - public static final class BigQueryReadBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BigQueryReadBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BigQueryReadBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -449,8 +352,6 @@ protected BigQueryReadBlockingStub build( } /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -470,15 +371,12 @@ protected BigQueryReadBlockingStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.cloud.bigquery.storage.v1.ReadSession createReadSession( - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request) { + public com.google.cloud.bigquery.storage.v1.ReadSession createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReadSessionMethod(), getCallOptions(), request); } /** - * - * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -495,8 +393,6 @@ public java.util.Iterator
     }
 
     /**
-     *
-     *
      * 
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -511,24 +407,21 @@ public java.util.Iterator
      * completion.
      * 
*/ - public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse splitReadStream( - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request) { + public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSplitReadStreamMethod(), getCallOptions(), request); } } /** - * - * *
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
    * 
*/ - public static final class BigQueryReadFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BigQueryReadFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadFutureStub extends io.grpc.stub.AbstractFutureStub { + private BigQueryReadFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -539,8 +432,6 @@ protected BigQueryReadFutureStub build( } /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -560,16 +451,13 @@ protected BigQueryReadFutureStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1.ReadSession> - createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request) { + public com.google.common.util.concurrent.ListenableFuture createReadSession( + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request); } /** - * - * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -584,9 +472,8 @@ protected BigQueryReadFutureStub build(
      * completion.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse> - splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request) { + public com.google.common.util.concurrent.ListenableFuture splitReadStream( + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request); } @@ -596,11 +483,11 @@ protected BigQueryReadFutureStub build( private static final int METHODID_READ_ROWS = 1; private static final int METHODID_SPLIT_READ_STREAM = 2; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final BigQueryReadImplBase serviceImpl; private final int methodId; @@ -614,23 +501,16 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_READ_SESSION: - serviceImpl.createReadSession( - (com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createReadSession((com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_READ_ROWS: - serviceImpl.readRows( - (com.google.cloud.bigquery.storage.v1.ReadRowsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.readRows((com.google.cloud.bigquery.storage.v1.ReadRowsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SPLIT_READ_STREAM: - serviceImpl.splitReadStream( - (com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>) - responseObserver); + serviceImpl.splitReadStream((com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -648,9 +528,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class BigQueryReadBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class BigQueryReadBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { BigQueryReadBaseDescriptorSupplier() {} @java.lang.Override @@ -692,14 +571,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BigQueryReadGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BigQueryReadFileDescriptorSupplier()) - .addMethod(getCreateReadSessionMethod()) - .addMethod(getReadRowsMethod()) - .addMethod(getSplitReadStreamMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BigQueryReadFileDescriptorSupplier()) + .addMethod(getCreateReadSessionMethod()) + .addMethod(getReadRowsMethod()) + .addMethod(getSplitReadStreamMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java new file mode 100644 index 0000000000..786776639d --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java @@ -0,0 +1,832 @@ +package com.google.cloud.bigquery.storage.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * BigQuery Write API.
+ * The Write API can be used to write data to BigQuery.
+ * For supplementary information about the Write API, see:
+ * https://cloud.google.com/bigquery/docs/write-api
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/storage/v1/storage.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BigQueryWriteGrpc { + + private BigQueryWriteGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1.BigQueryWrite"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWriteStream", + requestType = com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.WriteStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWriteStreamMethod() { + io.grpc.MethodDescriptor getCreateWriteStreamMethod; + if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { + BigQueryWriteGrpc.getCreateWriteStreamMethod = getCreateWriteStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("CreateWriteStream")) + .build(); + } + } + } + return getCreateWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getAppendRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AppendRows", + requestType = com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getAppendRowsMethod() { + io.grpc.MethodDescriptor getAppendRowsMethod; + if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { + BigQueryWriteGrpc.getAppendRowsMethod = getAppendRowsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AppendRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("AppendRows")) + .build(); + } + } + } + return getAppendRowsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWriteStream", + requestType = com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.WriteStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWriteStreamMethod() { + io.grpc.MethodDescriptor getGetWriteStreamMethod; + if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { + BigQueryWriteGrpc.getGetWriteStreamMethod = getGetWriteStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("GetWriteStream")) + .build(); + } + } + } + return getGetWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getFinalizeWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FinalizeWriteStream", + requestType = com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFinalizeWriteStreamMethod() { + io.grpc.MethodDescriptor getFinalizeWriteStreamMethod; + if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { + BigQueryWriteGrpc.getFinalizeWriteStreamMethod = getFinalizeWriteStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FinalizeWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FinalizeWriteStream")) + .build(); + } + } + } + return getFinalizeWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchCommitWriteStreams", + requestType = com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod() { + io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod; + if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) == null) { + BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod = getBatchCommitWriteStreamsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCommitWriteStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("BatchCommitWriteStreams")) + .build(); + } + } + } + return getBatchCommitWriteStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor getFlushRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FlushRows", + requestType = com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFlushRowsMethod() { + io.grpc.MethodDescriptor getFlushRowsMethod; + if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { + BigQueryWriteGrpc.getFlushRowsMethod = getFlushRowsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FlushRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.FlushRowsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.FlushRowsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FlushRows")) + .build(); + } + } + } + return getFlushRowsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static BigQueryWriteStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteStub(channel, callOptions); + } + }; + return BigQueryWriteStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BigQueryWriteBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteBlockingStub(channel, callOptions); + } + }; + return BigQueryWriteBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static BigQueryWriteFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteFutureStub(channel, callOptions); + } + }; + return BigQueryWriteFutureStub.newStub(factory, channel); + } + + /** + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * For supplementary information about the Write API, see:
+   * https://cloud.google.com/bigquery/docs/write-api
+   * 
+ */ + public static abstract class BigQueryWriteImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public void createWriteStream(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWriteStreamMethod(), responseObserver); + } + + /** + *
+     * Appends data to the given stream.
+     * If `offset` is specified, the `offset` is checked against the end of
+     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
+     * attempt is made to append to an offset beyond the current end of the stream
+     * or `ALREADY_EXISTS` if user provides an `offset` that has already been
+     * written to. User can retry with adjusted offset within the same RPC
+     * connection. If `offset` is not specified, append happens at the end of the
+     * stream.
+     * The response contains an optional offset at which the append
+     * happened.  No offset information will be returned for appends to a
+     * default stream.
+     * Responses are received in the same order in which requests are sent.
+     * There will be one response for each successful inserted request.  Responses
+     * may optionally embed error information if the originating AppendRequest was
+     * not successfully processed.
+     * The specifics of when successfully appended data is made visible to the
+     * table are governed by the type of stream:
+     * * For COMMITTED streams (which includes the default stream), data is
+     * visible immediately upon successful append.
+     * * For BUFFERED streams, data is made visible via a subsequent `FlushRows`
+     * rpc which advances a cursor to a newer offset in the stream.
+     * * For PENDING streams, data is not made visible until the stream itself is
+     * finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
+     * committed via the `BatchCommitWriteStreams` rpc.
+     * 
+ */ + public io.grpc.stub.StreamObserver appendRows( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getAppendRowsMethod(), responseObserver); + } + + /** + *
+     * Gets information about a write stream.
+     * 
+ */ + public void getWriteStream(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWriteStreamMethod(), responseObserver); + } + + /** + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public void finalizeWriteStream(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFinalizeWriteStreamMethod(), responseObserver); + } + + /** + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public void batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchCommitWriteStreamsMethod(), responseObserver); + } + + /** + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public void flushRows(com.google.cloud.bigquery.storage.v1.FlushRowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushRowsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.WriteStream>( + this, METHODID_CREATE_WRITE_STREAM))) + .addMethod( + getAppendRowsMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.AppendRowsRequest, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse>( + this, METHODID_APPEND_ROWS))) + .addMethod( + getGetWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.WriteStream>( + this, METHODID_GET_WRITE_STREAM))) + .addMethod( + getFinalizeWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse>( + this, METHODID_FINALIZE_WRITE_STREAM))) + .addMethod( + getBatchCommitWriteStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse>( + this, METHODID_BATCH_COMMIT_WRITE_STREAMS))) + .addMethod( + getFlushRowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.FlushRowsRequest, + com.google.cloud.bigquery.storage.v1.FlushRowsResponse>( + this, METHODID_FLUSH_ROWS))) + .build(); + } + } + + /** + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * For supplementary information about the Write API, see:
+   * https://cloud.google.com/bigquery/docs/write-api
+   * 
+ */ + public static final class BigQueryWriteStub extends io.grpc.stub.AbstractAsyncStub { + private BigQueryWriteStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteStub(channel, callOptions); + } + + /** + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public void createWriteStream(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Appends data to the given stream.
+     * If `offset` is specified, the `offset` is checked against the end of
+     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
+     * attempt is made to append to an offset beyond the current end of the stream
+     * or `ALREADY_EXISTS` if user provides an `offset` that has already been
+     * written to. User can retry with adjusted offset within the same RPC
+     * connection. If `offset` is not specified, append happens at the end of the
+     * stream.
+     * The response contains an optional offset at which the append
+     * happened.  No offset information will be returned for appends to a
+     * default stream.
+     * Responses are received in the same order in which requests are sent.
+     * There will be one response for each successful inserted request.  Responses
+     * may optionally embed error information if the originating AppendRequest was
+     * not successfully processed.
+     * The specifics of when successfully appended data is made visible to the
+     * table are governed by the type of stream:
+     * * For COMMITTED streams (which includes the default stream), data is
+     * visible immediately upon successful append.
+     * * For BUFFERED streams, data is made visible via a subsequent `FlushRows`
+     * rpc which advances a cursor to a newer offset in the stream.
+     * * For PENDING streams, data is not made visible until the stream itself is
+     * finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
+     * committed via the `BatchCommitWriteStreams` rpc.
+     * 
+ */ + public io.grpc.stub.StreamObserver appendRows( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getAppendRowsMethod(), getCallOptions()), responseObserver); + } + + /** + *
+     * Gets information about a write stream.
+     * 
+ */ + public void getWriteStream(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public void finalizeWriteStream(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public void batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public void flushRows(com.google.cloud.bigquery.storage.v1.FlushRowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * For supplementary information about the Write API, see:
+   * https://cloud.google.com/bigquery/docs/write-api
+   * 
+ */ + public static final class BigQueryWriteBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BigQueryWriteBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1.WriteStream createWriteStream(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWriteStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets information about a write stream.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWriteStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse finalizeWriteStream(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFinalizeWriteStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCommitWriteStreamsMethod(), getCallOptions(), request); + } + + /** + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1.FlushRowsResponse flushRows(com.google.cloud.bigquery.storage.v1.FlushRowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFlushRowsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * For supplementary information about the Write API, see:
+   * https://cloud.google.com/bigquery/docs/write-api
+   * 
+ */ + public static final class BigQueryWriteFutureStub extends io.grpc.stub.AbstractFutureStub { + private BigQueryWriteFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWriteStream( + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets information about a write stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWriteStream( + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture finalizeWriteStream( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchCommitWriteStreams( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request); + } + + /** + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture flushRows( + com.google.cloud.bigquery.storage.v1.FlushRowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_WRITE_STREAM = 0; + private static final int METHODID_GET_WRITE_STREAM = 1; + private static final int METHODID_FINALIZE_WRITE_STREAM = 2; + private static final int METHODID_BATCH_COMMIT_WRITE_STREAMS = 3; + private static final int METHODID_FLUSH_ROWS = 4; + private static final int METHODID_APPEND_ROWS = 5; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final BigQueryWriteImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BigQueryWriteImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_WRITE_STREAM: + serviceImpl.createWriteStream((com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WRITE_STREAM: + serviceImpl.getWriteStream((com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FINALIZE_WRITE_STREAM: + serviceImpl.finalizeWriteStream((com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_COMMIT_WRITE_STREAMS: + serviceImpl.batchCommitWriteStreams((com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FLUSH_ROWS: + serviceImpl.flushRows((com.google.cloud.bigquery.storage.v1.FlushRowsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_APPEND_ROWS: + return (io.grpc.stub.StreamObserver) serviceImpl.appendRows( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class BigQueryWriteBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BigQueryWriteBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BigQueryWrite"); + } + } + + private static final class BigQueryWriteFileDescriptorSupplier + extends BigQueryWriteBaseDescriptorSupplier { + BigQueryWriteFileDescriptorSupplier() {} + } + + private static final class BigQueryWriteMethodDescriptorSupplier + extends BigQueryWriteBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BigQueryWriteMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (BigQueryWriteGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BigQueryWriteFileDescriptorSupplier()) + .addMethod(getCreateWriteStreamMethod()) + .addMethod(getAppendRowsMethod()) + .addMethod(getGetWriteStreamMethod()) + .addMethod(getFinalizeWriteStreamMethod()) + .addMethod(getBatchCommitWriteStreamsMethod()) + .addMethod(getFlushRowsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java new file mode 100644 index 0000000000..045dfa190e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java @@ -0,0 +1,71 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/annotations.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class AnnotationsProto { + private AnnotationsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + registry.add(com.google.cloud.bigquery.storage.v1.AnnotationsProto.columnName); + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public static final int COLUMN_NAME_FIELD_NUMBER = 454943157; + /** + *
+   * Setting the column_name extension allows users to reference
+   * bigquery column independently of the field name in the protocol buffer
+   * message.
+   * The intended use of this annotation is to reference a destination column
+   * named using characters unavailable for protobuf field names (e.g. unicode
+   * characters).
+   * More details about BigQuery naming limitations can be found here:
+   * https://cloud.google.com/bigquery/docs/schemas#column_names
+   * This extension is currently experimental.
+   * 
+ * + * extend .google.protobuf.FieldOptions { ... } + */ + public static final + com.google.protobuf.GeneratedMessage.GeneratedExtension< + com.google.protobuf.DescriptorProtos.FieldOptions, + java.lang.String> columnName = com.google.protobuf.GeneratedMessage + .newFileScopedGeneratedExtension( + java.lang.String.class, + null); + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/bigquery/storage/v1/annot" + + "ations.proto\022 google.cloud.bigquery.stor" + + "age.v1\032 google/protobuf/descriptor.proto" + + ":9\n\013column_name\022\035.google.protobuf.FieldO" + + "ptions\030\265\303\367\330\001 \001(\t\210\001\001B\300\001\n$com.google.cloud" + + ".bigquery.storage.v1B\020AnnotationsProtoP\001" + + "Z>cloud.google.com/go/bigquery/storage/a" + + "piv1/storagepb;storagepb\252\002 Google.Cloud." + + "BigQuery.Storage.V1\312\002 Google\\Cloud\\BigQu" + + "ery\\Storage\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DescriptorProtos.getDescriptor(), + }); + columnName.internalInit(descriptor.getExtensions().get(0)); + com.google.protobuf.DescriptorProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java similarity index 71% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java index 5b1024f620..fa8934e888 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Request message for `AppendRows`.
  * Due to the nature of AppendRows being a bidirectional streaming RPC, certain
@@ -32,16 +15,15 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsRequest}
  */
-public final class AppendRowsRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AppendRowsRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AppendRowsRequest)
     AppendRowsRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AppendRowsRequest.newBuilder() to construct.
   private AppendRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AppendRowsRequest() {
     writeStream_ = "";
     traceId_ = "";
@@ -49,44 +31,42 @@ private AppendRowsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AppendRowsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto
-        .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 7:
         return internalGetMissingValueInterpretations();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto
-        .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class,
-            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.Builder.class);
+            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * An enum to indicate how to interpret missing values. Missing values are
    * fields present in user schema but missing in rows. A missing value can
@@ -94,13 +74,11 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    * schema.
    * 
* - * Protobuf enum {@code - * google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation} + * Protobuf enum {@code google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation} */ - public enum MissingValueInterpretation implements com.google.protobuf.ProtocolMessageEnum { + public enum MissingValueInterpretation + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Invalid missing value interpretation. Requests with this value will be
      * rejected.
@@ -110,8 +88,6 @@ public enum MissingValueInterpretation implements com.google.protobuf.ProtocolMe
      */
     MISSING_VALUE_INTERPRETATION_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Missing value is interpreted as NULL.
      * 
@@ -120,8 +96,6 @@ public enum MissingValueInterpretation implements com.google.protobuf.ProtocolMe */ NULL_VALUE(1), /** - * - * *
      * Missing value is interpreted as column default value if declared in the
      * table schema, NULL otherwise.
@@ -134,8 +108,6 @@ public enum MissingValueInterpretation implements com.google.protobuf.ProtocolMe
     ;
 
     /**
-     *
-     *
      * 
      * Invalid missing value interpretation. Requests with this value will be
      * rejected.
@@ -145,8 +117,6 @@ public enum MissingValueInterpretation implements com.google.protobuf.ProtocolMe
      */
     public static final int MISSING_VALUE_INTERPRETATION_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Missing value is interpreted as NULL.
      * 
@@ -155,8 +125,6 @@ public enum MissingValueInterpretation implements com.google.protobuf.ProtocolMe */ public static final int NULL_VALUE_VALUE = 1; /** - * - * *
      * Missing value is interpreted as column default value if declared in the
      * table schema, NULL otherwise.
@@ -166,6 +134,7 @@ public enum MissingValueInterpretation implements com.google.protobuf.ProtocolMe
      */
     public static final int DEFAULT_VALUE_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -190,14 +159,10 @@ public static MissingValueInterpretation valueOf(int value) {
      */
     public static MissingValueInterpretation forNumber(int value) {
       switch (value) {
-        case 0:
-          return MISSING_VALUE_INTERPRETATION_UNSPECIFIED;
-        case 1:
-          return NULL_VALUE;
-        case 2:
-          return DEFAULT_VALUE;
-        default:
-          return null;
+        case 0: return MISSING_VALUE_INTERPRETATION_UNSPECIFIED;
+        case 1: return NULL_VALUE;
+        case 2: return DEFAULT_VALUE;
+        default: return null;
       }
     }
 
@@ -205,31 +170,29 @@ public static MissingValueInterpretation forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        MissingValueInterpretation> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public MissingValueInterpretation findValueByNumber(int number) {
+              return MissingValueInterpretation.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public MissingValueInterpretation findValueByNumber(int number) {
-                return MissingValueInterpretation.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final MissingValueInterpretation[] VALUES = values();
@@ -237,7 +200,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static MissingValueInterpretation valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -254,14 +218,11 @@ private MissingValueInterpretation(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation)
   }
 
-  public interface ProtoDataOrBuilder
-      extends
+  public interface ProtoDataOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -269,13 +230,10 @@ public interface ProtoDataOrBuilder
      * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; - * * @return Whether the writerSchema field is set. */ boolean hasWriterSchema(); /** - * - * *
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -283,13 +241,10 @@ public interface ProtoDataOrBuilder
      * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; - * * @return The writerSchema. */ com.google.cloud.bigquery.storage.v1.ProtoSchema getWriterSchema(); /** - * - * *
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -301,8 +256,6 @@ public interface ProtoDataOrBuilder
     com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchemaOrBuilder();
 
     /**
-     *
-     *
      * 
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -311,13 +264,10 @@ public interface ProtoDataOrBuilder
      * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; - * * @return Whether the rows field is set. */ boolean hasRows(); /** - * - * *
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -326,13 +276,10 @@ public interface ProtoDataOrBuilder
      * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; - * * @return The rows. */ com.google.cloud.bigquery.storage.v1.ProtoRows getRows(); /** - * - * *
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -345,8 +292,6 @@ public interface ProtoDataOrBuilder
     com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder getRowsOrBuilder();
   }
   /**
-   *
-   *
    * 
    * ProtoData contains the data rows and schema when constructing append
    * requests.
@@ -354,49 +299,46 @@ public interface ProtoDataOrBuilder
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData}
    */
-  public static final class ProtoData extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ProtoData extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)
       ProtoDataOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ProtoData.newBuilder() to construct.
     private ProtoData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private ProtoData() {}
+    private ProtoData() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ProtoData();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.class,
-              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder.class);
+              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.class, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder.class);
     }
 
     public static final int WRITER_SCHEMA_FIELD_NUMBER = 1;
     private com.google.cloud.bigquery.storage.v1.ProtoSchema writerSchema_;
     /**
-     *
-     *
      * 
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -404,7 +346,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; - * * @return Whether the writerSchema field is set. */ @java.lang.Override @@ -412,8 +353,6 @@ public boolean hasWriterSchema() { return writerSchema_ != null; } /** - * - * *
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -421,18 +360,13 @@ public boolean hasWriterSchema() {
      * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; - * * @return The writerSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ProtoSchema getWriterSchema() { - return writerSchema_ == null - ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() - : writerSchema_; + return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() : writerSchema_; } /** - * - * *
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -443,16 +377,12 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchema getWriterSchema() {
      */
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchemaOrBuilder() {
-      return writerSchema_ == null
-          ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()
-          : writerSchema_;
+      return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() : writerSchema_;
     }
 
     public static final int ROWS_FIELD_NUMBER = 2;
     private com.google.cloud.bigquery.storage.v1.ProtoRows rows_;
     /**
-     *
-     *
      * 
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -461,7 +391,6 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchema
      * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; - * * @return Whether the rows field is set. */ @java.lang.Override @@ -469,8 +398,6 @@ public boolean hasRows() { return rows_ != null; } /** - * - * *
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -479,18 +406,13 @@ public boolean hasRows() {
      * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; - * * @return The rows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ProtoRows getRows() { - return rows_ == null - ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() - : rows_; + return rows_ == null ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() : rows_; } /** - * - * *
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -502,13 +424,10 @@ public com.google.cloud.bigquery.storage.v1.ProtoRows getRows() {
      */
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder getRowsOrBuilder() {
-      return rows_ == null
-          ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance()
-          : rows_;
+      return rows_ == null ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() : rows_;
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -526,7 +445,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (writerSchema_ != null) {
         output.writeMessage(1, getWriterSchema());
       }
@@ -543,10 +463,12 @@ public int getSerializedSize() {
 
       size = 0;
       if (writerSchema_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWriterSchema());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getWriterSchema());
       }
       if (rows_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRows());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getRows());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -556,21 +478,22 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData other =
-          (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) obj;
+      com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData other = (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) obj;
 
       if (hasWriterSchema() != other.hasWriterSchema()) return false;
       if (hasWriterSchema()) {
-        if (!getWriterSchema().equals(other.getWriterSchema())) return false;
+        if (!getWriterSchema()
+            .equals(other.getWriterSchema())) return false;
       }
       if (hasRows() != other.hasRows()) return false;
       if (hasRows()) {
-        if (!getRows().equals(other.getRows())) return false;
+        if (!getRows()
+            .equals(other.getRows())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -597,95 +520,87 @@ public int hashCode() {
     }
 
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData prototype) {
+    public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -695,8 +610,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * ProtoData contains the data rows and schema when constructing append
      * requests.
@@ -704,34 +617,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)
         com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.bigquery.storage.v1.StorageProto
-            .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.bigquery.storage.v1.StorageProto
-            .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable
+        return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.class,
-                com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder.class);
+                com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.class, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -750,16 +662,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.bigquery.storage.v1.StorageProto
-            .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
-          getDefaultInstanceForType() {
-        return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
-            .getDefaultInstance();
+      public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getDefaultInstanceForType() {
+        return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -773,24 +683,23 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData build()
 
       @java.lang.Override
       public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData buildPartial() {
-        com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData result =
-            new com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData result = new com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData result) {
+      private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.writerSchema_ =
-              writerSchemaBuilder_ == null ? writerSchema_ : writerSchemaBuilder_.build();
+          result.writerSchema_ = writerSchemaBuilder_ == null
+              ? writerSchema_
+              : writerSchemaBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.rows_ = rowsBuilder_ == null ? rows_ : rowsBuilder_.build();
+          result.rows_ = rowsBuilder_ == null
+              ? rows_
+              : rowsBuilder_.build();
         }
       }
 
@@ -798,53 +707,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) {
-          return mergeFrom(
-              (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) other);
+          return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData other) {
-        if (other
-            == com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData other) {
+        if (other == com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance()) return this;
         if (other.hasWriterSchema()) {
           mergeWriterSchema(other.getWriterSchema());
         }
@@ -882,25 +784,26 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(getWriterSchemaFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(getRowsFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getWriterSchemaFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getRowsFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -910,18 +813,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
       private com.google.cloud.bigquery.storage.v1.ProtoSchema writerSchema_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1.ProtoSchema,
-              com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder,
-              com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder>
-          writerSchemaBuilder_;
+          com.google.cloud.bigquery.storage.v1.ProtoSchema, com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder> writerSchemaBuilder_;
       /**
-       *
-       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -929,15 +826,12 @@ public Builder mergeFrom(
        * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; - * * @return Whether the writerSchema field is set. */ public boolean hasWriterSchema() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -945,21 +839,16 @@ public boolean hasWriterSchema() {
        * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; - * * @return The writerSchema. */ public com.google.cloud.bigquery.storage.v1.ProtoSchema getWriterSchema() { if (writerSchemaBuilder_ == null) { - return writerSchema_ == null - ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() - : writerSchema_; + return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() : writerSchema_; } else { return writerSchemaBuilder_.getMessage(); } } /** - * - * *
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -982,8 +871,6 @@ public Builder setWriterSchema(com.google.cloud.bigquery.storage.v1.ProtoSchema
         return this;
       }
       /**
-       *
-       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -1004,8 +891,6 @@ public Builder setWriterSchema(
         return this;
       }
       /**
-       *
-       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -1016,10 +901,9 @@ public Builder setWriterSchema(
        */
       public Builder mergeWriterSchema(com.google.cloud.bigquery.storage.v1.ProtoSchema value) {
         if (writerSchemaBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && writerSchema_ != null
-              && writerSchema_
-                  != com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            writerSchema_ != null &&
+            writerSchema_ != com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()) {
             getWriterSchemaBuilder().mergeFrom(value);
           } else {
             writerSchema_ = value;
@@ -1032,8 +916,6 @@ public Builder mergeWriterSchema(com.google.cloud.bigquery.storage.v1.ProtoSchem
         return this;
       }
       /**
-       *
-       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -1053,8 +935,6 @@ public Builder clearWriterSchema() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -1069,8 +949,6 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder getWriterSchemaB
         return getWriterSchemaFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -1083,14 +961,11 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchema
         if (writerSchemaBuilder_ != null) {
           return writerSchemaBuilder_.getMessageOrBuilder();
         } else {
-          return writerSchema_ == null
-              ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()
-              : writerSchema_;
+          return writerSchema_ == null ?
+              com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() : writerSchema_;
         }
       }
       /**
-       *
-       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -1100,17 +975,14 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchema
        * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1.ProtoSchema,
-              com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder,
-              com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder>
+          com.google.cloud.bigquery.storage.v1.ProtoSchema, com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder> 
           getWriterSchemaFieldBuilder() {
         if (writerSchemaBuilder_ == null) {
-          writerSchemaBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.bigquery.storage.v1.ProtoSchema,
-                  com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder,
-                  com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder>(
-                  getWriterSchema(), getParentForChildren(), isClean());
+          writerSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.bigquery.storage.v1.ProtoSchema, com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder>(
+                  getWriterSchema(),
+                  getParentForChildren(),
+                  isClean());
           writerSchema_ = null;
         }
         return writerSchemaBuilder_;
@@ -1118,13 +990,8 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchema
 
       private com.google.cloud.bigquery.storage.v1.ProtoRows rows_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1.ProtoRows,
-              com.google.cloud.bigquery.storage.v1.ProtoRows.Builder,
-              com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder>
-          rowsBuilder_;
+          com.google.cloud.bigquery.storage.v1.ProtoRows, com.google.cloud.bigquery.storage.v1.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder> rowsBuilder_;
       /**
-       *
-       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1133,15 +1000,12 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchema
        * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; - * * @return Whether the rows field is set. */ public boolean hasRows() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1150,21 +1014,16 @@ public boolean hasRows() {
        * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; - * * @return The rows. */ public com.google.cloud.bigquery.storage.v1.ProtoRows getRows() { if (rowsBuilder_ == null) { - return rows_ == null - ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() - : rows_; + return rows_ == null ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() : rows_; } else { return rowsBuilder_.getMessage(); } } /** - * - * *
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1188,8 +1047,6 @@ public Builder setRows(com.google.cloud.bigquery.storage.v1.ProtoRows value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1211,8 +1068,6 @@ public Builder setRows(
         return this;
       }
       /**
-       *
-       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1224,9 +1079,9 @@ public Builder setRows(
        */
       public Builder mergeRows(com.google.cloud.bigquery.storage.v1.ProtoRows value) {
         if (rowsBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && rows_ != null
-              && rows_ != com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            rows_ != null &&
+            rows_ != com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance()) {
             getRowsBuilder().mergeFrom(value);
           } else {
             rows_ = value;
@@ -1239,8 +1094,6 @@ public Builder mergeRows(com.google.cloud.bigquery.storage.v1.ProtoRows value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1261,8 +1114,6 @@ public Builder clearRows() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1278,8 +1129,6 @@ public com.google.cloud.bigquery.storage.v1.ProtoRows.Builder getRowsBuilder() {
         return getRowsFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1293,14 +1142,11 @@ public com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder getRowsOrBuilder(
         if (rowsBuilder_ != null) {
           return rowsBuilder_.getMessageOrBuilder();
         } else {
-          return rows_ == null
-              ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance()
-              : rows_;
+          return rows_ == null ?
+              com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() : rows_;
         }
       }
       /**
-       *
-       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1311,22 +1157,18 @@ public com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder getRowsOrBuilder(
        * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1.ProtoRows,
-              com.google.cloud.bigquery.storage.v1.ProtoRows.Builder,
-              com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder>
+          com.google.cloud.bigquery.storage.v1.ProtoRows, com.google.cloud.bigquery.storage.v1.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder> 
           getRowsFieldBuilder() {
         if (rowsBuilder_ == null) {
-          rowsBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.bigquery.storage.v1.ProtoRows,
-                  com.google.cloud.bigquery.storage.v1.ProtoRows.Builder,
-                  com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder>(
-                  getRows(), getParentForChildren(), isClean());
+          rowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.bigquery.storage.v1.ProtoRows, com.google.cloud.bigquery.storage.v1.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder>(
+                  getRows(),
+                  getParentForChildren(),
+                  isClean());
           rows_ = null;
         }
         return rowsBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1339,44 +1181,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)
-    private static final com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData DEFAULT_INSTANCE;
     static {
       DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData();
     }
 
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
-        getDefaultInstance() {
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public ProtoData parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public ProtoData parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1388,23 +1227,20 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
-        getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   private int rowsCase_ = 0;
   private java.lang.Object rows_;
-
   public enum RowsCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     PROTO_ROWS(4),
     ROWS_NOT_SET(0);
     private final int value;
-
     private RowsCase(int value) {
       this.value = value;
     }
@@ -1420,31 +1256,26 @@ public static RowsCase valueOf(int value) {
 
     public static RowsCase forNumber(int value) {
       switch (value) {
-        case 4:
-          return PROTO_ROWS;
-        case 0:
-          return ROWS_NOT_SET;
-        default:
-          return null;
+        case 4: return PROTO_ROWS;
+        case 0: return ROWS_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RowsCase getRowsCase() {
-    return RowsCase.forNumber(rowsCase_);
+  public RowsCase
+  getRowsCase() {
+    return RowsCase.forNumber(
+        rowsCase_);
   }
 
   public static final int WRITE_STREAM_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object writeStream_ = "";
   /**
-   *
-   *
    * 
    * Required. The write_stream identifies the target of the append operation,
    * and only needs to be specified as part of the first request on the gRPC
@@ -1456,10 +1287,7 @@ public RowsCase getRowsCase() {
    * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ @java.lang.Override @@ -1468,15 +1296,14 @@ public java.lang.String getWriteStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; } } /** - * - * *
    * Required. The write_stream identifies the target of the append operation,
    * and only needs to be specified as part of the first request on the gRPC
@@ -1488,18 +1315,17 @@ public java.lang.String getWriteStream() {
    * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ @java.lang.Override - public com.google.protobuf.ByteString getWriteStreamBytes() { + public com.google.protobuf.ByteString + getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeStream_ = b; return b; } else { @@ -1510,8 +1336,6 @@ public com.google.protobuf.ByteString getWriteStreamBytes() { public static final int OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value offset_; /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1520,7 +1344,6 @@ public com.google.protobuf.ByteString getWriteStreamBytes() {
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ @java.lang.Override @@ -1528,8 +1351,6 @@ public boolean hasOffset() { return offset_ != null; } /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1538,7 +1359,6 @@ public boolean hasOffset() {
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ @java.lang.Override @@ -1546,8 +1366,6 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1564,14 +1382,11 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
 
   public static final int PROTO_ROWS_FIELD_NUMBER = 4;
   /**
-   *
-   *
    * 
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; - * * @return Whether the protoRows field is set. */ @java.lang.Override @@ -1579,26 +1394,21 @@ public boolean hasProtoRows() { return rowsCase_ == 4; } /** - * - * *
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; - * * @return The protoRows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getProtoRows() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; + return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; } return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); } /** - * - * *
    * Rows in proto format.
    * 
@@ -1606,28 +1416,23 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getProto * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder - getProtoRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; + return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; } return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); } public static final int TRACE_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object traceId_ = ""; /** - * - * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; - * * @return The traceId. */ @java.lang.Override @@ -1636,30 +1441,30 @@ public java.lang.String getTraceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; } } /** - * - * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; - * * @return The bytes for traceId. */ @java.lang.Override - public com.google.protobuf.ByteString getTraceIdBytes() { + public com.google.protobuf.ByteString + getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); traceId_ = b; return b; } else { @@ -1668,60 +1473,45 @@ public com.google.protobuf.ByteString getTraceIdBytes() { } public static final int MISSING_VALUE_INTERPRETATIONS_FIELD_NUMBER = 7; - private static final class MissingValueInterpretationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation - .MISSING_VALUE_INTERPRETATION_UNSPECIFIED - .getNumber()); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Integer> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation.MISSING_VALUE_INTERPRETATION_UNSPECIFIED.getNumber()); } - @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.Integer> missingValueInterpretations_; private com.google.protobuf.MapField - missingValueInterpretations_; - - private com.google.protobuf.MapField - internalGetMissingValueInterpretations() { + internalGetMissingValueInterpretations() { if (missingValueInterpretations_ == null) { return com.google.protobuf.MapField.emptyMapField( MissingValueInterpretationsDefaultEntryHolder.defaultEntry); } return missingValueInterpretations_; } - - private static final com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> - missingValueInterpretationsValueConverter = + private static final + com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missingValueInterpretationsValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation - .internalGetValueMap(), - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation - .UNRECOGNIZED); - - private static final java.util.Map< - java.lang.String, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> - internalGetAdaptedMissingValueInterpretationsMap( - java.util.Map map) { + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation.internalGetValueMap(), + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation.UNRECOGNIZED); + private static final java.util.Map + internalGetAdaptedMissingValueInterpretationsMap( + java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< - java.lang.String, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation, - java.lang.Integer>(map, missingValueInterpretationsValueConverter); + java.lang.String, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation, java.lang.Integer>( + map, missingValueInterpretationsValueConverter); } - public int getMissingValueInterpretationsCount() { return internalGetMissingValueInterpretations().getMap().size(); } /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1739,29 +1529,24 @@ public int getMissingValueInterpretationsCount() {
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public boolean containsMissingValueInterpretations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMissingValueInterpretations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMissingValueInterpretations().getMap().containsKey(key); } - /** Use {@link #getMissingValueInterpretationsMap()} instead. */ + /** + * Use {@link #getMissingValueInterpretationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> - getMissingValueInterpretations() { + public java.util.Map + getMissingValueInterpretations() { return getMissingValueInterpretationsMap(); } /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1779,21 +1564,14 @@ public boolean containsMissingValueInterpretations(java.lang.String key) {
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> - getMissingValueInterpretationsMap() { + public java.util.Map + getMissingValueInterpretationsMap() { return internalGetAdaptedMissingValueInterpretationsMap( - internalGetMissingValueInterpretations().getMap()); - } + internalGetMissingValueInterpretations().getMap());} /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1811,30 +1589,22 @@ public boolean containsMissingValueInterpretations(java.lang.String key) {
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public /* nullable */ com.google.cloud.bigquery.storage.v1.AppendRowsRequest - .MissingValueInterpretation - getMissingValueInterpretationsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMissingValueInterpretations().getMap(); return map.containsKey(key) - ? missingValueInterpretationsValueConverter.doForward(map.get(key)) - : defaultValue; + ? missingValueInterpretationsValueConverter.doForward(map.get(key)) + : defaultValue; } /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1852,16 +1622,12 @@ public boolean containsMissingValueInterpretations(java.lang.String key) {
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation - getMissingValueInterpretationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMissingValueInterpretations().getMap(); if (!map.containsKey(key)) { @@ -1869,15 +1635,16 @@ public boolean containsMissingValueInterpretations(java.lang.String key) { } return missingValueInterpretationsValueConverter.doForward(map.get(key)); } - /** Use {@link #getMissingValueInterpretationsValueMap()} instead. */ + /** + * Use {@link #getMissingValueInterpretationsValueMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMissingValueInterpretationsValue() { + public java.util.Map + getMissingValueInterpretationsValue() { return getMissingValueInterpretationsValueMap(); } /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1895,18 +1662,14 @@ public java.util.Map getMissingValueInterpr
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override public java.util.Map - getMissingValueInterpretationsValueMap() { + getMissingValueInterpretationsValueMap() { return internalGetMissingValueInterpretations().getMap(); } /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1924,22 +1687,18 @@ public java.util.Map getMissingValueInterpr
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public int getMissingValueInterpretationsValueOrDefault(java.lang.String key, int defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public int getMissingValueInterpretationsValueOrDefault( + java.lang.String key, + int defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMissingValueInterpretations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1957,15 +1716,12 @@ public int getMissingValueInterpretationsValueOrDefault(java.lang.String key, in
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public int getMissingValueInterpretationsValueOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public int getMissingValueInterpretationsValueOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMissingValueInterpretations().getMap(); if (!map.containsKey(key)) { @@ -1975,7 +1731,6 @@ public int getMissingValueInterpretationsValueOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1993,7 +1748,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeStream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, writeStream_); } @@ -2001,13 +1757,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, getOffset()); } if (rowsCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_); + output.writeMessage(4, (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, traceId_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetMissingValueInterpretations(), MissingValueInterpretationsDefaultEntryHolder.defaultEntry, @@ -2025,28 +1781,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, writeStream_); } if (offset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOffset()); } if (rowsCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, traceId_); } - for (java.util.Map.Entry entry : - internalGetMissingValueInterpretations().getMap().entrySet()) { + for (java.util.Map.Entry entry + : internalGetMissingValueInterpretations().getMap().entrySet()) { com.google.protobuf.MapEntry - missingValueInterpretations__ = - MissingValueInterpretationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, missingValueInterpretations__); + missingValueInterpretations__ = MissingValueInterpretationsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, missingValueInterpretations__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2056,26 +1809,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AppendRowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.AppendRowsRequest other = - (com.google.cloud.bigquery.storage.v1.AppendRowsRequest) obj; + com.google.cloud.bigquery.storage.v1.AppendRowsRequest other = (com.google.cloud.bigquery.storage.v1.AppendRowsRequest) obj; - if (!getWriteStream().equals(other.getWriteStream())) return false; + if (!getWriteStream() + .equals(other.getWriteStream())) return false; if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { - if (!getOffset().equals(other.getOffset())) return false; + if (!getOffset() + .equals(other.getOffset())) return false; } - if (!getTraceId().equals(other.getTraceId())) return false; - if (!internalGetMissingValueInterpretations() - .equals(other.internalGetMissingValueInterpretations())) return false; + if (!getTraceId() + .equals(other.getTraceId())) return false; + if (!internalGetMissingValueInterpretations().equals( + other.internalGetMissingValueInterpretations())) return false; if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 4: - if (!getProtoRows().equals(other.getProtoRows())) return false; + if (!getProtoRows() + .equals(other.getProtoRows())) return false; break; case 0: default: @@ -2117,104 +1873,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.AppendRowsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AppendRowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `AppendRows`.
    * Due to the nature of AppendRows being a bidirectional streaming RPC, certain
@@ -2226,52 +1974,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AppendRowsRequest)
       com.google.cloud.bigquery.storage.v1.AppendRowsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetMissingValueInterpretations();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 7:
           return internalGetMutableMissingValueInterpretations();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class,
-              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.Builder.class);
+              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.AppendRowsRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2293,9 +2044,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -2314,11 +2065,8 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.AppendRowsRequest buildPartial() {
-      com.google.cloud.bigquery.storage.v1.AppendRowsRequest result =
-          new com.google.cloud.bigquery.storage.v1.AppendRowsRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.storage.v1.AppendRowsRequest result = new com.google.cloud.bigquery.storage.v1.AppendRowsRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -2330,7 +2078,9 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsReques
         result.writeStream_ = writeStream_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build();
+        result.offset_ = offsetBuilder_ == null
+            ? offset_
+            : offsetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.traceId_ = traceId_;
@@ -2344,7 +2094,8 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsReques
     private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.AppendRowsRequest result) {
       result.rowsCase_ = rowsCase_;
       result.rows_ = this.rows_;
-      if (rowsCase_ == 4 && protoRowsBuilder_ != null) {
+      if (rowsCase_ == 4 &&
+          protoRowsBuilder_ != null) {
         result.rows_ = protoRowsBuilder_.build();
       }
     }
@@ -2353,39 +2104,38 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.AppendRowsR
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.AppendRowsRequest) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsRequest) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2393,8 +2143,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsRequest other) {
-      if (other == com.google.cloud.bigquery.storage.v1.AppendRowsRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.storage.v1.AppendRowsRequest.getDefaultInstance()) return this;
       if (!other.getWriteStream().isEmpty()) {
         writeStream_ = other.writeStream_;
         bitField0_ |= 0x00000001;
@@ -2408,19 +2157,17 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsRequest
         bitField0_ |= 0x00000008;
         onChanged();
       }
-      internalGetMutableMissingValueInterpretations()
-          .mergeFrom(other.internalGetMissingValueInterpretations());
+      internalGetMutableMissingValueInterpretations().mergeFrom(
+          other.internalGetMissingValueInterpretations());
       bitField0_ |= 0x00000010;
       switch (other.getRowsCase()) {
-        case PROTO_ROWS:
-          {
-            mergeProtoRows(other.getProtoRows());
-            break;
-          }
-        case ROWS_NOT_SET:
-          {
-            break;
-          }
+        case PROTO_ROWS: {
+          mergeProtoRows(other.getProtoRows());
+          break;
+        }
+        case ROWS_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -2453,53 +2200,45 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                writeStream_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 34:
-              {
-                input.readMessage(getProtoRowsFieldBuilder().getBuilder(), extensionRegistry);
-                rowsCase_ = 4;
-                break;
-              } // case 34
-            case 50:
-              {
-                traceId_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 50
-            case 58:
-              {
-                com.google.protobuf.MapEntry
-                    missingValueInterpretations__ =
-                        input.readMessage(
-                            MissingValueInterpretationsDefaultEntryHolder.defaultEntry
-                                .getParserForType(),
-                            extensionRegistry);
-                internalGetMutableMissingValueInterpretations()
-                    .getMutableMap()
-                    .put(
-                        missingValueInterpretations__.getKey(),
-                        missingValueInterpretations__.getValue());
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 58
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              writeStream_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getOffsetFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 34: {
+              input.readMessage(
+                  getProtoRowsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              rowsCase_ = 4;
+              break;
+            } // case 34
+            case 50: {
+              traceId_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 50
+            case 58: {
+              com.google.protobuf.MapEntry
+              missingValueInterpretations__ = input.readMessage(
+                  MissingValueInterpretationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableMissingValueInterpretations().getMutableMap().put(
+                  missingValueInterpretations__.getKey(), missingValueInterpretations__.getValue());
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 58
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2509,12 +2248,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int rowsCase_ = 0;
     private java.lang.Object rows_;
-
-    public RowsCase getRowsCase() {
-      return RowsCase.forNumber(rowsCase_);
+    public RowsCase
+        getRowsCase() {
+      return RowsCase.forNumber(
+          rowsCase_);
     }
 
     public Builder clearRows() {
@@ -2528,8 +2267,6 @@ public Builder clearRows() {
 
     private java.lang.Object writeStream_ = "";
     /**
-     *
-     *
      * 
      * Required. The write_stream identifies the target of the append operation,
      * and only needs to be specified as part of the first request on the gRPC
@@ -2541,16 +2278,14 @@ public Builder clearRows() {
      * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ public java.lang.String getWriteStream() { java.lang.Object ref = writeStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; @@ -2559,8 +2294,6 @@ public java.lang.String getWriteStream() { } } /** - * - * *
      * Required. The write_stream identifies the target of the append operation,
      * and only needs to be specified as part of the first request on the gRPC
@@ -2572,17 +2305,16 @@ public java.lang.String getWriteStream() {
      * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ - public com.google.protobuf.ByteString getWriteStreamBytes() { + public com.google.protobuf.ByteString + getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeStream_ = b; return b; } else { @@ -2590,8 +2322,6 @@ public com.google.protobuf.ByteString getWriteStreamBytes() { } } /** - * - * *
      * Required. The write_stream identifies the target of the append operation,
      * and only needs to be specified as part of the first request on the gRPC
@@ -2603,25 +2333,19 @@ public com.google.protobuf.ByteString getWriteStreamBytes() {
      * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStream(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStream( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } writeStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The write_stream identifies the target of the append operation,
      * and only needs to be specified as part of the first request on the gRPC
@@ -2633,10 +2357,7 @@ public Builder setWriteStream(java.lang.String value) {
      * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearWriteStream() { @@ -2646,8 +2367,6 @@ public Builder clearWriteStream() { return this; } /** - * - * *
      * Required. The write_stream identifies the target of the append operation,
      * and only needs to be specified as part of the first request on the gRPC
@@ -2659,17 +2378,13 @@ public Builder clearWriteStream() {
      * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStreamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); writeStream_ = value; bitField0_ |= 0x00000001; @@ -2679,13 +2394,8 @@ public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - offsetBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; /** - * - * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2694,15 +2404,12 @@ public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2711,7 +2418,6 @@ public boolean hasOffset() {
      * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -2722,8 +2428,6 @@ public com.google.protobuf.Int64Value getOffset() { } } /** - * - * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2747,8 +2451,6 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2758,7 +2460,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value offset = 2;
      */
-    public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setOffset(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (offsetBuilder_ == null) {
         offset_ = builderForValue.build();
       } else {
@@ -2769,8 +2472,6 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2782,9 +2483,9 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
      */
     public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       if (offsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && offset_ != null
-            && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          offset_ != null &&
+          offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
           getOffsetBuilder().mergeFrom(value);
         } else {
           offset_ = value;
@@ -2797,8 +2498,6 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2819,8 +2518,6 @@ public Builder clearOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2836,8 +2533,6 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
       return getOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2851,12 +2546,11 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
       if (offsetBuilder_ != null) {
         return offsetBuilder_.getMessageOrBuilder();
       } else {
-        return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+        return offset_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2867,36 +2561,27 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
      * .google.protobuf.Int64Value offset = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getOffsetFieldBuilder() {
       if (offsetBuilder_ == null) {
-        offsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getOffset(), getParentForChildren(), isClean());
+        offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getOffset(),
+                getParentForChildren(),
+                isClean());
         offset_ = null;
       }
       return offsetBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData,
-            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder,
-            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder>
-        protoRowsBuilder_;
+        com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder> protoRowsBuilder_;
     /**
-     *
-     *
      * 
      * Rows in proto format.
      * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; - * * @return Whether the protoRows field is set. */ @java.lang.Override @@ -2904,14 +2589,11 @@ public boolean hasProtoRows() { return rowsCase_ == 4; } /** - * - * *
      * Rows in proto format.
      * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; - * * @return The protoRows. */ @java.lang.Override @@ -2920,27 +2602,22 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getProto if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); } else { if (rowsCase_ == 4) { return protoRowsBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); } } /** - * - * *
      * Rows in proto format.
      * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ - public Builder setProtoRows( - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData value) { + public Builder setProtoRows(com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData value) { if (protoRowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2954,8 +2631,6 @@ public Builder setProtoRows( return this; } /** - * - * *
      * Rows in proto format.
      * 
@@ -2974,26 +2649,18 @@ public Builder setProtoRows( return this; } /** - * - * *
      * Rows in proto format.
      * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ - public Builder mergeProtoRows( - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData value) { + public Builder mergeProtoRows(com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData value) { if (protoRowsBuilder_ == null) { - if (rowsCase_ == 4 - && rows_ - != com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData - .getDefaultInstance()) { - rows_ = - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.newBuilder( - (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_) - .mergeFrom(value) - .buildPartial(); + if (rowsCase_ == 4 && + rows_ != com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance()) { + rows_ = com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.newBuilder((com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_) + .mergeFrom(value).buildPartial(); } else { rows_ = value; } @@ -3009,8 +2676,6 @@ public Builder mergeProtoRows( return this; } /** - * - * *
      * Rows in proto format.
      * 
@@ -3034,21 +2699,16 @@ public Builder clearProtoRows() { return this; } /** - * - * *
      * Rows in proto format.
      * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ - public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder - getProtoRowsBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder getProtoRowsBuilder() { return getProtoRowsFieldBuilder().getBuilder(); } /** - * - * *
      * Rows in proto format.
      * 
@@ -3056,21 +2716,17 @@ public Builder clearProtoRows() { * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder - getProtoRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder() { if ((rowsCase_ == 4) && (protoRowsBuilder_ != null)) { return protoRowsBuilder_.getMessageOrBuilder(); } else { if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); } } /** - * - * *
      * Rows in proto format.
      * 
@@ -3078,20 +2734,14 @@ public Builder clearProtoRows() { * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder> + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder> getProtoRowsFieldBuilder() { if (protoRowsBuilder_ == null) { if (!(rowsCase_ == 4)) { - rows_ = - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); + rows_ = com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); } - protoRowsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder>( + protoRowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder>( (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_, getParentForChildren(), isClean()); @@ -3104,21 +2754,19 @@ public Builder clearProtoRows() { private java.lang.Object traceId_ = ""; /** - * - * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; - * * @return The traceId. */ public java.lang.String getTraceId() { java.lang.Object ref = traceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; @@ -3127,22 +2775,21 @@ public java.lang.String getTraceId() { } } /** - * - * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; - * * @return The bytes for traceId. */ - public com.google.protobuf.ByteString getTraceIdBytes() { + public com.google.protobuf.ByteString + getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); traceId_ = b; return b; } else { @@ -3150,37 +2797,30 @@ public com.google.protobuf.ByteString getTraceIdBytes() { } } /** - * - * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; - * * @param value The traceId to set. * @return This builder for chaining. */ - public Builder setTraceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTraceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } traceId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; - * * @return This builder for chaining. */ public Builder clearTraceId() { @@ -3190,22 +2830,18 @@ public Builder clearTraceId() { return this; } /** - * - * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; - * * @param value The bytes for traceId to set. * @return This builder for chaining. */ - public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTraceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); traceId_ = value; bitField0_ |= 0x00000008; @@ -3213,9 +2849,8 @@ public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField - missingValueInterpretations_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.Integer> missingValueInterpretations_; private com.google.protobuf.MapField internalGetMissingValueInterpretations() { if (missingValueInterpretations_ == null) { @@ -3224,13 +2859,11 @@ public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { } return missingValueInterpretations_; } - private com.google.protobuf.MapField internalGetMutableMissingValueInterpretations() { if (missingValueInterpretations_ == null) { - missingValueInterpretations_ = - com.google.protobuf.MapField.newMapField( - MissingValueInterpretationsDefaultEntryHolder.defaultEntry); + missingValueInterpretations_ = com.google.protobuf.MapField.newMapField( + MissingValueInterpretationsDefaultEntryHolder.defaultEntry); } if (!missingValueInterpretations_.isMutable()) { missingValueInterpretations_ = missingValueInterpretations_.copy(); @@ -3239,13 +2872,10 @@ public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { onChanged(); return missingValueInterpretations_; } - public int getMissingValueInterpretationsCount() { return internalGetMissingValueInterpretations().getMap().size(); } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3263,29 +2893,24 @@ public int getMissingValueInterpretationsCount() {
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public boolean containsMissingValueInterpretations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMissingValueInterpretations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMissingValueInterpretations().getMap().containsKey(key); } - /** Use {@link #getMissingValueInterpretationsMap()} instead. */ + /** + * Use {@link #getMissingValueInterpretationsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> - getMissingValueInterpretations() { + public java.util.Map + getMissingValueInterpretations() { return getMissingValueInterpretationsMap(); } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3303,21 +2928,14 @@ public boolean containsMissingValueInterpretations(java.lang.String key) {
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public java.util.Map< - java.lang.String, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> - getMissingValueInterpretationsMap() { + public java.util.Map + getMissingValueInterpretationsMap() { return internalGetAdaptedMissingValueInterpretationsMap( - internalGetMissingValueInterpretations().getMap()); - } + internalGetMissingValueInterpretations().getMap());} /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3335,30 +2953,22 @@ public boolean containsMissingValueInterpretations(java.lang.String key) {
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public /* nullable */ com.google.cloud.bigquery.storage.v1.AppendRowsRequest - .MissingValueInterpretation - getMissingValueInterpretationsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation - defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + public /* nullable */ +com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMissingValueInterpretations().getMap(); return map.containsKey(key) - ? missingValueInterpretationsValueConverter.doForward(map.get(key)) - : defaultValue; + ? missingValueInterpretationsValueConverter.doForward(map.get(key)) + : defaultValue; } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3376,16 +2986,12 @@ public boolean containsMissingValueInterpretations(java.lang.String key) {
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation - getMissingValueInterpretationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMissingValueInterpretations().getMap(); if (!map.containsKey(key)) { @@ -3393,16 +2999,16 @@ public boolean containsMissingValueInterpretations(java.lang.String key) { } return missingValueInterpretationsValueConverter.doForward(map.get(key)); } - /** Use {@link #getMissingValueInterpretationsValueMap()} instead. */ + /** + * Use {@link #getMissingValueInterpretationsValueMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map - getMissingValueInterpretationsValue() { + getMissingValueInterpretationsValue() { return getMissingValueInterpretationsValueMap(); } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3420,18 +3026,14 @@ public boolean containsMissingValueInterpretations(java.lang.String key) {
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override public java.util.Map - getMissingValueInterpretationsValueMap() { + getMissingValueInterpretationsValueMap() { return internalGetMissingValueInterpretations().getMap(); } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3449,23 +3051,18 @@ public boolean containsMissingValueInterpretations(java.lang.String key) {
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override public int getMissingValueInterpretationsValueOrDefault( - java.lang.String key, int defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + int defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMissingValueInterpretations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3483,15 +3080,12 @@ public int getMissingValueInterpretationsValueOrDefault(
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ @java.lang.Override - public int getMissingValueInterpretationsValueOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public int getMissingValueInterpretationsValueOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMissingValueInterpretations().getMap(); if (!map.containsKey(key)) { @@ -3499,15 +3093,13 @@ public int getMissingValueInterpretationsValueOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearMissingValueInterpretations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableMissingValueInterpretations().getMutableMap().clear(); + internalGetMutableMissingValueInterpretations().getMutableMap() + .clear(); return this; } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3525,30 +3117,26 @@ public Builder clearMissingValueInterpretations() {
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ - public Builder removeMissingValueInterpretations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMissingValueInterpretations().getMutableMap().remove(key); + public Builder removeMissingValueInterpretations( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMissingValueInterpretations().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map< - java.lang.String, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> + public java.util.Map getMutableMissingValueInterpretations() { bitField0_ |= 0x00000010; return internalGetAdaptedMissingValueInterpretationsMap( - internalGetMutableMissingValueInterpretations().getMutableMap()); + internalGetMutableMissingValueInterpretations().getMutableMap()); } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3566,26 +3154,19 @@ public Builder removeMissingValueInterpretations(java.lang.String key) {
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ public Builder putMissingValueInterpretations( java.lang.String key, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableMissingValueInterpretations() - .getMutableMap() + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableMissingValueInterpretations().getMutableMap() .put(key, missingValueInterpretationsValueConverter.doBackward(value)); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3603,31 +3184,26 @@ public Builder putMissingValueInterpretations(
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ public Builder putAllMissingValueInterpretations( - java.util.Map< - java.lang.String, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> - values) { + java.util.Map values) { internalGetAdaptedMissingValueInterpretationsMap( - internalGetMutableMissingValueInterpretations().getMutableMap()) - .putAll(values); + internalGetMutableMissingValueInterpretations().getMutableMap()) + .putAll(values); bitField0_ |= 0x00000010; return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableMissingValueInterpretationsValue() { + getMutableMissingValueInterpretationsValue() { bitField0_ |= 0x00000010; return internalGetMutableMissingValueInterpretations().getMutableMap(); } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3645,22 +3221,19 @@ public Builder putAllMissingValueInterpretations(
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ - public Builder putMissingValueInterpretationsValue(java.lang.String key, int value) { - if (key == null) { - throw new NullPointerException("map key"); - } - - internalGetMutableMissingValueInterpretations().getMutableMap().put(key, value); + public Builder putMissingValueInterpretationsValue( + java.lang.String key, + int value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableMissingValueInterpretations().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3678,19 +3251,18 @@ public Builder putMissingValueInterpretationsValue(java.lang.String key, int val
      * field path like 'foo.bar'.
      * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ public Builder putAllMissingValueInterpretationsValue( java.util.Map values) { - internalGetMutableMissingValueInterpretations().getMutableMap().putAll(values); + internalGetMutableMissingValueInterpretations().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3700,12 +3272,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest) private static final com.google.cloud.bigquery.storage.v1.AppendRowsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AppendRowsRequest(); } @@ -3714,27 +3286,27 @@ public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppendRowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppendRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3749,4 +3321,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.AppendRowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java index 1c0b44754f..e83143f9cd 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface AppendRowsRequestOrBuilder - extends +public interface AppendRowsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AppendRowsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The write_stream identifies the target of the append operation,
    * and only needs to be specified as part of the first request on the gRPC
@@ -37,16 +19,11 @@ public interface AppendRowsRequestOrBuilder
    * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ java.lang.String getWriteStream(); /** - * - * *
    * Required. The write_stream identifies the target of the append operation,
    * and only needs to be specified as part of the first request on the gRPC
@@ -58,17 +35,13 @@ public interface AppendRowsRequestOrBuilder
    * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ - com.google.protobuf.ByteString getWriteStreamBytes(); + com.google.protobuf.ByteString + getWriteStreamBytes(); /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -77,13 +50,10 @@ public interface AppendRowsRequestOrBuilder
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ boolean hasOffset(); /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -92,13 +62,10 @@ public interface AppendRowsRequestOrBuilder
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -111,32 +78,24 @@ public interface AppendRowsRequestOrBuilder
   com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; - * * @return Whether the protoRows field is set. */ boolean hasProtoRows(); /** - * - * *
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; - * * @return The protoRows. */ com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getProtoRows(); /** - * - * *
    * Rows in proto format.
    * 
@@ -146,35 +105,28 @@ public interface AppendRowsRequestOrBuilder com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder(); /** - * - * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; - * * @return The traceId. */ java.lang.String getTraceId(); /** - * - * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; - * * @return The bytes for traceId. */ - com.google.protobuf.ByteString getTraceIdBytes(); + com.google.protobuf.ByteString + getTraceIdBytes(); /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -192,14 +144,10 @@ public interface AppendRowsRequestOrBuilder
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ int getMissingValueInterpretationsCount(); /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -217,20 +165,17 @@ public interface AppendRowsRequestOrBuilder
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + */ + boolean containsMissingValueInterpretations( + java.lang.String key); + /** + * Use {@link #getMissingValueInterpretationsMap()} instead. */ - boolean containsMissingValueInterpretations(java.lang.String key); - /** Use {@link #getMissingValueInterpretationsMap()} instead. */ @java.lang.Deprecated - java.util.Map< - java.lang.String, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> - getMissingValueInterpretations(); + java.util.Map + getMissingValueInterpretations(); /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -248,17 +193,11 @@ public interface AppendRowsRequestOrBuilder
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ - java.util.Map< - java.lang.String, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> - getMissingValueInterpretationsMap(); + java.util.Map + getMissingValueInterpretationsMap(); /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -276,20 +215,14 @@ public interface AppendRowsRequestOrBuilder
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ /* nullable */ - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation - getMissingValueInterpretationsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation - defaultValue); +com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrDefault( + java.lang.String key, + /* nullable */ +com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation defaultValue); /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -307,18 +240,17 @@ public interface AppendRowsRequestOrBuilder
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + */ + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrThrow( + java.lang.String key); + /** + * Use {@link #getMissingValueInterpretationsValueMap()} instead. */ - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation - getMissingValueInterpretationsOrThrow(java.lang.String key); - /** Use {@link #getMissingValueInterpretationsValueMap()} instead. */ @java.lang.Deprecated - java.util.Map getMissingValueInterpretationsValue(); + java.util.Map + getMissingValueInterpretationsValue(); /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -336,14 +268,11 @@ public interface AppendRowsRequestOrBuilder
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ - java.util.Map getMissingValueInterpretationsValueMap(); + java.util.Map + getMissingValueInterpretationsValueMap(); /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -361,14 +290,12 @@ public interface AppendRowsRequestOrBuilder
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ - int getMissingValueInterpretationsValueOrDefault(java.lang.String key, int defaultValue); + int getMissingValueInterpretationsValueOrDefault( + java.lang.String key, + int defaultValue); /** - * - * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -386,11 +313,10 @@ public interface AppendRowsRequestOrBuilder
    * field path like 'foo.bar'.
    * 
* - * - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; */ - int getMissingValueInterpretationsValueOrThrow(java.lang.String key); + int getMissingValueInterpretationsValueOrThrow( + java.lang.String key); public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.RowsCase getRowsCase(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java similarity index 74% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java index 5100da26ef..eb05bb2668 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Response message for `AppendRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsResponse} */ -public final class AppendRowsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AppendRowsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AppendRowsResponse) AppendRowsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AppendRowsResponse.newBuilder() to construct. private AppendRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AppendRowsResponse() { rowErrors_ = java.util.Collections.emptyList(); writeStream_ = ""; @@ -44,64 +26,54 @@ private AppendRowsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AppendRowsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.Builder.class); } - public interface AppendResultOrBuilder - extends + public interface AppendResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; - * * @return Whether the offset field is set. */ boolean hasOffset(); /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; - * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
@@ -112,64 +84,58 @@ public interface AppendResultOrBuilder
     com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder();
   }
   /**
-   *
-   *
    * 
    * AppendResult is returned for successful append requests.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult} */ - public static final class AppendResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AppendResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) AppendResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AppendResult.newBuilder() to construct. private AppendResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AppendResult() {} + private AppendResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AppendResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.class, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder.class); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.class, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private com.google.protobuf.Int64Value offset_; /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; - * * @return Whether the offset field is set. */ @java.lang.Override @@ -177,15 +143,12 @@ public boolean hasOffset() { return offset_ != null; } /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; - * * @return The offset. */ @java.lang.Override @@ -193,8 +156,6 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
@@ -208,7 +169,6 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -220,7 +180,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (offset_ != null) {
         output.writeMessage(1, getOffset());
       }
@@ -234,7 +195,8 @@ public int getSerializedSize() {
 
       size = 0;
       if (offset_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOffset());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getOffset());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -244,17 +206,17 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult other =
-          (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) obj;
+      com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult other = (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) obj;
 
       if (hasOffset() != other.hasOffset()) return false;
       if (hasOffset()) {
-        if (!getOffset().equals(other.getOffset())) return false;
+        if (!getOffset()
+            .equals(other.getOffset())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -277,95 +239,87 @@ public int hashCode() {
     }
 
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult prototype) {
+    public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -375,42 +329,39 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * AppendResult is returned for successful append requests.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.class, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder.class); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.class, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -424,22 +375,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult build() { - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result = - buildPartial(); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -448,20 +396,18 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult buil @java.lang.Override public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult buildPartial() { - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result = - new com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result = new com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build(); + result.offset_ = offsetBuilder_ == null + ? offset_ + : offsetBuilder_.build(); } } @@ -469,53 +415,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult other) { - if (other - == com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult other) { + if (other == com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance()) return this; if (other.hasOffset()) { mergeOffset(other.getOffset()); } @@ -545,19 +484,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -567,40 +506,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - offsetBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; /** - * - * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
        * 
* * .google.protobuf.Int64Value offset = 1; - * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
        * 
* * .google.protobuf.Int64Value offset = 1; - * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -611,8 +540,6 @@ public com.google.protobuf.Int64Value getOffset() { } } /** - * - * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -634,8 +561,6 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -643,7 +568,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
        *
        * .google.protobuf.Int64Value offset = 1;
        */
-      public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
+      public Builder setOffset(
+          com.google.protobuf.Int64Value.Builder builderForValue) {
         if (offsetBuilder_ == null) {
           offset_ = builderForValue.build();
         } else {
@@ -654,8 +580,6 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
         return this;
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -665,9 +589,9 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
        */
       public Builder mergeOffset(com.google.protobuf.Int64Value value) {
         if (offsetBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && offset_ != null
-              && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            offset_ != null &&
+            offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
             getOffsetBuilder().mergeFrom(value);
           } else {
             offset_ = value;
@@ -680,8 +604,6 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -700,8 +622,6 @@ public Builder clearOffset() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -715,8 +635,6 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
         return getOffsetFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -728,12 +646,11 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
         if (offsetBuilder_ != null) {
           return offsetBuilder_.getMessageOrBuilder();
         } else {
-          return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+          return offset_ == null ?
+              com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
         }
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -742,22 +659,18 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
        * .google.protobuf.Int64Value offset = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Int64Value,
-              com.google.protobuf.Int64Value.Builder,
-              com.google.protobuf.Int64ValueOrBuilder>
+          com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
           getOffsetFieldBuilder() {
         if (offsetBuilder_ == null) {
-          offsetBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Int64Value,
-                  com.google.protobuf.Int64Value.Builder,
-                  com.google.protobuf.Int64ValueOrBuilder>(
-                  getOffset(), getParentForChildren(), isClean());
+          offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                  getOffset(),
+                  getParentForChildren(),
+                  isClean());
           offset_ = null;
         }
         return offsetBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -770,44 +683,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult)
-    private static final com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult DEFAULT_INSTANCE;
     static {
       DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult();
     }
 
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult
-        getDefaultInstance() {
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public AppendResult parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public AppendResult parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -819,24 +729,21 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult
-        getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   private int responseCase_ = 0;
   private java.lang.Object response_;
-
   public enum ResponseCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     APPEND_RESULT(1),
     ERROR(2),
     RESPONSE_NOT_SET(0);
     private final int value;
-
     private ResponseCase(int value) {
       this.value = value;
     }
@@ -852,37 +759,30 @@ public static ResponseCase valueOf(int value) {
 
     public static ResponseCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return APPEND_RESULT;
-        case 2:
-          return ERROR;
-        case 0:
-          return RESPONSE_NOT_SET;
-        default:
-          return null;
+        case 1: return APPEND_RESULT;
+        case 2: return ERROR;
+        case 0: return RESPONSE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ResponseCase getResponseCase() {
-    return ResponseCase.forNumber(responseCase_);
+  public ResponseCase
+  getResponseCase() {
+    return ResponseCase.forNumber(
+        responseCase_);
   }
 
   public static final int APPEND_RESULT_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; * @return Whether the appendResult field is set. */ @java.lang.Override @@ -890,49 +790,37 @@ public boolean hasAppendResult() { return responseCase_ == 1; } /** - * - * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; * @return The appendResult. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getAppendResult() { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; + return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); } /** - * - * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder - getAppendResultOrBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder() { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; + return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); } public static final int ERROR_FIELD_NUMBER = 2; /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -951,7 +839,6 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getA
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ @java.lang.Override @@ -959,8 +846,6 @@ public boolean hasError() { return responseCase_ == 2; } /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -979,19 +864,16 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (responseCase_ == 2) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -1014,7 +896,7 @@ public com.google.rpc.Status getError() {
   @java.lang.Override
   public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
     if (responseCase_ == 2) {
-      return (com.google.rpc.Status) response_;
+       return (com.google.rpc.Status) response_;
     }
     return com.google.rpc.Status.getDefaultInstance();
   }
@@ -1022,8 +904,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int UPDATED_SCHEMA_FIELD_NUMBER = 3;
   private com.google.cloud.bigquery.storage.v1.TableSchema updatedSchema_;
   /**
-   *
-   *
    * 
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -1031,7 +911,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
    * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; - * * @return Whether the updatedSchema field is set. */ @java.lang.Override @@ -1039,8 +918,6 @@ public boolean hasUpdatedSchema() { return updatedSchema_ != null; } /** - * - * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -1048,18 +925,13 @@ public boolean hasUpdatedSchema() {
    * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; - * * @return The updatedSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableSchema getUpdatedSchema() { - return updatedSchema_ == null - ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() - : updatedSchema_; + return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : updatedSchema_; } /** - * - * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -1070,18 +942,13 @@ public com.google.cloud.bigquery.storage.v1.TableSchema getUpdatedSchema() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getUpdatedSchemaOrBuilder() {
-    return updatedSchema_ == null
-        ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()
-        : updatedSchema_;
+    return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : updatedSchema_;
   }
 
   public static final int ROW_ERRORS_FIELD_NUMBER = 4;
-
   @SuppressWarnings("serial")
   private java.util.List rowErrors_;
   /**
-   *
-   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -1095,8 +962,6 @@ public java.util.List getRowError
     return rowErrors_;
   }
   /**
-   *
-   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -1106,13 +971,11 @@ public java.util.List getRowError
    * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getRowErrorsOrBuilderList() {
     return rowErrors_;
   }
   /**
-   *
-   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -1126,8 +989,6 @@ public int getRowErrorsCount() {
     return rowErrors_.size();
   }
   /**
-   *
-   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -1141,8 +1002,6 @@ public com.google.cloud.bigquery.storage.v1.RowError getRowErrors(int index) {
     return rowErrors_.get(index);
   }
   /**
-   *
-   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -1152,24 +1011,21 @@ public com.google.cloud.bigquery.storage.v1.RowError getRowErrors(int index) {
    * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(int index) {
+  public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(
+      int index) {
     return rowErrors_.get(index);
   }
 
   public static final int WRITE_STREAM_FIELD_NUMBER = 5;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object writeStream_ = "";
   /**
-   *
-   *
    * 
    * The target of the append operation. Matches the write_stream in the
    * corresponding request.
    * 
* * string write_stream = 5; - * * @return The writeStream. */ @java.lang.Override @@ -1178,30 +1034,30 @@ public java.lang.String getWriteStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; } } /** - * - * *
    * The target of the append operation. Matches the write_stream in the
    * corresponding request.
    * 
* * string write_stream = 5; - * * @return The bytes for writeStream. */ @java.lang.Override - public com.google.protobuf.ByteString getWriteStreamBytes() { + public com.google.protobuf.ByteString + getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeStream_ = b; return b; } else { @@ -1210,7 +1066,6 @@ public com.google.protobuf.ByteString getWriteStreamBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1222,10 +1077,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (responseCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_); + output.writeMessage(1, (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_); } if (responseCase_ == 2) { output.writeMessage(2, (com.google.rpc.Status) response_); @@ -1249,20 +1104,20 @@ public int getSerializedSize() { size = 0; if (responseCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_); } if (responseCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.rpc.Status) response_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.rpc.Status) response_); } if (updatedSchema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdatedSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdatedSchema()); } for (int i = 0; i < rowErrors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, rowErrors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, rowErrors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeStream_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, writeStream_); @@ -1275,27 +1130,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AppendRowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.AppendRowsResponse other = - (com.google.cloud.bigquery.storage.v1.AppendRowsResponse) obj; + com.google.cloud.bigquery.storage.v1.AppendRowsResponse other = (com.google.cloud.bigquery.storage.v1.AppendRowsResponse) obj; if (hasUpdatedSchema() != other.hasUpdatedSchema()) return false; if (hasUpdatedSchema()) { - if (!getUpdatedSchema().equals(other.getUpdatedSchema())) return false; + if (!getUpdatedSchema() + .equals(other.getUpdatedSchema())) return false; } - if (!getRowErrorsList().equals(other.getRowErrorsList())) return false; - if (!getWriteStream().equals(other.getWriteStream())) return false; + if (!getRowErrorsList() + .equals(other.getRowErrorsList())) return false; + if (!getWriteStream() + .equals(other.getWriteStream())) return false; if (!getResponseCase().equals(other.getResponseCase())) return false; switch (responseCase_) { case 1: - if (!getAppendResult().equals(other.getAppendResult())) return false; + if (!getAppendResult() + .equals(other.getAppendResult())) return false; break; case 2: - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; break; case 0: default: @@ -1339,136 +1198,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AppendRowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for `AppendRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AppendRowsResponse) com.google.cloud.bigquery.storage.v1.AppendRowsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.AppendRowsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1498,9 +1350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; } @java.lang.Override @@ -1519,19 +1371,15 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsResponse build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.AppendRowsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1.AppendRowsResponse result = - new com.google.cloud.bigquery.storage.v1.AppendRowsResponse(this); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse result = new com.google.cloud.bigquery.storage.v1.AppendRowsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.AppendRowsResponse result) { if (rowErrorsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { rowErrors_ = java.util.Collections.unmodifiableList(rowErrors_); @@ -1546,22 +1394,24 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { - result.updatedSchema_ = - updatedSchemaBuilder_ == null ? updatedSchema_ : updatedSchemaBuilder_.build(); + result.updatedSchema_ = updatedSchemaBuilder_ == null + ? updatedSchema_ + : updatedSchemaBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.writeStream_ = writeStream_; } } - private void buildPartialOneofs( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse result) { + private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.AppendRowsResponse result) { result.responseCase_ = responseCase_; result.response_ = this.response_; - if (responseCase_ == 1 && appendResultBuilder_ != null) { + if (responseCase_ == 1 && + appendResultBuilder_ != null) { result.response_ = appendResultBuilder_.build(); } - if (responseCase_ == 2 && errorBuilder_ != null) { + if (responseCase_ == 2 && + errorBuilder_ != null) { result.response_ = errorBuilder_.build(); } } @@ -1570,39 +1420,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.AppendRowsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsResponse) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsResponse)other); } else { super.mergeFrom(other); return this; @@ -1610,8 +1459,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsResponse other) { - if (other == com.google.cloud.bigquery.storage.v1.AppendRowsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.AppendRowsResponse.getDefaultInstance()) return this; if (other.hasUpdatedSchema()) { mergeUpdatedSchema(other.getUpdatedSchema()); } @@ -1633,10 +1481,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsResponse rowErrorsBuilder_ = null; rowErrors_ = other.rowErrors_; bitField0_ = (bitField0_ & ~0x00000008); - rowErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRowErrorsFieldBuilder() - : null; + rowErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRowErrorsFieldBuilder() : null; } else { rowErrorsBuilder_.addAllMessages(other.rowErrors_); } @@ -1648,20 +1495,17 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsResponse onChanged(); } switch (other.getResponseCase()) { - case APPEND_RESULT: - { - mergeAppendResult(other.getAppendResult()); - break; - } - case ERROR: - { - mergeError(other.getError()); - break; - } - case RESPONSE_NOT_SET: - { - break; - } + case APPEND_RESULT: { + mergeAppendResult(other.getAppendResult()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case RESPONSE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1689,50 +1533,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getAppendResultFieldBuilder().getBuilder(), extensionRegistry); - responseCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - responseCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdatedSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.cloud.bigquery.storage.v1.RowError m = - input.readMessage( - com.google.cloud.bigquery.storage.v1.RowError.parser(), extensionRegistry); - if (rowErrorsBuilder_ == null) { - ensureRowErrorsIsMutable(); - rowErrors_.add(m); - } else { - rowErrorsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - writeStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getAppendResultFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdatedSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.cloud.bigquery.storage.v1.RowError m = + input.readMessage( + com.google.cloud.bigquery.storage.v1.RowError.parser(), + extensionRegistry); + if (rowErrorsBuilder_ == null) { + ensureRowErrorsIsMutable(); + rowErrors_.add(m); + } else { + rowErrorsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + writeStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1742,12 +1587,12 @@ public Builder mergeFrom( } // finally return this; } - private int responseCase_ = 0; private java.lang.Object response_; - - public ResponseCase getResponseCase() { - return ResponseCase.forNumber(responseCase_); + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); } public Builder clearResponse() { @@ -1760,20 +1605,13 @@ public Builder clearResponse() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder> - appendResultBuilder_; + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder> appendResultBuilder_; /** - * - * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; * @return Whether the appendResult field is set. */ @java.lang.Override @@ -1781,15 +1619,11 @@ public boolean hasAppendResult() { return responseCase_ == 1; } /** - * - * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; * @return The appendResult. */ @java.lang.Override @@ -1798,28 +1632,22 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getA if (responseCase_ == 1) { return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); } else { if (responseCase_ == 1) { return appendResultBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); } } /** - * - * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; */ - public Builder setAppendResult( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult value) { + public Builder setAppendResult(com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult value) { if (appendResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1833,18 +1661,14 @@ public Builder setAppendResult( return this; } /** - * - * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; */ public Builder setAppendResult( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder builderForValue) { if (appendResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1855,28 +1679,18 @@ public Builder setAppendResult( return this; } /** - * - * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; */ - public Builder mergeAppendResult( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult value) { + public Builder mergeAppendResult(com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult value) { if (appendResultBuilder_ == null) { - if (responseCase_ == 1 - && response_ - != com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult - .getDefaultInstance()) { - response_ = - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.newBuilder( - (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) - response_) - .mergeFrom(value) - .buildPartial(); + if (responseCase_ == 1 && + response_ != com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance()) { + response_ = com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.newBuilder((com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_) + .mergeFrom(value).buildPartial(); } else { response_ = value; } @@ -1892,14 +1706,11 @@ public Builder mergeAppendResult( return this; } /** - * - * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; */ public Builder clearAppendResult() { if (appendResultBuilder_ == null) { @@ -1918,68 +1729,49 @@ public Builder clearAppendResult() { return this; } /** - * - * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; */ - public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder - getAppendResultBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder getAppendResultBuilder() { return getAppendResultFieldBuilder().getBuilder(); } /** - * - * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder - getAppendResultOrBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder() { if ((responseCase_ == 1) && (appendResultBuilder_ != null)) { return appendResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 1) { return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); } } /** - * - * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder> + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder> getAppendResultFieldBuilder() { if (appendResultBuilder_ == null) { if (!(responseCase_ == 1)) { - response_ = - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult - .getDefaultInstance(); + response_ = com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); } - appendResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder>( + appendResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder>( (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_, getParentForChildren(), isClean()); @@ -1991,11 +1783,8 @@ public Builder clearAppendResult() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2014,7 +1803,6 @@ public Builder clearAppendResult() {
      * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ @java.lang.Override @@ -2022,8 +1810,6 @@ public boolean hasError() { return responseCase_ == 2; } /** - * - * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2042,7 +1828,6 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 2; - * * @return The error. */ @java.lang.Override @@ -2060,8 +1845,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2095,8 +1878,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2116,7 +1897,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 2;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         response_ = builderForValue.build();
         onChanged();
@@ -2127,8 +1909,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2150,11 +1930,10 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (responseCase_ == 2 && response_ != com.google.rpc.Status.getDefaultInstance()) {
-          response_ =
-              com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (responseCase_ == 2 &&
+            response_ != com.google.rpc.Status.getDefaultInstance()) {
+          response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
+              .mergeFrom(value).buildPartial();
         } else {
           response_ = value;
         }
@@ -2170,8 +1949,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2208,8 +1985,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2233,8 +2008,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2266,8 +2039,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2288,18 +2059,17 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
         if (!(responseCase_ == 2)) {
           response_ = com.google.rpc.Status.getDefaultInstance();
         }
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
-                (com.google.rpc.Status) response_, getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                (com.google.rpc.Status) response_,
+                getParentForChildren(),
+                isClean());
         response_ = null;
       }
       responseCase_ = 2;
@@ -2309,13 +2079,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.bigquery.storage.v1.TableSchema updatedSchema_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.TableSchema,
-            com.google.cloud.bigquery.storage.v1.TableSchema.Builder,
-            com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>
-        updatedSchemaBuilder_;
+        com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> updatedSchemaBuilder_;
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2323,15 +2088,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; - * * @return Whether the updatedSchema field is set. */ public boolean hasUpdatedSchema() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2339,21 +2101,16 @@ public boolean hasUpdatedSchema() {
      * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; - * * @return The updatedSchema. */ public com.google.cloud.bigquery.storage.v1.TableSchema getUpdatedSchema() { if (updatedSchemaBuilder_ == null) { - return updatedSchema_ == null - ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() - : updatedSchema_; + return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : updatedSchema_; } else { return updatedSchemaBuilder_.getMessage(); } } /** - * - * *
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2376,8 +2133,6 @@ public Builder setUpdatedSchema(com.google.cloud.bigquery.storage.v1.TableSchema
       return this;
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2398,8 +2153,6 @@ public Builder setUpdatedSchema(
       return this;
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2410,10 +2163,9 @@ public Builder setUpdatedSchema(
      */
     public Builder mergeUpdatedSchema(com.google.cloud.bigquery.storage.v1.TableSchema value) {
       if (updatedSchemaBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && updatedSchema_ != null
-            && updatedSchema_
-                != com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          updatedSchema_ != null &&
+          updatedSchema_ != com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()) {
           getUpdatedSchemaBuilder().mergeFrom(value);
         } else {
           updatedSchema_ = value;
@@ -2426,8 +2178,6 @@ public Builder mergeUpdatedSchema(com.google.cloud.bigquery.storage.v1.TableSche
       return this;
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2447,8 +2197,6 @@ public Builder clearUpdatedSchema() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2463,8 +2211,6 @@ public com.google.cloud.bigquery.storage.v1.TableSchema.Builder getUpdatedSchema
       return getUpdatedSchemaFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2477,14 +2223,11 @@ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getUpdatedSchem
       if (updatedSchemaBuilder_ != null) {
         return updatedSchemaBuilder_.getMessageOrBuilder();
       } else {
-        return updatedSchema_ == null
-            ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()
-            : updatedSchema_;
+        return updatedSchema_ == null ?
+            com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : updatedSchema_;
       }
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2494,42 +2237,32 @@ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getUpdatedSchem
      * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.TableSchema,
-            com.google.cloud.bigquery.storage.v1.TableSchema.Builder,
-            com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>
+        com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> 
         getUpdatedSchemaFieldBuilder() {
       if (updatedSchemaBuilder_ == null) {
-        updatedSchemaBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1.TableSchema,
-                com.google.cloud.bigquery.storage.v1.TableSchema.Builder,
-                com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>(
-                getUpdatedSchema(), getParentForChildren(), isClean());
+        updatedSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>(
+                getUpdatedSchema(),
+                getParentForChildren(),
+                isClean());
         updatedSchema_ = null;
       }
       return updatedSchemaBuilder_;
     }
 
     private java.util.List rowErrors_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureRowErrorsIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
-        rowErrors_ =
-            new java.util.ArrayList(rowErrors_);
+        rowErrors_ = new java.util.ArrayList(rowErrors_);
         bitField0_ |= 0x00000008;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.RowError,
-            com.google.cloud.bigquery.storage.v1.RowError.Builder,
-            com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder>
-        rowErrorsBuilder_;
+        com.google.cloud.bigquery.storage.v1.RowError, com.google.cloud.bigquery.storage.v1.RowError.Builder, com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder> rowErrorsBuilder_;
 
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2546,8 +2279,6 @@ public java.util.List getRowError
       }
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2564,8 +2295,6 @@ public int getRowErrorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2582,8 +2311,6 @@ public com.google.cloud.bigquery.storage.v1.RowError getRowErrors(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2592,7 +2319,8 @@ public com.google.cloud.bigquery.storage.v1.RowError getRowErrors(int index) {
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public Builder setRowErrors(int index, com.google.cloud.bigquery.storage.v1.RowError value) {
+    public Builder setRowErrors(
+        int index, com.google.cloud.bigquery.storage.v1.RowError value) {
       if (rowErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2606,8 +2334,6 @@ public Builder setRowErrors(int index, com.google.cloud.bigquery.storage.v1.RowE
       return this;
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2628,8 +2354,6 @@ public Builder setRowErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2652,8 +2376,6 @@ public Builder addRowErrors(com.google.cloud.bigquery.storage.v1.RowError value)
       return this;
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2662,7 +2384,8 @@ public Builder addRowErrors(com.google.cloud.bigquery.storage.v1.RowError value)
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public Builder addRowErrors(int index, com.google.cloud.bigquery.storage.v1.RowError value) {
+    public Builder addRowErrors(
+        int index, com.google.cloud.bigquery.storage.v1.RowError value) {
       if (rowErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2676,8 +2399,6 @@ public Builder addRowErrors(int index, com.google.cloud.bigquery.storage.v1.RowE
       return this;
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2698,8 +2419,6 @@ public Builder addRowErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2720,8 +2439,6 @@ public Builder addRowErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2734,7 +2451,8 @@ public Builder addAllRowErrors(
         java.lang.Iterable values) {
       if (rowErrorsBuilder_ == null) {
         ensureRowErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rowErrors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, rowErrors_);
         onChanged();
       } else {
         rowErrorsBuilder_.addAllMessages(values);
@@ -2742,8 +2460,6 @@ public Builder addAllRowErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2763,8 +2479,6 @@ public Builder clearRowErrors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2784,8 +2498,6 @@ public Builder removeRowErrors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2794,12 +2506,11 @@ public Builder removeRowErrors(int index) {
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public com.google.cloud.bigquery.storage.v1.RowError.Builder getRowErrorsBuilder(int index) {
+    public com.google.cloud.bigquery.storage.v1.RowError.Builder getRowErrorsBuilder(
+        int index) {
       return getRowErrorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2808,16 +2519,14 @@ public com.google.cloud.bigquery.storage.v1.RowError.Builder getRowErrorsBuilder
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(int index) {
+    public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(
+        int index) {
       if (rowErrorsBuilder_ == null) {
-        return rowErrors_.get(index);
-      } else {
+        return rowErrors_.get(index);  } else {
         return rowErrorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2826,8 +2535,8 @@ public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuil
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public java.util.List
-        getRowErrorsOrBuilderList() {
+    public java.util.List 
+         getRowErrorsOrBuilderList() {
       if (rowErrorsBuilder_ != null) {
         return rowErrorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2835,8 +2544,6 @@ public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuil
       }
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2846,12 +2553,10 @@ public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuil
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
     public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder() {
-      return getRowErrorsFieldBuilder()
-          .addBuilder(com.google.cloud.bigquery.storage.v1.RowError.getDefaultInstance());
+      return getRowErrorsFieldBuilder().addBuilder(
+          com.google.cloud.bigquery.storage.v1.RowError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2860,13 +2565,12 @@ public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder(int index) {
-      return getRowErrorsFieldBuilder()
-          .addBuilder(index, com.google.cloud.bigquery.storage.v1.RowError.getDefaultInstance());
+    public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder(
+        int index) {
+      return getRowErrorsFieldBuilder().addBuilder(
+          index, com.google.cloud.bigquery.storage.v1.RowError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2875,23 +2579,20 @@ public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public java.util.List
-        getRowErrorsBuilderList() {
+    public java.util.List 
+         getRowErrorsBuilderList() {
       return getRowErrorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.RowError,
-            com.google.cloud.bigquery.storage.v1.RowError.Builder,
-            com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder>
+        com.google.cloud.bigquery.storage.v1.RowError, com.google.cloud.bigquery.storage.v1.RowError.Builder, com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder> 
         getRowErrorsFieldBuilder() {
       if (rowErrorsBuilder_ == null) {
-        rowErrorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1.RowError,
-                com.google.cloud.bigquery.storage.v1.RowError.Builder,
-                com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder>(
-                rowErrors_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
+        rowErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1.RowError, com.google.cloud.bigquery.storage.v1.RowError.Builder, com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder>(
+                rowErrors_,
+                ((bitField0_ & 0x00000008) != 0),
+                getParentForChildren(),
+                isClean());
         rowErrors_ = null;
       }
       return rowErrorsBuilder_;
@@ -2899,21 +2600,19 @@ public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder
 
     private java.lang.Object writeStream_ = "";
     /**
-     *
-     *
      * 
      * The target of the append operation. Matches the write_stream in the
      * corresponding request.
      * 
* * string write_stream = 5; - * * @return The writeStream. */ public java.lang.String getWriteStream() { java.lang.Object ref = writeStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; @@ -2922,22 +2621,21 @@ public java.lang.String getWriteStream() { } } /** - * - * *
      * The target of the append operation. Matches the write_stream in the
      * corresponding request.
      * 
* * string write_stream = 5; - * * @return The bytes for writeStream. */ - public com.google.protobuf.ByteString getWriteStreamBytes() { + public com.google.protobuf.ByteString + getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeStream_ = b; return b; } else { @@ -2945,37 +2643,30 @@ public com.google.protobuf.ByteString getWriteStreamBytes() { } } /** - * - * *
      * The target of the append operation. Matches the write_stream in the
      * corresponding request.
      * 
* * string write_stream = 5; - * * @param value The writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStream(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStream( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } writeStream_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * The target of the append operation. Matches the write_stream in the
      * corresponding request.
      * 
* * string write_stream = 5; - * * @return This builder for chaining. */ public Builder clearWriteStream() { @@ -2985,31 +2676,27 @@ public Builder clearWriteStream() { return this; } /** - * - * *
      * The target of the append operation. Matches the write_stream in the
      * corresponding request.
      * 
* * string write_stream = 5; - * * @param value The bytes for writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStreamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); writeStream_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3019,12 +2706,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AppendRowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AppendRowsResponse) private static final com.google.cloud.bigquery.storage.v1.AppendRowsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AppendRowsResponse(); } @@ -3033,27 +2720,27 @@ public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppendRowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppendRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3068,4 +2755,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.AppendRowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java similarity index 86% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java index cfafd12c9d..7702951c04 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java @@ -1,70 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface AppendRowsResponseOrBuilder - extends +public interface AppendRowsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AppendRowsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; * @return Whether the appendResult field is set. */ boolean hasAppendResult(); /** - * - * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; * @return The appendResult. */ com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getAppendResult(); /** - * - * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; */ - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder - getAppendResultOrBuilder(); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder(); /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -83,13 +53,10 @@ public interface AppendRowsResponseOrBuilder
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -108,13 +75,10 @@ public interface AppendRowsResponseOrBuilder
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -137,8 +101,6 @@ public interface AppendRowsResponseOrBuilder
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -146,13 +108,10 @@ public interface AppendRowsResponseOrBuilder
    * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; - * * @return Whether the updatedSchema field is set. */ boolean hasUpdatedSchema(); /** - * - * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -160,13 +119,10 @@ public interface AppendRowsResponseOrBuilder
    * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; - * * @return The updatedSchema. */ com.google.cloud.bigquery.storage.v1.TableSchema getUpdatedSchema(); /** - * - * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -178,8 +134,6 @@ public interface AppendRowsResponseOrBuilder
   com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getUpdatedSchemaOrBuilder();
 
   /**
-   *
-   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -188,10 +142,9 @@ public interface AppendRowsResponseOrBuilder
    *
    * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
    */
-  java.util.List getRowErrorsList();
+  java.util.List 
+      getRowErrorsList();
   /**
-   *
-   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -202,8 +155,6 @@ public interface AppendRowsResponseOrBuilder
    */
   com.google.cloud.bigquery.storage.v1.RowError getRowErrors(int index);
   /**
-   *
-   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -214,8 +165,6 @@ public interface AppendRowsResponseOrBuilder
    */
   int getRowErrorsCount();
   /**
-   *
-   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -224,11 +173,9 @@ public interface AppendRowsResponseOrBuilder
    *
    * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
    */
-  java.util.List
+  java.util.List 
       getRowErrorsOrBuilderList();
   /**
-   *
-   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -237,34 +184,30 @@ public interface AppendRowsResponseOrBuilder
    *
    * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
    */
-  com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(int index);
+  com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * The target of the append operation. Matches the write_stream in the
    * corresponding request.
    * 
* * string write_stream = 5; - * * @return The writeStream. */ java.lang.String getWriteStream(); /** - * - * *
    * The target of the append operation. Matches the write_stream in the
    * corresponding request.
    * 
* * string write_stream = 5; - * * @return The bytes for writeStream. */ - com.google.protobuf.ByteString getWriteStreamBytes(); + com.google.protobuf.ByteString + getWriteStreamBytes(); public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.ResponseCase getResponseCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java new file mode 100644 index 0000000000..14ee256f03 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java @@ -0,0 +1,83 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/arrow.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class ArrowProto { + private ArrowProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/bigquery/storage/v1/arrow" + + ".proto\022 google.cloud.bigquery.storage.v1" + + "\"(\n\013ArrowSchema\022\031\n\021serialized_schema\030\001 \001" + + "(\014\"J\n\020ArrowRecordBatch\022\037\n\027serialized_rec" + + "ord_batch\030\001 \001(\014\022\025\n\trow_count\030\002 \001(\003B\002\030\001\"\317" + + "\001\n\031ArrowSerializationOptions\022h\n\022buffer_c" + + "ompression\030\002 \001(\0162L.google.cloud.bigquery" + + ".storage.v1.ArrowSerializationOptions.Co" + + "mpressionCodec\"H\n\020CompressionCodec\022\033\n\027CO" + + "MPRESSION_UNSPECIFIED\020\000\022\r\n\tLZ4_FRAME\020\001\022\010" + + "\n\004ZSTD\020\002B\272\001\n$com.google.cloud.bigquery.s" + + "torage.v1B\nArrowProtoP\001Z>cloud.google.co" + + "m/go/bigquery/storage/apiv1/storagepb;st" + + "oragepb\252\002 Google.Cloud.BigQuery.Storage." + + "V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1b\006p" + + "roto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor, + new java.lang.String[] { "SerializedSchema", }); + internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor, + new java.lang.String[] { "SerializedRecordBatch", "RowCount", }); + internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor, + new java.lang.String[] { "BufferCompression", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java similarity index 64% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java index 0c762b10f7..4d2e8ac638 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java @@ -1,84 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Arrow RecordBatch.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowRecordBatch} */ -public final class ArrowRecordBatch extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ArrowRecordBatch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ArrowRecordBatch) ArrowRecordBatchOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ArrowRecordBatch.newBuilder() to construct. private ArrowRecordBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ArrowRecordBatch() { serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ArrowRecordBatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.class, - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder.class); } public static final int SERIALIZED_RECORD_BATCH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedRecordBatch_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * IPC-serialized Arrow RecordBatch.
    * 
* * bytes serialized_record_batch = 1; - * * @return The serializedRecordBatch. */ @java.lang.Override @@ -89,27 +66,22 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { public static final int ROW_COUNT_FIELD_NUMBER = 2; private long rowCount_ = 0L; /** - * - * *
    * [Deprecated] The count of rows in `serialized_record_batch`.
    * Please use the format-independent ReadRowsResponse.row_count instead.
    * 
* * int64 row_count = 2 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See - * google/cloud/bigquery/storage/v1/arrow.proto;l=43 + * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. + * See google/cloud/bigquery/storage/v1/arrow.proto;l=43 * @return The rowCount. */ @java.lang.Override - @java.lang.Deprecated - public long getRowCount() { + @java.lang.Deprecated public long getRowCount() { return rowCount_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,7 +93,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!serializedRecordBatch_.isEmpty()) { output.writeBytes(1, serializedRecordBatch_); } @@ -138,10 +111,12 @@ public int getSerializedSize() { size = 0; if (!serializedRecordBatch_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedRecordBatch_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serializedRecordBatch_); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, rowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,16 +126,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ArrowRecordBatch)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch other = - (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) obj; + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch other = (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) obj; - if (!getSerializedRecordBatch().equals(other.getSerializedRecordBatch())) return false; - if (getRowCount() != other.getRowCount()) return false; + if (!getSerializedRecordBatch() + .equals(other.getSerializedRecordBatch())) return false; + if (getRowCount() + != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -175,143 +151,137 @@ public int hashCode() { hash = (37 * hash) + SERIALIZED_RECORD_BATCH_FIELD_NUMBER; hash = (53 * hash) + getSerializedRecordBatch().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Arrow RecordBatch.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowRecordBatch} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ArrowRecordBatch) com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.class, - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; } @java.lang.Override @@ -343,11 +313,8 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch buildPartial() { - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch result = - new com.google.cloud.bigquery.storage.v1.ArrowRecordBatch(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch result = new com.google.cloud.bigquery.storage.v1.ArrowRecordBatch(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +333,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowRecordBatch)other); } else { super.mergeFrom(other); return this; @@ -406,8 +372,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch other) { - if (other == com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance()) return this; if (other.getSerializedRecordBatch() != com.google.protobuf.ByteString.EMPTY) { setSerializedRecordBatch(other.getSerializedRecordBatch()); } @@ -440,25 +405,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - serializedRecordBatch_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + serializedRecordBatch_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -468,20 +430,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.ByteString serializedRecordBatch_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; - * * @return The serializedRecordBatch. */ @java.lang.Override @@ -489,35 +446,27 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { return serializedRecordBatch_; } /** - * - * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; - * * @param value The serializedRecordBatch to set. * @return This builder for chaining. */ public Builder setSerializedRecordBatch(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } serializedRecordBatch_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; - * * @return This builder for chaining. */ public Builder clearSerializedRecordBatch() { @@ -527,73 +476,61 @@ public Builder clearSerializedRecordBatch() { return this; } - private long rowCount_; + private long rowCount_ ; /** - * - * *
      * [Deprecated] The count of rows in `serialized_record_batch`.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See - * google/cloud/bigquery/storage/v1/arrow.proto;l=43 + * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. + * See google/cloud/bigquery/storage/v1/arrow.proto;l=43 * @return The rowCount. */ @java.lang.Override - @java.lang.Deprecated - public long getRowCount() { + @java.lang.Deprecated public long getRowCount() { return rowCount_; } /** - * - * *
      * [Deprecated] The count of rows in `serialized_record_batch`.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See - * google/cloud/bigquery/storage/v1/arrow.proto;l=43 + * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. + * See google/cloud/bigquery/storage/v1/arrow.proto;l=43 * @param value The rowCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setRowCount(long value) { - + @java.lang.Deprecated public Builder setRowCount(long value) { + rowCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * [Deprecated] The count of rows in `serialized_record_batch`.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See - * google/cloud/bigquery/storage/v1/arrow.proto;l=43 + * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. + * See google/cloud/bigquery/storage/v1/arrow.proto;l=43 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearRowCount() { + @java.lang.Deprecated public Builder clearRowCount() { bitField0_ = (bitField0_ & ~0x00000002); rowCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +540,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ArrowRecordBatch) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ArrowRecordBatch) private static final com.google.cloud.bigquery.storage.v1.ArrowRecordBatch DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ArrowRecordBatch(); } @@ -617,27 +554,27 @@ public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowRecordBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowRecordBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +589,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java similarity index 51% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java index 80dc0e4e98..6bd4f925c2 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java @@ -1,55 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto package com.google.cloud.bigquery.storage.v1; -public interface ArrowRecordBatchOrBuilder - extends +public interface ArrowRecordBatchOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowRecordBatch) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * IPC-serialized Arrow RecordBatch.
    * 
* * bytes serialized_record_batch = 1; - * * @return The serializedRecordBatch. */ com.google.protobuf.ByteString getSerializedRecordBatch(); /** - * - * *
    * [Deprecated] The count of rows in `serialized_record_batch`.
    * Please use the format-independent ReadRowsResponse.row_count instead.
    * 
* * int64 row_count = 2 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See - * google/cloud/bigquery/storage/v1/arrow.proto;l=43 + * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. + * See google/cloud/bigquery/storage/v1/arrow.proto;l=43 * @return The rowCount. */ - @java.lang.Deprecated - long getRowCount(); + @java.lang.Deprecated long getRowCount(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java index f571fa4dbe..0c103de4bf 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Arrow schema as specified in
  * https://arrow.apache.org/docs/python/api/datatypes.html
@@ -31,57 +14,52 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowSchema}
  */
-public final class ArrowSchema extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ArrowSchema extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ArrowSchema)
     ArrowSchemaOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ArrowSchema.newBuilder() to construct.
   private ArrowSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ArrowSchema() {
     serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ArrowSchema();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.ArrowProto
-        .internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.ArrowProto
-        .internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.ArrowSchema.class,
-            com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder.class);
+            com.google.cloud.bigquery.storage.v1.ArrowSchema.class, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder.class);
   }
 
   public static final int SERIALIZED_SCHEMA_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
   /**
-   *
-   *
    * 
    * IPC serialized Arrow schema.
    * 
* * bytes serialized_schema = 1; - * * @return The serializedSchema. */ @java.lang.Override @@ -90,7 +68,6 @@ public com.google.protobuf.ByteString getSerializedSchema() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,7 +79,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!serializedSchema_.isEmpty()) { output.writeBytes(1, serializedSchema_); } @@ -116,7 +94,8 @@ public int getSerializedSize() { size = 0; if (!serializedSchema_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedSchema_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serializedSchema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -126,15 +105,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ArrowSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ArrowSchema other = - (com.google.cloud.bigquery.storage.v1.ArrowSchema) obj; + com.google.cloud.bigquery.storage.v1.ArrowSchema other = (com.google.cloud.bigquery.storage.v1.ArrowSchema) obj; - if (!getSerializedSchema().equals(other.getSerializedSchema())) return false; + if (!getSerializedSchema() + .equals(other.getSerializedSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -153,104 +132,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ArrowSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Arrow schema as specified in
    * https://arrow.apache.org/docs/python/api/datatypes.html
@@ -261,32 +233,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowSchema}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ArrowSchema)
       com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.ArrowProto
-          .internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.ArrowProto
-          .internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.ArrowSchema.class,
-              com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder.class);
+              com.google.cloud.bigquery.storage.v1.ArrowSchema.class, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.ArrowSchema.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +269,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.ArrowProto
-          .internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
     }
 
     @java.lang.Override
@@ -317,11 +290,8 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchema build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.ArrowSchema buildPartial() {
-      com.google.cloud.bigquery.storage.v1.ArrowSchema result =
-          new com.google.cloud.bigquery.storage.v1.ArrowSchema(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.storage.v1.ArrowSchema result = new com.google.cloud.bigquery.storage.v1.ArrowSchema(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -337,39 +307,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ArrowSchema resu
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.ArrowSchema) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowSchema) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowSchema)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -377,8 +346,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ArrowSchema other) {
-      if (other == com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance()) return this;
       if (other.getSerializedSchema() != com.google.protobuf.ByteString.EMPTY) {
         setSerializedSchema(other.getSerializedSchema());
       }
@@ -408,19 +376,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                serializedSchema_ = input.readBytes();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              serializedSchema_ = input.readBytes();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -430,19 +396,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; - * * @return The serializedSchema. */ @java.lang.Override @@ -450,35 +412,27 @@ public com.google.protobuf.ByteString getSerializedSchema() { return serializedSchema_; } /** - * - * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; - * * @param value The serializedSchema to set. * @return This builder for chaining. */ public Builder setSerializedSchema(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } serializedSchema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; - * * @return This builder for chaining. */ public Builder clearSerializedSchema() { @@ -487,9 +441,9 @@ public Builder clearSerializedSchema() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -499,12 +453,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ArrowSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ArrowSchema) private static final com.google.cloud.bigquery.storage.v1.ArrowSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ArrowSchema(); } @@ -513,27 +467,27 @@ public static com.google.cloud.bigquery.storage.v1.ArrowSchema getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -548,4 +502,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ArrowSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java new file mode 100644 index 0000000000..5a10e618b2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/arrow.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface ArrowSchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowSchema) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * IPC serialized Arrow schema.
+   * 
+ * + * bytes serialized_schema = 1; + * @return The serializedSchema. + */ + com.google.protobuf.ByteString getSerializedSchema(); +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java similarity index 59% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java index fc83b90b07..ed913baac3 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java @@ -1,86 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Contains options specific to Arrow Serialization.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowSerializationOptions} */ -public final class ArrowSerializationOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ArrowSerializationOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) ArrowSerializationOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ArrowSerializationOptions.newBuilder() to construct. private ArrowSerializationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ArrowSerializationOptions() { bufferCompression_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ArrowSerializationOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.class, - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.class, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder.class); } /** - * - * *
    * Compression codec's supported by Arrow.
    * 
* - * Protobuf enum {@code - * google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec} + * Protobuf enum {@code google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec} */ - public enum CompressionCodec implements com.google.protobuf.ProtocolMessageEnum { + public enum CompressionCodec + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * If unspecified no compression will be used.
      * 
@@ -89,8 +66,6 @@ public enum CompressionCodec implements com.google.protobuf.ProtocolMessageEnum */ COMPRESSION_UNSPECIFIED(0), /** - * - * *
      * LZ4 Frame (https://github.com/lz4/lz4/blob/dev/doc/lz4_Frame_format.md)
      * 
@@ -99,8 +74,6 @@ public enum CompressionCodec implements com.google.protobuf.ProtocolMessageEnum */ LZ4_FRAME(1), /** - * - * *
      * Zstandard compression.
      * 
@@ -112,8 +85,6 @@ public enum CompressionCodec implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * If unspecified no compression will be used.
      * 
@@ -122,8 +93,6 @@ public enum CompressionCodec implements com.google.protobuf.ProtocolMessageEnum */ public static final int COMPRESSION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * LZ4 Frame (https://github.com/lz4/lz4/blob/dev/doc/lz4_Frame_format.md)
      * 
@@ -132,8 +101,6 @@ public enum CompressionCodec implements com.google.protobuf.ProtocolMessageEnum */ public static final int LZ4_FRAME_VALUE = 1; /** - * - * *
      * Zstandard compression.
      * 
@@ -142,6 +109,7 @@ public enum CompressionCodec implements com.google.protobuf.ProtocolMessageEnum */ public static final int ZSTD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -166,45 +134,40 @@ public static CompressionCodec valueOf(int value) { */ public static CompressionCodec forNumber(int value) { switch (value) { - case 0: - return COMPRESSION_UNSPECIFIED; - case 1: - return LZ4_FRAME; - case 2: - return ZSTD; - default: - return null; + case 0: return COMPRESSION_UNSPECIFIED; + case 1: return LZ4_FRAME; + case 2: return ZSTD; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + CompressionCodec> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompressionCodec findValueByNumber(int number) { + return CompressionCodec.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CompressionCodec findValueByNumber(int number) { - return CompressionCodec.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDescriptor().getEnumTypes().get(0); } private static final CompressionCodec[] VALUES = values(); @@ -212,7 +175,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static CompressionCodec valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -232,51 +196,32 @@ private CompressionCodec(int value) { public static final int BUFFER_COMPRESSION_FIELD_NUMBER = 2; private int bufferCompression_ = 0; /** - * - * *
    * The compression codec to use for Arrow buffers in serialized record
    * batches.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; * @return The enum numeric value on the wire for bufferCompression. */ - @java.lang.Override - public int getBufferCompressionValue() { + @java.lang.Override public int getBufferCompressionValue() { return bufferCompression_; } /** - * - * *
    * The compression codec to use for Arrow buffers in serialized record
    * batches.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; * @return The bufferCompression. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec - getBufferCompression() { - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec result = - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.forNumber( - bufferCompression_); - return result == null - ? com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec - .UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec getBufferCompression() { + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec result = com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.forNumber(bufferCompression_); + return result == null ? com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,11 +233,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (bufferCompression_ - != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec - .COMPRESSION_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (bufferCompression_ != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.COMPRESSION_UNSPECIFIED.getNumber()) { output.writeEnum(2, bufferCompression_); } getUnknownFields().writeTo(output); @@ -304,11 +247,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (bufferCompression_ - != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec - .COMPRESSION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, bufferCompression_); + if (bufferCompression_ != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.COMPRESSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, bufferCompression_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -318,13 +259,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions other = - (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) obj; + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions other = (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) obj; if (bufferCompression_ != other.bufferCompression_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -346,136 +286,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains options specific to Arrow Serialization.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowSerializationOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.class, - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.class, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -485,14 +418,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } @@ -507,17 +439,13 @@ public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions buildPartial() { - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions result = - new com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions result = new com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.bufferCompression_ = bufferCompression_; @@ -528,39 +456,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions)other); } else { super.mergeFrom(other); return this; @@ -568,9 +495,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions other) { - if (other - == com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance()) return this; if (other.bufferCompression_ != 0) { setBufferCompressionValue(other.getBufferCompressionValue()); } @@ -600,19 +525,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: - { - bufferCompression_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: { + bufferCompression_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -622,40 +545,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int bufferCompression_ = 0; /** - * - * *
      * The compression codec to use for Arrow buffers in serialized record
      * batches.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; * @return The enum numeric value on the wire for bufferCompression. */ - @java.lang.Override - public int getBufferCompressionValue() { + @java.lang.Override public int getBufferCompressionValue() { return bufferCompression_; } /** - * - * *
      * The compression codec to use for Arrow buffers in serialized record
      * batches.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; * @param value The enum numeric value on the wire for bufferCompression to set. * @return This builder for chaining. */ @@ -666,47 +577,30 @@ public Builder setBufferCompressionValue(int value) { return this; } /** - * - * *
      * The compression codec to use for Arrow buffers in serialized record
      * batches.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; * @return The bufferCompression. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec - getBufferCompression() { - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec result = - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.forNumber( - bufferCompression_); - return result == null - ? com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec - .UNRECOGNIZED - : result; + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec getBufferCompression() { + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec result = com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.forNumber(bufferCompression_); + return result == null ? com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.UNRECOGNIZED : result; } /** - * - * *
      * The compression codec to use for Arrow buffers in serialized record
      * batches.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; * @param value The bufferCompression to set. * @return This builder for chaining. */ - public Builder setBufferCompression( - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec value) { + public Builder setBufferCompression(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec value) { if (value == null) { throw new NullPointerException(); } @@ -716,17 +610,12 @@ public Builder setBufferCompression( return this; } /** - * - * *
      * The compression codec to use for Arrow buffers in serialized record
      * batches.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; * @return This builder for chaining. */ public Builder clearBufferCompression() { @@ -735,9 +624,9 @@ public Builder clearBufferCompression() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -747,43 +636,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - private static final com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions(); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowSerializationOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowSerializationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -795,8 +682,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java new file mode 100644 index 0000000000..902c0cf3a1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java @@ -0,0 +1,30 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/arrow.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface ArrowSerializationOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The compression codec to use for Arrow buffers in serialized record
+   * batches.
+   * 
+ * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * @return The enum numeric value on the wire for bufferCompression. + */ + int getBufferCompressionValue(); + /** + *
+   * The compression codec to use for Arrow buffers in serialized record
+   * batches.
+   * 
+ * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * @return The bufferCompression. + */ + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec getBufferCompression(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java new file mode 100644 index 0000000000..9d10e926dc --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java @@ -0,0 +1,78 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/avro.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class AvroProto { + private AvroProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/bigquery/storage/v1/avro." + + "proto\022 google.cloud.bigquery.storage.v1\"" + + "\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"A\n\010AvroRow" + + "s\022\036\n\026serialized_binary_rows\030\001 \001(\014\022\025\n\trow" + + "_count\030\002 \001(\003B\002\030\001\"A\n\030AvroSerializationOpt" + + "ions\022%\n\035enable_display_name_attribute\030\001 " + + "\001(\010B\271\001\n$com.google.cloud.bigquery.storag" + + "e.v1B\tAvroProtoP\001Z>cloud.google.com/go/b" + + "igquery/storage/apiv1/storagepb;storagep" + + "b\252\002 Google.Cloud.BigQuery.Storage.V1\312\002 G" + + "oogle\\Cloud\\BigQuery\\Storage\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor, + new java.lang.String[] { "Schema", }); + internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor, + new java.lang.String[] { "SerializedBinaryRows", "RowCount", }); + internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor, + new java.lang.String[] { "EnableDisplayNameAttribute", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java index e95d285764..948e4b383d 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java @@ -1,84 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Avro rows.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroRows} */ -public final class AvroRows extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AvroRows extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AvroRows) AvroRowsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AvroRows.newBuilder() to construct. private AvroRows(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AvroRows() { serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AvroRows(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroRows.class, - com.google.cloud.bigquery.storage.v1.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroRows.class, com.google.cloud.bigquery.storage.v1.AvroRows.Builder.class); } public static final int SERIALIZED_BINARY_ROWS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedBinaryRows_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Binary serialized rows in a block.
    * 
* * bytes serialized_binary_rows = 1; - * * @return The serializedBinaryRows. */ @java.lang.Override @@ -89,27 +66,22 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { public static final int ROW_COUNT_FIELD_NUMBER = 2; private long rowCount_ = 0L; /** - * - * *
    * [Deprecated] The count of rows in the returning block.
    * Please use the format-independent ReadRowsResponse.row_count instead.
    * 
* * int64 row_count = 2 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See - * google/cloud/bigquery/storage/v1/avro.proto;l=39 + * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. + * See google/cloud/bigquery/storage/v1/avro.proto;l=39 * @return The rowCount. */ @java.lang.Override - @java.lang.Deprecated - public long getRowCount() { + @java.lang.Deprecated public long getRowCount() { return rowCount_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,7 +93,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!serializedBinaryRows_.isEmpty()) { output.writeBytes(1, serializedBinaryRows_); } @@ -138,10 +111,12 @@ public int getSerializedSize() { size = 0; if (!serializedBinaryRows_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedBinaryRows_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serializedBinaryRows_); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, rowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -151,16 +126,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AvroRows)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.AvroRows other = - (com.google.cloud.bigquery.storage.v1.AvroRows) obj; + com.google.cloud.bigquery.storage.v1.AvroRows other = (com.google.cloud.bigquery.storage.v1.AvroRows) obj; - if (!getSerializedBinaryRows().equals(other.getSerializedBinaryRows())) return false; - if (getRowCount() != other.getRowCount()) return false; + if (!getSerializedBinaryRows() + .equals(other.getSerializedBinaryRows())) return false; + if (getRowCount() + != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -175,142 +151,137 @@ public int hashCode() { hash = (37 * hash) + SERIALIZED_BINARY_ROWS_FIELD_NUMBER; hash = (53 * hash) + getSerializedBinaryRows().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.AvroRows parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.AvroRows parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AvroRows prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Avro rows.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroRows} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AvroRows) com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroRows.class, - com.google.cloud.bigquery.storage.v1.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroRows.class, com.google.cloud.bigquery.storage.v1.AvroRows.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.AvroRows.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -321,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; } @java.lang.Override @@ -342,11 +313,8 @@ public com.google.cloud.bigquery.storage.v1.AvroRows build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroRows buildPartial() { - com.google.cloud.bigquery.storage.v1.AvroRows result = - new com.google.cloud.bigquery.storage.v1.AvroRows(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.AvroRows result = new com.google.cloud.bigquery.storage.v1.AvroRows(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -365,39 +333,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AvroRows result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.AvroRows) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroRows) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroRows)other); } else { super.mergeFrom(other); return this; @@ -438,25 +405,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - serializedBinaryRows_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + serializedBinaryRows_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,20 +430,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.ByteString serializedBinaryRows_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; - * * @return The serializedBinaryRows. */ @java.lang.Override @@ -487,35 +446,27 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { return serializedBinaryRows_; } /** - * - * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; - * * @param value The serializedBinaryRows to set. * @return This builder for chaining. */ public Builder setSerializedBinaryRows(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } serializedBinaryRows_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; - * * @return This builder for chaining. */ public Builder clearSerializedBinaryRows() { @@ -525,73 +476,61 @@ public Builder clearSerializedBinaryRows() { return this; } - private long rowCount_; + private long rowCount_ ; /** - * - * *
      * [Deprecated] The count of rows in the returning block.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See - * google/cloud/bigquery/storage/v1/avro.proto;l=39 + * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. + * See google/cloud/bigquery/storage/v1/avro.proto;l=39 * @return The rowCount. */ @java.lang.Override - @java.lang.Deprecated - public long getRowCount() { + @java.lang.Deprecated public long getRowCount() { return rowCount_; } /** - * - * *
      * [Deprecated] The count of rows in the returning block.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See - * google/cloud/bigquery/storage/v1/avro.proto;l=39 + * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. + * See google/cloud/bigquery/storage/v1/avro.proto;l=39 * @param value The rowCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setRowCount(long value) { - + @java.lang.Deprecated public Builder setRowCount(long value) { + rowCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * [Deprecated] The count of rows in the returning block.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See - * google/cloud/bigquery/storage/v1/avro.proto;l=39 + * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. + * See google/cloud/bigquery/storage/v1/avro.proto;l=39 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearRowCount() { + @java.lang.Deprecated public Builder clearRowCount() { bitField0_ = (bitField0_ & ~0x00000002); rowCount_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +540,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AvroRows) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AvroRows) private static final com.google.cloud.bigquery.storage.v1.AvroRows DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AvroRows(); } @@ -615,27 +554,27 @@ public static com.google.cloud.bigquery.storage.v1.AvroRows getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroRows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroRows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -650,4 +589,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.AvroRows getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java similarity index 51% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java index 2b686761cb..6b1dfa720c 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java @@ -1,55 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; -public interface AvroRowsOrBuilder - extends +public interface AvroRowsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AvroRows) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Binary serialized rows in a block.
    * 
* * bytes serialized_binary_rows = 1; - * * @return The serializedBinaryRows. */ com.google.protobuf.ByteString getSerializedBinaryRows(); /** - * - * *
    * [Deprecated] The count of rows in the returning block.
    * Please use the format-independent ReadRowsResponse.row_count instead.
    * 
* * int64 row_count = 2 [deprecated = true]; - * - * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See - * google/cloud/bigquery/storage/v1/avro.proto;l=39 + * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. + * See google/cloud/bigquery/storage/v1/avro.proto;l=39 * @return The rowCount. */ - @java.lang.Deprecated - long getRowCount(); + @java.lang.Deprecated long getRowCount(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java index 66c7ccbd57..c686df8161 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java @@ -1,86 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Avro schema.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroSchema} */ -public final class AvroSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AvroSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AvroSchema) AvroSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AvroSchema.newBuilder() to construct. private AvroSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AvroSchema() { schema_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AvroSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroSchema.class, - com.google.cloud.bigquery.storage.v1.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroSchema.class, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** - * - * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; - * * @return The schema. */ @java.lang.Override @@ -89,30 +66,30 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** - * - * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; - * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -121,7 +98,6 @@ public com.google.protobuf.ByteString getSchemaBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -157,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AvroSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.AvroSchema other = - (com.google.cloud.bigquery.storage.v1.AvroSchema) obj; + com.google.cloud.bigquery.storage.v1.AvroSchema other = (com.google.cloud.bigquery.storage.v1.AvroSchema) obj; - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,136 +161,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AvroSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Avro schema.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AvroSchema) com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroSchema.class, - com.google.cloud.bigquery.storage.v1.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroSchema.class, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.AvroSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; } @java.lang.Override @@ -344,11 +315,8 @@ public com.google.cloud.bigquery.storage.v1.AvroSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchema buildPartial() { - com.google.cloud.bigquery.storage.v1.AvroSchema result = - new com.google.cloud.bigquery.storage.v1.AvroSchema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.AvroSchema result = new com.google.cloud.bigquery.storage.v1.AvroSchema(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +332,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AvroSchema resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.AvroSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroSchema) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroSchema)other); } else { super.mergeFrom(other); return this; @@ -404,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AvroSchema other) { - if (other == com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -437,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,26 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object schema_ = ""; /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; - * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -487,22 +448,21 @@ public java.lang.String getSchema() { } } /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; - * * @return The bytes for schema. */ - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -510,37 +470,30 @@ public com.google.protobuf.ByteString getSchemaBytes() { } } /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; - * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; - * * @return This builder for chaining. */ public Builder clearSchema() { @@ -550,31 +503,27 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; - * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -584,12 +533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AvroSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AvroSchema) private static final com.google.cloud.bigquery.storage.v1.AvroSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AvroSchema(); } @@ -598,27 +547,27 @@ public static com.google.cloud.bigquery.storage.v1.AvroSchema getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.AvroSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java similarity index 50% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java index 2612720e29..b8b182d60c 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; -public interface AvroSchemaOrBuilder - extends +public interface AvroSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AvroSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; - * * @return The schema. */ java.lang.String getSchema(); /** - * - * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; - * * @return The bytes for schema. */ - com.google.protobuf.ByteString getSchemaBytes(); + com.google.protobuf.ByteString + getSchemaBytes(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java similarity index 66% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java index e3a2b26bae..0960e05acb 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java @@ -1,75 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Contains options specific to Avro Serialization.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroSerializationOptions} */ -public final class AvroSerializationOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AvroSerializationOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AvroSerializationOptions) AvroSerializationOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AvroSerializationOptions.newBuilder() to construct. private AvroSerializationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AvroSerializationOptions() {} + private AvroSerializationOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AvroSerializationOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.class, - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.class, com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder.class); } public static final int ENABLE_DISPLAY_NAME_ATTRIBUTE_FIELD_NUMBER = 1; private boolean enableDisplayNameAttribute_ = false; /** - * - * *
    * Enable displayName attribute in Avro schema.
    * The Avro specification requires field names to be alphanumeric.  By
@@ -82,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_display_name_attribute = 1; - * * @return The enableDisplayNameAttribute. */ @java.lang.Override @@ -91,7 +70,6 @@ public boolean getEnableDisplayNameAttribute() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,7 +81,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableDisplayNameAttribute_ != false) { output.writeBool(1, enableDisplayNameAttribute_); } @@ -117,7 +96,8 @@ public int getSerializedSize() { size = 0; if (enableDisplayNameAttribute_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableDisplayNameAttribute_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableDisplayNameAttribute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -127,15 +107,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AvroSerializationOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions other = - (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) obj; + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions other = (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) obj; - if (getEnableDisplayNameAttribute() != other.getEnableDisplayNameAttribute()) return false; + if (getEnableDisplayNameAttribute() + != other.getEnableDisplayNameAttribute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -148,143 +128,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_DISPLAY_NAME_ATTRIBUTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDisplayNameAttribute()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableDisplayNameAttribute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AvroSerializationOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains options specific to Avro Serialization.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroSerializationOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AvroSerializationOptions) com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.class, - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.class, com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -294,14 +268,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } @@ -316,17 +289,13 @@ public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions buildPartial() { - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions result = - new com.google.cloud.bigquery.storage.v1.AvroSerializationOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions result = new com.google.cloud.bigquery.storage.v1.AvroSerializationOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.AvroSerializationOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableDisplayNameAttribute_ = enableDisplayNameAttribute_; @@ -337,39 +306,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroSerializationOptions)other); } else { super.mergeFrom(other); return this; @@ -377,9 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AvroSerializationOptions other) { - if (other - == com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance()) return this; if (other.getEnableDisplayNameAttribute() != false) { setEnableDisplayNameAttribute(other.getEnableDisplayNameAttribute()); } @@ -409,19 +375,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - enableDisplayNameAttribute_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + enableDisplayNameAttribute_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -431,13 +395,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private boolean enableDisplayNameAttribute_; + private boolean enableDisplayNameAttribute_ ; /** - * - * *
      * Enable displayName attribute in Avro schema.
      * The Avro specification requires field names to be alphanumeric.  By
@@ -450,7 +411,6 @@ public Builder mergeFrom(
      * 
* * bool enable_display_name_attribute = 1; - * * @return The enableDisplayNameAttribute. */ @java.lang.Override @@ -458,8 +418,6 @@ public boolean getEnableDisplayNameAttribute() { return enableDisplayNameAttribute_; } /** - * - * *
      * Enable displayName attribute in Avro schema.
      * The Avro specification requires field names to be alphanumeric.  By
@@ -472,20 +430,17 @@ public boolean getEnableDisplayNameAttribute() {
      * 
* * bool enable_display_name_attribute = 1; - * * @param value The enableDisplayNameAttribute to set. * @return This builder for chaining. */ public Builder setEnableDisplayNameAttribute(boolean value) { - + enableDisplayNameAttribute_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Enable displayName attribute in Avro schema.
      * The Avro specification requires field names to be alphanumeric.  By
@@ -498,7 +453,6 @@ public Builder setEnableDisplayNameAttribute(boolean value) {
      * 
* * bool enable_display_name_attribute = 1; - * * @return This builder for chaining. */ public Builder clearEnableDisplayNameAttribute() { @@ -507,9 +461,9 @@ public Builder clearEnableDisplayNameAttribute() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -519,13 +473,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AvroSerializationOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AvroSerializationOptions) - private static final com.google.cloud.bigquery.storage.v1.AvroSerializationOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1.AvroSerializationOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AvroSerializationOptions(); } @@ -534,27 +487,27 @@ public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroSerializationOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroSerializationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -569,4 +522,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java similarity index 60% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java index da8a79a2da..4598477432 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; -public interface AvroSerializationOptionsOrBuilder - extends +public interface AvroSerializationOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AvroSerializationOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Enable displayName attribute in Avro schema.
    * The Avro specification requires field names to be alphanumeric.  By
@@ -38,7 +20,6 @@ public interface AvroSerializationOptionsOrBuilder
    * 
* * bool enable_display_name_attribute = 1; - * * @return The enableDisplayNameAttribute. */ boolean getEnableDisplayNameAttribute(); diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java similarity index 64% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java index b8b7cbb5bb..7bb78525b9 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Request message for `BatchCommitWriteStreams`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest} */ -public final class BatchCommitWriteStreamsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchCommitWriteStreamsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) BatchCommitWriteStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchCommitWriteStreamsRequest.newBuilder() to construct. - private BatchCommitWriteStreamsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCommitWriteStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchCommitWriteStreamsRequest() { parent_ = ""; writeStreams_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,46 +26,39 @@ private BatchCommitWriteStreamsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchCommitWriteStreamsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent table that all the streams should belong to, in the form
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,32 +67,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent table that all the streams should belong to, in the form
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -127,46 +99,37 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WRITE_STREAMS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList writeStreams_; /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the writeStreams. */ - public com.google.protobuf.ProtocolStringList getWriteStreamsList() { + public com.google.protobuf.ProtocolStringList + getWriteStreamsList() { return writeStreams_; } /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of writeStreams. */ public int getWriteStreamsCount() { return writeStreams_.size(); } /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The writeStreams at the given index. */ @@ -174,23 +137,20 @@ public java.lang.String getWriteStreams(int index) { return writeStreams_.get(index); } /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - public com.google.protobuf.ByteString getWriteStreamsBytes(int index) { + public com.google.protobuf.ByteString + getWriteStreamsBytes(int index) { return writeStreams_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +162,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -237,16 +198,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest other = - (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) obj; + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest other = (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWriteStreamsList().equals(other.getWriteStreamsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWriteStreamsList() + .equals(other.getWriteStreamsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -270,138 +232,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `BatchCommitWriteStreams`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -413,16 +366,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.getDefaultInstance(); } @java.lang.Override @@ -436,18 +387,14 @@ public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest build @java.lang.Override public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result = - new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest(this); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result = new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result) { if (((bitField0_ & 0x00000002) != 0)) { writeStreams_ = writeStreams_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); @@ -455,8 +402,7 @@ private void buildPartialRepeatedFields( result.writeStreams_ = writeStreams_; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -467,51 +413,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest other) { + if (other == com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -553,26 +494,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureWriteStreamsIsMutable(); - writeStreams_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureWriteStreamsIsMutable(); + writeStreams_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,28 +520,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent table that all the streams should belong to, in the form
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -612,24 +545,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent table that all the streams should belong to, in the form
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -637,41 +567,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent table that all the streams should belong to, in the form
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent table that all the streams should belong to, in the form
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -681,24 +600,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent table that all the streams should belong to, in the form
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -706,52 +619,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList writeStreams_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList writeStreams_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureWriteStreamsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { writeStreams_ = new com.google.protobuf.LazyStringArrayList(writeStreams_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the writeStreams. */ - public com.google.protobuf.ProtocolStringList getWriteStreamsList() { + public com.google.protobuf.ProtocolStringList + getWriteStreamsList() { return writeStreams_.getUnmodifiableView(); } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of writeStreams. */ public int getWriteStreamsCount() { return writeStreams_.size(); } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The writeStreams at the given index. */ @@ -759,90 +662,76 @@ public java.lang.String getWriteStreams(int index) { return writeStreams_.get(index); } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - public com.google.protobuf.ByteString getWriteStreamsBytes(int index) { + public com.google.protobuf.ByteString + getWriteStreamsBytes(int index) { return writeStreams_.getByteString(index); } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The writeStreams to set. * @return This builder for chaining. */ - public Builder setWriteStreams(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStreams( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureWriteStreamsIsMutable(); writeStreams_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The writeStreams to add. * @return This builder for chaining. */ - public Builder addWriteStreams(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addWriteStreams( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureWriteStreamsIsMutable(); writeStreams_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The writeStreams to add. * @return This builder for chaining. */ - public Builder addAllWriteStreams(java.lang.Iterable values) { + public Builder addAllWriteStreams( + java.lang.Iterable values) { ensureWriteStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, writeStreams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, writeStreams_); onChanged(); return this; } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWriteStreams() { @@ -852,30 +741,26 @@ public Builder clearWriteStreams() { return this; } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the writeStreams to add. * @return This builder for chaining. */ - public Builder addWriteStreamsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addWriteStreamsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureWriteStreamsIsMutable(); writeStreams_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -885,43 +770,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) - private static final com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest(); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCommitWriteStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCommitWriteStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -933,8 +816,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java index 101831d8ab..cb637c7188 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java @@ -1,107 +1,72 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface BatchCommitWriteStreamsRequestOrBuilder - extends +public interface BatchCommitWriteStreamsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent table that all the streams should belong to, in the form
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Parent table that all the streams should belong to, in the form
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the writeStreams. */ - java.util.List getWriteStreamsList(); + java.util.List + getWriteStreamsList(); /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of writeStreams. */ int getWriteStreamsCount(); /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The writeStreams at the given index. */ java.lang.String getWriteStreams(int index); /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - com.google.protobuf.ByteString getWriteStreamsBytes(int index); + com.google.protobuf.ByteString + getWriteStreamsBytes(int index); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java similarity index 74% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java index e84d1c14cd..341cd527a2 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java @@ -1,78 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Response message for `BatchCommitWriteStreams`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse} */ -public final class BatchCommitWriteStreamsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchCommitWriteStreamsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) BatchCommitWriteStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchCommitWriteStreamsResponse.newBuilder() to construct. - private BatchCommitWriteStreamsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCommitWriteStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchCommitWriteStreamsResponse() { streamErrors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchCommitWriteStreamsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.Builder.class); } public static final int COMMIT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp commitTime_; /** - * - * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -80,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return Whether the commitTime field is set. */ @java.lang.Override @@ -88,8 +65,6 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** - * - * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -97,7 +72,6 @@ public boolean hasCommitTime() {
    * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return The commitTime. */ @java.lang.Override @@ -105,8 +79,6 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** - * - * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -121,12 +93,9 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
   }
 
   public static final int STREAM_ERRORS_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private java.util.List streamErrors_;
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -142,8 +111,6 @@ public java.util.List getStre
     return streamErrors_;
   }
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -155,13 +122,11 @@ public java.util.List getStre
    * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getStreamErrorsOrBuilderList() {
     return streamErrors_;
   }
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -177,8 +142,6 @@ public int getStreamErrorsCount() {
     return streamErrors_.size();
   }
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -194,8 +157,6 @@ public com.google.cloud.bigquery.storage.v1.StorageError getStreamErrors(int ind
     return streamErrors_.get(index);
   }
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -213,7 +174,6 @@ public com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamError
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -225,7 +185,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (commitTime_ != null) {
       output.writeMessage(1, getCommitTime());
     }
@@ -242,10 +203,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (commitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCommitTime());
     }
     for (int i = 0; i < streamErrors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, streamErrors_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, streamErrors_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -255,19 +218,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse other =
-        (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) obj;
+    com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse other = (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) obj;
 
     if (hasCommitTime() != other.hasCommitTime()) return false;
     if (hasCommitTime()) {
-      if (!getCommitTime().equals(other.getCommitTime())) return false;
+      if (!getCommitTime()
+          .equals(other.getCommitTime())) return false;
     }
-    if (!getStreamErrorsList().equals(other.getStreamErrorsList())) return false;
+    if (!getStreamErrorsList()
+        .equals(other.getStreamErrorsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -293,138 +257,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response message for `BatchCommitWriteStreams`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -445,16 +400,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.getDefaultInstance(); } @java.lang.Override @@ -468,18 +421,14 @@ public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse buil @java.lang.Override public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result = - new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse(this); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result = new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result) { if (streamErrorsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { streamErrors_ = java.util.Collections.unmodifiableList(streamErrors_); @@ -491,11 +440,12 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); + result.commitTime_ = commitTimeBuilder_ == null + ? commitTime_ + : commitTimeBuilder_.build(); } } @@ -503,51 +453,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse other) { - if (other - == com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse other) { + if (other == com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.getDefaultInstance()) return this; if (other.hasCommitTime()) { mergeCommitTime(other.getCommitTime()); } @@ -569,10 +514,9 @@ public Builder mergeFrom( streamErrorsBuilder_ = null; streamErrors_ = other.streamErrors_; bitField0_ = (bitField0_ & ~0x00000002); - streamErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStreamErrorsFieldBuilder() - : null; + streamErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamErrorsFieldBuilder() : null; } else { streamErrorsBuilder_.addAllMessages(other.streamErrors_); } @@ -604,33 +548,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.bigquery.storage.v1.StorageError m = - input.readMessage( - com.google.cloud.bigquery.storage.v1.StorageError.parser(), - extensionRegistry); - if (streamErrorsBuilder_ == null) { - ensureStreamErrorsIsMutable(); - streamErrors_.add(m); - } else { - streamErrorsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCommitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.bigquery.storage.v1.StorageError m = + input.readMessage( + com.google.cloud.bigquery.storage.v1.StorageError.parser(), + extensionRegistry); + if (streamErrorsBuilder_ == null) { + ensureStreamErrorsIsMutable(); + streamErrors_.add(m); + } else { + streamErrorsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -640,18 +583,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - commitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; /** - * - * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -659,15 +596,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -675,21 +609,16 @@ public boolean hasCommitTime() {
      * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -712,8 +641,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -722,7 +649,8 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp commit_time = 1;
      */
-    public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setCommitTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (commitTimeBuilder_ == null) {
         commitTime_ = builderForValue.build();
       } else {
@@ -733,8 +661,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -745,9 +671,9 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
       if (commitTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && commitTime_ != null
-            && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          commitTime_ != null &&
+          commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getCommitTimeBuilder().mergeFrom(value);
         } else {
           commitTime_ = value;
@@ -760,8 +686,6 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -781,8 +705,6 @@ public Builder clearCommitTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -797,8 +719,6 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() {
       return getCommitTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -811,14 +731,11 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
       if (commitTimeBuilder_ != null) {
         return commitTimeBuilder_.getMessageOrBuilder();
       } else {
-        return commitTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : commitTime_;
+        return commitTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -828,43 +745,32 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * .google.protobuf.Timestamp commit_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getCommitTimeFieldBuilder() {
       if (commitTimeBuilder_ == null) {
-        commitTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getCommitTime(), getParentForChildren(), isClean());
+        commitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getCommitTime(),
+                getParentForChildren(),
+                isClean());
         commitTime_ = null;
       }
       return commitTimeBuilder_;
     }
 
     private java.util.List streamErrors_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureStreamErrorsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        streamErrors_ =
-            new java.util.ArrayList(
-                streamErrors_);
+        streamErrors_ = new java.util.ArrayList(streamErrors_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.StorageError,
-            com.google.cloud.bigquery.storage.v1.StorageError.Builder,
-            com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder>
-        streamErrorsBuilder_;
+        com.google.cloud.bigquery.storage.v1.StorageError, com.google.cloud.bigquery.storage.v1.StorageError.Builder, com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder> streamErrorsBuilder_;
 
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -883,8 +789,6 @@ public java.util.List getStre
       }
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -903,8 +807,6 @@ public int getStreamErrorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -923,8 +825,6 @@ public com.google.cloud.bigquery.storage.v1.StorageError getStreamErrors(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -950,8 +850,6 @@ public Builder setStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -974,8 +872,6 @@ public Builder setStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1000,8 +896,6 @@ public Builder addStreamErrors(com.google.cloud.bigquery.storage.v1.StorageError
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1027,8 +921,6 @@ public Builder addStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1051,8 +943,6 @@ public Builder addStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1075,8 +965,6 @@ public Builder addStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1091,7 +979,8 @@ public Builder addAllStreamErrors(
         java.lang.Iterable values) {
       if (streamErrorsBuilder_ == null) {
         ensureStreamErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streamErrors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, streamErrors_);
         onChanged();
       } else {
         streamErrorsBuilder_.addAllMessages(values);
@@ -1099,8 +988,6 @@ public Builder addAllStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1122,8 +1009,6 @@ public Builder clearStreamErrors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1145,8 +1030,6 @@ public Builder removeStreamErrors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1162,8 +1045,6 @@ public com.google.cloud.bigquery.storage.v1.StorageError.Builder getStreamErrors
       return getStreamErrorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1177,14 +1058,11 @@ public com.google.cloud.bigquery.storage.v1.StorageError.Builder getStreamErrors
     public com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamErrorsOrBuilder(
         int index) {
       if (streamErrorsBuilder_ == null) {
-        return streamErrors_.get(index);
-      } else {
+        return streamErrors_.get(index);  } else {
         return streamErrorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1195,8 +1073,8 @@ public com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamError
      *
      * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
      */
-    public java.util.List
-        getStreamErrorsOrBuilderList() {
+    public java.util.List 
+         getStreamErrorsOrBuilderList() {
       if (streamErrorsBuilder_ != null) {
         return streamErrorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1204,8 +1082,6 @@ public com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamError
       }
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1217,12 +1093,10 @@ public com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamError
      * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
      */
     public com.google.cloud.bigquery.storage.v1.StorageError.Builder addStreamErrorsBuilder() {
-      return getStreamErrorsFieldBuilder()
-          .addBuilder(com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance());
+      return getStreamErrorsFieldBuilder().addBuilder(
+          com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1235,13 +1109,10 @@ public com.google.cloud.bigquery.storage.v1.StorageError.Builder addStreamErrors
      */
     public com.google.cloud.bigquery.storage.v1.StorageError.Builder addStreamErrorsBuilder(
         int index) {
-      return getStreamErrorsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance());
+      return getStreamErrorsFieldBuilder().addBuilder(
+          index, com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1252,30 +1123,27 @@ public com.google.cloud.bigquery.storage.v1.StorageError.Builder addStreamErrors
      *
      * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
      */
-    public java.util.List
-        getStreamErrorsBuilderList() {
+    public java.util.List 
+         getStreamErrorsBuilderList() {
       return getStreamErrorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.StorageError,
-            com.google.cloud.bigquery.storage.v1.StorageError.Builder,
-            com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder>
+        com.google.cloud.bigquery.storage.v1.StorageError, com.google.cloud.bigquery.storage.v1.StorageError.Builder, com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder> 
         getStreamErrorsFieldBuilder() {
       if (streamErrorsBuilder_ == null) {
-        streamErrorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1.StorageError,
-                com.google.cloud.bigquery.storage.v1.StorageError.Builder,
-                com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder>(
-                streamErrors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        streamErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1.StorageError, com.google.cloud.bigquery.storage.v1.StorageError.Builder, com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder>(
+                streamErrors_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         streamErrors_ = null;
       }
       return streamErrorsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1285,43 +1153,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)
-  private static final com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse();
   }
 
-  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse
-      getDefaultInstance() {
+  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchCommitWriteStreamsResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchCommitWriteStreamsResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1333,8 +1199,9 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java
similarity index 82%
rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java
index ecb2e46fc8..0d818a5b0f 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
-public interface BatchCommitWriteStreamsResponseOrBuilder
-    extends
+public interface BatchCommitWriteStreamsResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -33,13 +15,10 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** - * - * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -47,13 +26,10 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** - * - * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -65,8 +41,6 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
   com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -77,10 +51,9 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    *
    * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
    */
-  java.util.List getStreamErrorsList();
+  java.util.List 
+      getStreamErrorsList();
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -93,8 +66,6 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    */
   com.google.cloud.bigquery.storage.v1.StorageError getStreamErrors(int index);
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -107,8 +78,6 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    */
   int getStreamErrorsCount();
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -119,11 +88,9 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    *
    * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
    */
-  java.util.List
+  java.util.List 
       getStreamErrorsOrBuilderList();
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -134,5 +101,6 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    *
    * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
    */
-  com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamErrorsOrBuilder(int index);
+  com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamErrorsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java
similarity index 65%
rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java
index dc95ce68cd..910ba2bf8d 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java
@@ -1,88 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
 /**
- *
- *
  * 
  * Request message for `CreateReadSession`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.CreateReadSessionRequest} */ -public final class CreateReadSessionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateReadSessionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.CreateReadSessionRequest) CreateReadSessionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateReadSessionRequest.newBuilder() to construct. private CreateReadSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateReadSessionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateReadSessionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.class, - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -127,16 +100,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int READ_SESSION_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1.ReadSession readSession_; /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the readSession field is set. */ @java.lang.Override @@ -144,47 +112,32 @@ public boolean hasReadSession() { return readSession_ != null; } /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The readSession. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession getReadSession() { - return readSession_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() - : readSession_; + return readSession_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() : readSession_; } /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder getReadSessionOrBuilder() { - return readSession_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() - : readSession_; + return readSession_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() : readSession_; } public static final int MAX_STREAM_COUNT_FIELD_NUMBER = 3; private int maxStreamCount_ = 0; /** - * - * *
    * Max initial number of streams. If unset or zero, the server will
    * provide a value of streams so as to produce reasonable throughput. Must be
@@ -198,7 +151,6 @@ public com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder getReadSessionO
    * 
* * int32 max_stream_count = 3; - * * @return The maxStreamCount. */ @java.lang.Override @@ -209,8 +161,6 @@ public int getMaxStreamCount() { public static final int PREFERRED_MIN_STREAM_COUNT_FIELD_NUMBER = 4; private int preferredMinStreamCount_ = 0; /** - * - * *
    * The minimum preferred stream count. This parameter can be used to inform
    * the service that there is a desired lower bound on the number of streams.
@@ -222,7 +172,6 @@ public int getMaxStreamCount() {
    * 
* * int32 preferred_min_stream_count = 4; - * * @return The preferredMinStreamCount. */ @java.lang.Override @@ -231,7 +180,6 @@ public int getPreferredMinStreamCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,13 +218,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readSession_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadSession()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadSession()); } if (maxStreamCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxStreamCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxStreamCount_); } if (preferredMinStreamCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, preferredMinStreamCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, preferredMinStreamCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -285,21 +237,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest other = - (com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) obj; + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest other = (com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReadSession() != other.hasReadSession()) return false; if (hasReadSession()) { - if (!getReadSession().equals(other.getReadSession())) return false; + if (!getReadSession() + .equals(other.getReadSession())) return false; } - if (getMaxStreamCount() != other.getMaxStreamCount()) return false; - if (getPreferredMinStreamCount() != other.getPreferredMinStreamCount()) return false; + if (getMaxStreamCount() + != other.getMaxStreamCount()) return false; + if (getPreferredMinStreamCount() + != other.getPreferredMinStreamCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,136 +282,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `CreateReadSession`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.CreateReadSessionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.CreateReadSessionRequest) com.google.cloud.bigquery.storage.v1.CreateReadSessionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.class, - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -473,14 +421,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.getDefaultInstance(); } @@ -495,24 +442,21 @@ public com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest result = - new com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest result = new com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readSession_ = - readSessionBuilder_ == null ? readSession_ : readSessionBuilder_.build(); + result.readSession_ = readSessionBuilder_ == null + ? readSession_ + : readSessionBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxStreamCount_ = maxStreamCount_; @@ -526,39 +470,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest)other); } else { super.mergeFrom(other); return this; @@ -566,9 +509,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -609,37 +550,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getReadSessionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - maxStreamCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - preferredMinStreamCount_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getReadSessionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + maxStreamCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + preferredMinStreamCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -649,28 +587,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -679,24 +612,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -704,41 +634,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -748,24 +667,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -775,58 +688,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.storage.v1.ReadSession readSession_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession, - com.google.cloud.bigquery.storage.v1.ReadSession.Builder, - com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder> - readSessionBuilder_; + com.google.cloud.bigquery.storage.v1.ReadSession, com.google.cloud.bigquery.storage.v1.ReadSession.Builder, com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder> readSessionBuilder_; /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the readSession field is set. */ public boolean hasReadSession() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The readSession. */ public com.google.cloud.bigquery.storage.v1.ReadSession getReadSession() { if (readSessionBuilder_ == null) { - return readSession_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() - : readSession_; + return readSession_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() : readSession_; } else { return readSessionBuilder_.getMessage(); } } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReadSession(com.google.cloud.bigquery.storage.v1.ReadSession value) { if (readSessionBuilder_ == null) { @@ -842,15 +736,11 @@ public Builder setReadSession(com.google.cloud.bigquery.storage.v1.ReadSession v return this; } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReadSession( com.google.cloud.bigquery.storage.v1.ReadSession.Builder builderForValue) { @@ -864,22 +754,17 @@ public Builder setReadSession( return this; } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeReadSession(com.google.cloud.bigquery.storage.v1.ReadSession value) { if (readSessionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && readSession_ != null - && readSession_ - != com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + readSession_ != null && + readSession_ != com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance()) { getReadSessionBuilder().mergeFrom(value); } else { readSession_ = value; @@ -892,15 +777,11 @@ public Builder mergeReadSession(com.google.cloud.bigquery.storage.v1.ReadSession return this; } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReadSession() { bitField0_ = (bitField0_ & ~0x00000002); @@ -913,15 +794,11 @@ public Builder clearReadSession() { return this; } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.storage.v1.ReadSession.Builder getReadSessionBuilder() { bitField0_ |= 0x00000002; @@ -929,57 +806,43 @@ public com.google.cloud.bigquery.storage.v1.ReadSession.Builder getReadSessionBu return getReadSessionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder getReadSessionOrBuilder() { if (readSessionBuilder_ != null) { return readSessionBuilder_.getMessageOrBuilder(); } else { - return readSession_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() - : readSession_; + return readSession_ == null ? + com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() : readSession_; } } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession, - com.google.cloud.bigquery.storage.v1.ReadSession.Builder, - com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder> + com.google.cloud.bigquery.storage.v1.ReadSession, com.google.cloud.bigquery.storage.v1.ReadSession.Builder, com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder> getReadSessionFieldBuilder() { if (readSessionBuilder_ == null) { - readSessionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession, - com.google.cloud.bigquery.storage.v1.ReadSession.Builder, - com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder>( - getReadSession(), getParentForChildren(), isClean()); + readSessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ReadSession, com.google.cloud.bigquery.storage.v1.ReadSession.Builder, com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder>( + getReadSession(), + getParentForChildren(), + isClean()); readSession_ = null; } return readSessionBuilder_; } - private int maxStreamCount_; + private int maxStreamCount_ ; /** - * - * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -993,7 +856,6 @@ public com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder getReadSessionO
      * 
* * int32 max_stream_count = 3; - * * @return The maxStreamCount. */ @java.lang.Override @@ -1001,8 +863,6 @@ public int getMaxStreamCount() { return maxStreamCount_; } /** - * - * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -1016,20 +876,17 @@ public int getMaxStreamCount() {
      * 
* * int32 max_stream_count = 3; - * * @param value The maxStreamCount to set. * @return This builder for chaining. */ public Builder setMaxStreamCount(int value) { - + maxStreamCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -1043,7 +900,6 @@ public Builder setMaxStreamCount(int value) {
      * 
* * int32 max_stream_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxStreamCount() { @@ -1053,10 +909,8 @@ public Builder clearMaxStreamCount() { return this; } - private int preferredMinStreamCount_; + private int preferredMinStreamCount_ ; /** - * - * *
      * The minimum preferred stream count. This parameter can be used to inform
      * the service that there is a desired lower bound on the number of streams.
@@ -1068,7 +922,6 @@ public Builder clearMaxStreamCount() {
      * 
* * int32 preferred_min_stream_count = 4; - * * @return The preferredMinStreamCount. */ @java.lang.Override @@ -1076,8 +929,6 @@ public int getPreferredMinStreamCount() { return preferredMinStreamCount_; } /** - * - * *
      * The minimum preferred stream count. This parameter can be used to inform
      * the service that there is a desired lower bound on the number of streams.
@@ -1089,20 +940,17 @@ public int getPreferredMinStreamCount() {
      * 
* * int32 preferred_min_stream_count = 4; - * * @param value The preferredMinStreamCount to set. * @return This builder for chaining. */ public Builder setPreferredMinStreamCount(int value) { - + preferredMinStreamCount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * The minimum preferred stream count. This parameter can be used to inform
      * the service that there is a desired lower bound on the number of streams.
@@ -1114,7 +962,6 @@ public Builder setPreferredMinStreamCount(int value) {
      * 
* * int32 preferred_min_stream_count = 4; - * * @return This builder for chaining. */ public Builder clearPreferredMinStreamCount() { @@ -1123,9 +970,9 @@ public Builder clearPreferredMinStreamCount() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1135,13 +982,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.CreateReadSessionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.CreateReadSessionRequest) - private static final com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest(); } @@ -1150,27 +996,27 @@ public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReadSessionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReadSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java index a878ce7c8f..547929425d 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface CreateReadSessionRequestOrBuilder - extends +public interface CreateReadSessionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.CreateReadSessionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the readSession field is set. */ boolean hasReadSession(); /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The readSession. */ com.google.cloud.bigquery.storage.v1.ReadSession getReadSession(); /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder getReadSessionOrBuilder(); /** - * - * *
    * Max initial number of streams. If unset or zero, the server will
    * provide a value of streams so as to produce reasonable throughput. Must be
@@ -111,14 +70,11 @@ public interface CreateReadSessionRequestOrBuilder
    * 
* * int32 max_stream_count = 3; - * * @return The maxStreamCount. */ int getMaxStreamCount(); /** - * - * *
    * The minimum preferred stream count. This parameter can be used to inform
    * the service that there is a desired lower bound on the number of streams.
@@ -130,7 +86,6 @@ public interface CreateReadSessionRequestOrBuilder
    * 
* * int32 preferred_min_stream_count = 4; - * * @return The preferredMinStreamCount. */ int getPreferredMinStreamCount(); diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java similarity index 59% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java index e5729811d1..cb3bcd3081 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Request message for `CreateWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.CreateWriteStreamRequest} */ -public final class CreateWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWriteStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) CreateWriteStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWriteStreamRequest.newBuilder() to construct. private CreateWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWriteStreamRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Reference to the table to which the stream belongs, in the format
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Reference to the table to which the stream belongs, in the format
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -127,16 +100,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int WRITE_STREAM_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1.WriteStream writeStream_; /** - * - * *
    * Required. Stream to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the writeStream field is set. */ @java.lang.Override @@ -144,44 +112,30 @@ public boolean hasWriteStream() { return writeStream_ != null; } /** - * - * *
    * Required. Stream to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The writeStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream() { - return writeStream_ == null - ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() - : writeStream_; + return writeStream_ == null ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() : writeStream_; } /** - * - * *
    * Required. Stream to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder getWriteStreamOrBuilder() { - return writeStream_ == null - ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() - : writeStream_; + return writeStream_ == null ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() : writeStream_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +147,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -213,7 +168,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (writeStream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWriteStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWriteStream()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,18 +179,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest other = - (com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasWriteStream() != other.hasWriteStream()) return false; if (hasWriteStream()) { - if (!getWriteStream().equals(other.getWriteStream())) return false; + if (!getWriteStream() + .equals(other.getWriteStream())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -259,136 +216,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `CreateWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.CreateWriteStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -403,14 +353,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.getDefaultInstance(); } @@ -425,24 +374,21 @@ public com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest result = - new com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.writeStream_ = - writeStreamBuilder_ == null ? writeStream_ : writeStreamBuilder_.build(); + result.writeStream_ = writeStreamBuilder_ == null + ? writeStream_ + : writeStreamBuilder_.build(); } } @@ -450,39 +396,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -490,9 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -527,25 +470,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getWriteStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getWriteStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,28 +497,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -585,24 +522,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -610,41 +544,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -654,24 +577,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -681,58 +598,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.storage.v1.WriteStream writeStream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.WriteStream, - com.google.cloud.bigquery.storage.v1.WriteStream.Builder, - com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder> - writeStreamBuilder_; + com.google.cloud.bigquery.storage.v1.WriteStream, com.google.cloud.bigquery.storage.v1.WriteStream.Builder, com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder> writeStreamBuilder_; /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the writeStream field is set. */ public boolean hasWriteStream() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The writeStream. */ public com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream() { if (writeStreamBuilder_ == null) { - return writeStream_ == null - ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() - : writeStream_; + return writeStream_ == null ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() : writeStream_; } else { return writeStreamBuilder_.getMessage(); } } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWriteStream(com.google.cloud.bigquery.storage.v1.WriteStream value) { if (writeStreamBuilder_ == null) { @@ -748,15 +646,11 @@ public Builder setWriteStream(com.google.cloud.bigquery.storage.v1.WriteStream v return this; } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWriteStream( com.google.cloud.bigquery.storage.v1.WriteStream.Builder builderForValue) { @@ -770,22 +664,17 @@ public Builder setWriteStream( return this; } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWriteStream(com.google.cloud.bigquery.storage.v1.WriteStream value) { if (writeStreamBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && writeStream_ != null - && writeStream_ - != com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + writeStream_ != null && + writeStream_ != com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance()) { getWriteStreamBuilder().mergeFrom(value); } else { writeStream_ = value; @@ -798,15 +687,11 @@ public Builder mergeWriteStream(com.google.cloud.bigquery.storage.v1.WriteStream return this; } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWriteStream() { bitField0_ = (bitField0_ & ~0x00000002); @@ -819,15 +704,11 @@ public Builder clearWriteStream() { return this; } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.storage.v1.WriteStream.Builder getWriteStreamBuilder() { bitField0_ |= 0x00000002; @@ -835,55 +716,43 @@ public com.google.cloud.bigquery.storage.v1.WriteStream.Builder getWriteStreamBu return getWriteStreamFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder getWriteStreamOrBuilder() { if (writeStreamBuilder_ != null) { return writeStreamBuilder_.getMessageOrBuilder(); } else { - return writeStream_ == null - ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() - : writeStream_; + return writeStream_ == null ? + com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() : writeStream_; } } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.WriteStream, - com.google.cloud.bigquery.storage.v1.WriteStream.Builder, - com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder> + com.google.cloud.bigquery.storage.v1.WriteStream, com.google.cloud.bigquery.storage.v1.WriteStream.Builder, com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder> getWriteStreamFieldBuilder() { if (writeStreamBuilder_ == null) { - writeStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.WriteStream, - com.google.cloud.bigquery.storage.v1.WriteStream.Builder, - com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder>( - getWriteStream(), getParentForChildren(), isClean()); + writeStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.WriteStream, com.google.cloud.bigquery.storage.v1.WriteStream.Builder, com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder>( + getWriteStream(), + getParentForChildren(), + isClean()); writeStream_ = null; } return writeStreamBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -893,13 +762,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) - private static final com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest(); } @@ -908,27 +776,27 @@ public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,4 +811,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java new file mode 100644 index 0000000000..dc9030be18 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface CreateWriteStreamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Reference to the table to which the stream belongs, in the format
+   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Reference to the table to which the stream belongs, in the format
+   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Stream to be created.
+   * 
+ * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the writeStream field is set. + */ + boolean hasWriteStream(); + /** + *
+   * Required. Stream to be created.
+   * 
+ * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The writeStream. + */ + com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream(); + /** + *
+   * Required. Stream to be created.
+   * 
+ * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder getWriteStreamOrBuilder(); +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java similarity index 69% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java index d5965f5cce..e1f0289dff 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Data format for input or output data.
  * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1.DataFormat} */ -public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { +public enum DataFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Data format is unspecified.
    * 
@@ -39,8 +21,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { */ DATA_FORMAT_UNSPECIFIED(0), /** - * - * *
    * Avro is a standard open source row based file format.
    * See https://avro.apache.org/ for more details.
@@ -50,8 +30,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   AVRO(1),
   /**
-   *
-   *
    * 
    * Arrow is a standard open source column-based message format.
    * See https://arrow.apache.org/ for more details.
@@ -64,8 +42,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * Data format is unspecified.
    * 
@@ -74,8 +50,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Avro is a standard open source row based file format.
    * See https://avro.apache.org/ for more details.
@@ -85,8 +59,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int AVRO_VALUE = 1;
   /**
-   *
-   *
    * 
    * Arrow is a standard open source column-based message format.
    * See https://arrow.apache.org/ for more details.
@@ -96,6 +68,7 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int ARROW_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -120,49 +93,49 @@ public static DataFormat valueOf(int value) {
    */
   public static DataFormat forNumber(int value) {
     switch (value) {
-      case 0:
-        return DATA_FORMAT_UNSPECIFIED;
-      case 1:
-        return AVRO;
-      case 2:
-        return ARROW;
-      default:
-        return null;
+      case 0: return DATA_FORMAT_UNSPECIFIED;
+      case 1: return AVRO;
+      case 2: return ARROW;
+      default: return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap
+      internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public DataFormat findValueByNumber(int number) {
-          return DataFormat.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      DataFormat> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public DataFormat findValueByNumber(int number) {
+            return DataFormat.forNumber(number);
+          }
+        };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
     return com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final DataFormat[] VALUES = values();
 
-  public static DataFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static DataFormat valueOf(
+      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -178,3 +151,4 @@ private DataFormat(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1.DataFormat)
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java
similarity index 60%
rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java
index 1e38042536..1cbde03dea 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java
@@ -1,88 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
 /**
- *
- *
  * 
  * Request message for invoking `FinalizeWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest} */ -public final class FinalizeWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FinalizeWriteStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) FinalizeWriteStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FinalizeWriteStreamRequest.newBuilder() to construct. private FinalizeWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FinalizeWriteStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FinalizeWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the stream to finalize, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,32 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the stream to finalize, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -161,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest other = - (com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,136 +162,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for invoking `FinalizeWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,14 +294,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.getDefaultInstance(); } @@ -350,17 +315,13 @@ public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest result = - new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -371,50 +332,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest other) { + if (other == com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -446,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -468,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -498,24 +448,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -523,41 +470,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -567,33 +503,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,43 +533,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) - private static final com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FinalizeWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinalizeWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,8 +579,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java new file mode 100644 index 0000000000..f1f0861c0f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface FinalizeWriteStreamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the stream to finalize, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the stream to finalize, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java similarity index 60% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java index 684efc11b1..b2e3eb99b9 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Response message for `FinalizeWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse} */ -public final class FinalizeWriteStreamResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FinalizeWriteStreamResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) FinalizeWriteStreamResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FinalizeWriteStreamResponse.newBuilder() to construct. private FinalizeWriteStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FinalizeWriteStreamResponse() {} + private FinalizeWriteStreamResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FinalizeWriteStreamResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.Builder.class); } public static final int ROW_COUNT_FIELD_NUMBER = 1; private long rowCount_ = 0L; /** - * - * *
    * Number of rows in the finalized stream.
    * 
* * int64 row_count = 1; - * * @return The rowCount. */ @java.lang.Override @@ -84,7 +63,6 @@ public long getRowCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,7 +74,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (rowCount_ != 0L) { output.writeInt64(1, rowCount_); } @@ -110,7 +89,8 @@ public int getSerializedSize() { size = 0; if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,15 +100,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse other = - (com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) obj; + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse other = (com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) obj; - if (getRowCount() != other.getRowCount()) return false; + if (getRowCount() + != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -141,143 +121,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for `FinalizeWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -287,14 +261,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.getDefaultInstance(); } @@ -309,17 +282,13 @@ public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse build() @java.lang.Override public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse buildPartial() { - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse result = - new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse result = new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.rowCount_ = rowCount_; @@ -330,50 +299,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse other) { - if (other - == com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse other) { + if (other == com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.getDefaultInstance()) return this; if (other.getRowCount() != 0L) { setRowCount(other.getRowCount()); } @@ -403,19 +368,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -425,19 +388,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long rowCount_; + private long rowCount_ ; /** - * - * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; - * * @return The rowCount. */ @java.lang.Override @@ -445,33 +404,27 @@ public long getRowCount() { return rowCount_; } /** - * - * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; - * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; - * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -480,9 +433,9 @@ public Builder clearRowCount() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -492,43 +445,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) - private static final com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse(); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FinalizeWriteStreamResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinalizeWriteStreamResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -540,8 +491,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java new file mode 100644 index 0000000000..e118c45f70 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface FinalizeWriteStreamResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Number of rows in the finalized stream.
+   * 
+ * + * int64 row_count = 1; + * @return The rowCount. + */ + long getRowCount(); +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java similarity index 66% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java index 9db3a8d3e3..1082b6798b 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Request message for `FlushRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FlushRowsRequest} */ -public final class FlushRowsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FlushRowsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.FlushRowsRequest) FlushRowsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FlushRowsRequest.newBuilder() to construct. private FlushRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FlushRowsRequest() { writeStream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FlushRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, - com.google.cloud.bigquery.storage.v1.FlushRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, com.google.cloud.bigquery.storage.v1.FlushRowsRequest.Builder.class); } public static final int WRITE_STREAM_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object writeStream_ = ""; /** - * - * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getWriteStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; } } /** - * - * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ @java.lang.Override - public com.google.protobuf.ByteString getWriteStreamBytes() { + public com.google.protobuf.ByteString + getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeStream_ = b; return b; } else { @@ -125,15 +98,12 @@ public com.google.protobuf.ByteString getWriteStreamBytes() { public static final int OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value offset_; /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ @java.lang.Override @@ -141,15 +111,12 @@ public boolean hasOffset() { return offset_ != null; } /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ @java.lang.Override @@ -157,8 +124,6 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
@@ -172,7 +137,6 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -184,7 +148,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeStream_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, writeStream_);
     }
@@ -204,7 +169,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, writeStream_);
     }
     if (offset_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOffset());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getOffset());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -214,18 +180,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1.FlushRowsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1.FlushRowsRequest other =
-        (com.google.cloud.bigquery.storage.v1.FlushRowsRequest) obj;
+    com.google.cloud.bigquery.storage.v1.FlushRowsRequest other = (com.google.cloud.bigquery.storage.v1.FlushRowsRequest) obj;
 
-    if (!getWriteStream().equals(other.getWriteStream())) return false;
+    if (!getWriteStream()
+        .equals(other.getWriteStream())) return false;
     if (hasOffset() != other.hasOffset()) return false;
     if (hasOffset()) {
-      if (!getOffset().equals(other.getOffset())) return false;
+      if (!getOffset()
+          .equals(other.getOffset())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -250,136 +217,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.bigquery.storage.v1.FlushRowsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.FlushRowsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for `FlushRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FlushRowsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.FlushRowsRequest) com.google.cloud.bigquery.storage.v1.FlushRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, - com.google.cloud.bigquery.storage.v1.FlushRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, com.google.cloud.bigquery.storage.v1.FlushRowsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.FlushRowsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -394,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; } @java.lang.Override @@ -415,11 +375,8 @@ public com.google.cloud.bigquery.storage.v1.FlushRowsRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.FlushRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.FlushRowsRequest result = - new com.google.cloud.bigquery.storage.v1.FlushRowsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.FlushRowsRequest result = new com.google.cloud.bigquery.storage.v1.FlushRowsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -430,7 +387,9 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.FlushRowsRequest result.writeStream_ = writeStream_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build(); + result.offset_ = offsetBuilder_ == null + ? offset_ + : offsetBuilder_.build(); } } @@ -438,39 +397,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.FlushRowsRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.FlushRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.FlushRowsRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.FlushRowsRequest)other); } else { super.mergeFrom(other); return this; @@ -478,8 +436,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.FlushRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.FlushRowsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.FlushRowsRequest.getDefaultInstance()) return this; if (!other.getWriteStream().isEmpty()) { writeStream_ = other.writeStream_; bitField0_ |= 0x00000001; @@ -514,25 +471,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - writeStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + writeStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -542,27 +498,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object writeStream_ = ""; /** - * - * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ public java.lang.String getWriteStream() { java.lang.Object ref = writeStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; @@ -571,23 +522,20 @@ public java.lang.String getWriteStream() { } } /** - * - * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ - public com.google.protobuf.ByteString getWriteStreamBytes() { + public com.google.protobuf.ByteString + getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeStream_ = b; return b; } else { @@ -595,39 +543,28 @@ public com.google.protobuf.ByteString getWriteStreamBytes() { } } /** - * - * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStream(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStream( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } writeStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearWriteStream() { @@ -637,23 +574,17 @@ public Builder clearWriteStream() { return this; } /** - * - * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStreamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); writeStream_ = value; bitField0_ |= 0x00000001; @@ -663,35 +594,26 @@ public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - offsetBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; /** - * - * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
      * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
      * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -702,8 +624,6 @@ public com.google.protobuf.Int64Value getOffset() { } } /** - * - * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -725,8 +645,6 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -734,7 +652,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value offset = 2;
      */
-    public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setOffset(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (offsetBuilder_ == null) {
         offset_ = builderForValue.build();
       } else {
@@ -745,8 +664,6 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -756,9 +673,9 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
      */
     public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       if (offsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && offset_ != null
-            && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          offset_ != null &&
+          offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
           getOffsetBuilder().mergeFrom(value);
         } else {
           offset_ = value;
@@ -771,8 +688,6 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -791,8 +706,6 @@ public Builder clearOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -806,8 +719,6 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
       return getOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -819,12 +730,11 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
       if (offsetBuilder_ != null) {
         return offsetBuilder_.getMessageOrBuilder();
       } else {
-        return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+        return offset_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
       }
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -833,24 +743,21 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
      * .google.protobuf.Int64Value offset = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getOffsetFieldBuilder() {
       if (offsetBuilder_ == null) {
-        offsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getOffset(), getParentForChildren(), isClean());
+        offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getOffset(),
+                getParentForChildren(),
+                isClean());
         offset_ = null;
       }
       return offsetBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -860,12 +767,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.FlushRowsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.FlushRowsRequest)
   private static final com.google.cloud.bigquery.storage.v1.FlushRowsRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.FlushRowsRequest();
   }
@@ -874,27 +781,27 @@ public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public FlushRowsRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public FlushRowsRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -909,4 +816,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1.FlushRowsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java
similarity index 58%
rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java
index 41db84641f..739d1ee4b8 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java
@@ -1,86 +1,53 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
-public interface FlushRowsRequestOrBuilder
-    extends
+public interface FlushRowsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FlushRowsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The stream that is the target of the flush operation.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ java.lang.String getWriteStream(); /** - * - * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ - com.google.protobuf.ByteString getWriteStreamBytes(); + com.google.protobuf.ByteString + getWriteStreamBytes(); /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ boolean hasOffset(); /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java
similarity index 63%
rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java
index 3f7e6f8aaf..ad09dca3dc 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java
@@ -1,81 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
 /**
- *
- *
  * 
  * Respond message for `FlushRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FlushRowsResponse} */ -public final class FlushRowsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FlushRowsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.FlushRowsResponse) FlushRowsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FlushRowsResponse.newBuilder() to construct. private FlushRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FlushRowsResponse() {} + private FlushRowsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FlushRowsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, - com.google.cloud.bigquery.storage.v1.FlushRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, com.google.cloud.bigquery.storage.v1.FlushRowsResponse.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private long offset_ = 0L; /** - * - * *
    * The rows before this offset (including this offset) are flushed.
    * 
* * int64 offset = 1; - * * @return The offset. */ @java.lang.Override @@ -84,7 +63,6 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,7 +74,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (offset_ != 0L) { output.writeInt64(1, offset_); } @@ -110,7 +89,8 @@ public int getSerializedSize() { size = 0; if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, offset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,15 +100,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.FlushRowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.FlushRowsResponse other = - (com.google.cloud.bigquery.storage.v1.FlushRowsResponse) obj; + com.google.cloud.bigquery.storage.v1.FlushRowsResponse other = (com.google.cloud.bigquery.storage.v1.FlushRowsResponse) obj; - if (getOffset() != other.getOffset()) return false; + if (getOffset() + != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -141,143 +121,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.FlushRowsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.FlushRowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Respond message for `FlushRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FlushRowsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.FlushRowsResponse) com.google.cloud.bigquery.storage.v1.FlushRowsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, - com.google.cloud.bigquery.storage.v1.FlushRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, com.google.cloud.bigquery.storage.v1.FlushRowsResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.FlushRowsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -287,9 +261,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; } @java.lang.Override @@ -308,11 +282,8 @@ public com.google.cloud.bigquery.storage.v1.FlushRowsResponse build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.FlushRowsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1.FlushRowsResponse result = - new com.google.cloud.bigquery.storage.v1.FlushRowsResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.FlushRowsResponse result = new com.google.cloud.bigquery.storage.v1.FlushRowsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -328,39 +299,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.FlushRowsRespons public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.FlushRowsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.FlushRowsResponse) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.FlushRowsResponse)other); } else { super.mergeFrom(other); return this; @@ -368,8 +338,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.FlushRowsResponse other) { - if (other == com.google.cloud.bigquery.storage.v1.FlushRowsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.FlushRowsResponse.getDefaultInstance()) return this; if (other.getOffset() != 0L) { setOffset(other.getOffset()); } @@ -399,19 +368,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + offset_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,19 +388,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long offset_; + private long offset_ ; /** - * - * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; - * * @return The offset. */ @java.lang.Override @@ -441,33 +404,27 @@ public long getOffset() { return offset_; } /** - * - * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; - * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -476,9 +433,9 @@ public Builder clearOffset() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -488,12 +445,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.FlushRowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.FlushRowsResponse) private static final com.google.cloud.bigquery.storage.v1.FlushRowsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.FlushRowsResponse(); } @@ -502,27 +459,27 @@ public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FlushRowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlushRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -537,4 +494,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.FlushRowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java new file mode 100644 index 0000000000..cefdb2bb27 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface FlushRowsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FlushRowsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The rows before this offset (including this offset) are flushed.
+   * 
+ * + * int64 offset = 1; + * @return The offset. + */ + long getOffset(); +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java similarity index 64% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java index d4efa4d8c7..994ed7feee 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Request message for `GetWriteStreamRequest`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.GetWriteStreamRequest} */ -public final class GetWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWriteStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.GetWriteStreamRequest) GetWriteStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWriteStreamRequest.newBuilder() to construct. private GetWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWriteStreamRequest() { name_ = ""; view_ = 0; @@ -44,46 +26,39 @@ private GetWriteStreamRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,32 +67,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -128,44 +101,32 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int VIEW_FIELD_NUMBER = 3; private int view_ = 0; /** - * - * *
    * Indicates whether to get full or partial view of the WriteStream. If
    * not set, view returned will be basic.
    * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * Indicates whether to get full or partial view of the WriteStream. If
    * not set, view returned will be basic.
    * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; - * * @return The view. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1.WriteStreamView getView() { - com.google.cloud.bigquery.storage.v1.WriteStreamView result = - com.google.cloud.bigquery.storage.v1.WriteStreamView.forNumber(view_); - return result == null - ? com.google.cloud.bigquery.storage.v1.WriteStreamView.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStreamView getView() { + com.google.cloud.bigquery.storage.v1.WriteStreamView result = com.google.cloud.bigquery.storage.v1.WriteStreamView.forNumber(view_); + return result == null ? com.google.cloud.bigquery.storage.v1.WriteStreamView.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,13 +138,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (view_ - != com.google.cloud.bigquery.storage.v1.WriteStreamView.WRITE_STREAM_VIEW_UNSPECIFIED - .getNumber()) { + if (view_ != com.google.cloud.bigquery.storage.v1.WriteStreamView.WRITE_STREAM_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(3, view_); } getUnknownFields().writeTo(output); @@ -198,10 +158,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (view_ - != com.google.cloud.bigquery.storage.v1.WriteStreamView.WRITE_STREAM_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, view_); + if (view_ != com.google.cloud.bigquery.storage.v1.WriteStreamView.WRITE_STREAM_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -211,15 +170,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest other = - (com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -242,136 +201,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GetWriteStreamRequest`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.GetWriteStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.GetWriteStreamRequest) com.google.cloud.bigquery.storage.v1.GetWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +334,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; } @java.lang.Override @@ -403,11 +355,8 @@ public com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest result = - new com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -426,39 +375,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.GetWriteStreamRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -466,8 +414,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -502,25 +449,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: - { - view_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + view_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,28 +474,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -560,24 +499,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -585,41 +521,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -629,24 +554,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -656,31 +575,24 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * Indicates whether to get full or partial view of the WriteStream. If
      * not set, view returned will be basic.
      * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * Indicates whether to get full or partial view of the WriteStream. If
      * not set, view returned will be basic.
      * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -691,35 +603,26 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * Indicates whether to get full or partial view of the WriteStream. If
      * not set, view returned will be basic.
      * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; - * * @return The view. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStreamView getView() { - com.google.cloud.bigquery.storage.v1.WriteStreamView result = - com.google.cloud.bigquery.storage.v1.WriteStreamView.forNumber(view_); - return result == null - ? com.google.cloud.bigquery.storage.v1.WriteStreamView.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1.WriteStreamView result = com.google.cloud.bigquery.storage.v1.WriteStreamView.forNumber(view_); + return result == null ? com.google.cloud.bigquery.storage.v1.WriteStreamView.UNRECOGNIZED : result; } /** - * - * *
      * Indicates whether to get full or partial view of the WriteStream. If
      * not set, view returned will be basic.
      * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; - * * @param value The view to set. * @return This builder for chaining. */ @@ -733,15 +636,12 @@ public Builder setView(com.google.cloud.bigquery.storage.v1.WriteStreamView valu return this; } /** - * - * *
      * Indicates whether to get full or partial view of the WriteStream. If
      * not set, view returned will be basic.
      * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; - * * @return This builder for chaining. */ public Builder clearView() { @@ -750,9 +650,9 @@ public Builder clearView() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -762,12 +662,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.GetWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.GetWriteStreamRequest) private static final com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest(); } @@ -776,27 +676,27 @@ public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -811,4 +711,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java similarity index 57% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java index 816792d231..1e7bb15cf2 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java @@ -1,82 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface GetWriteStreamRequestOrBuilder - extends +public interface GetWriteStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.GetWriteStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Indicates whether to get full or partial view of the WriteStream. If
    * not set, view returned will be basic.
    * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; - * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * Indicates whether to get full or partial view of the WriteStream. If
    * not set, view returned will be basic.
    * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; - * * @return The view. */ com.google.cloud.bigquery.storage.v1.WriteStreamView getView(); diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java similarity index 100% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java new file mode 100644 index 0000000000..4ed7b7b037 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/protobuf.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class ProtoBufProto { + private ProtoBufProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/bigquery/storage/v1/proto" + + "buf.proto\022 google.cloud.bigquery.storage" + + ".v1\032 google/protobuf/descriptor.proto\"I\n" + + "\013ProtoSchema\022:\n\020proto_descriptor\030\001 \001(\0132 " + + ".google.protobuf.DescriptorProto\"$\n\tProt" + + "oRows\022\027\n\017serialized_rows\030\001 \003(\014B\275\001\n$com.g" + + "oogle.cloud.bigquery.storage.v1B\rProtoBu" + + "fProtoP\001Z>cloud.google.com/go/bigquery/s" + + "torage/apiv1/storagepb;storagepb\252\002 Googl" + + "e.Cloud.BigQuery.Storage.V1\312\002 Google\\Clo" + + "ud\\BigQuery\\Storage\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DescriptorProtos.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor, + new java.lang.String[] { "ProtoDescriptor", }); + internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor, + new java.lang.String[] { "SerializedRows", }); + com.google.protobuf.DescriptorProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java similarity index 68% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java index 99335688c5..8426e1a4ea 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java @@ -1,71 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto package com.google.cloud.bigquery.storage.v1; -/** Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoRows} */ -public final class ProtoRows extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoRows} + */ +public final class ProtoRows extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ProtoRows) ProtoRowsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProtoRows.newBuilder() to construct. private ProtoRows(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProtoRows() { serializedRows_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProtoRows(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ProtoRows.class, - com.google.cloud.bigquery.storage.v1.ProtoRows.Builder.class); + com.google.cloud.bigquery.storage.v1.ProtoRows.class, com.google.cloud.bigquery.storage.v1.ProtoRows.Builder.class); } public static final int SERIALIZED_ROWS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List serializedRows_; /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -73,16 +55,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated bytes serialized_rows = 1; - * * @return A list containing the serializedRows. */ @java.lang.Override - public java.util.List getSerializedRowsList() { + public java.util.List + getSerializedRowsList() { return serializedRows_; } /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -90,15 +70,12 @@ public java.util.List getSerializedRowsList() {
    * 
* * repeated bytes serialized_rows = 1; - * * @return The count of serializedRows. */ public int getSerializedRowsCount() { return serializedRows_.size(); } /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -106,7 +83,6 @@ public int getSerializedRowsCount() {
    * 
* * repeated bytes serialized_rows = 1; - * * @param index The index of the element to return. * @return The serializedRows at the given index. */ @@ -115,7 +91,6 @@ public com.google.protobuf.ByteString getSerializedRows(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < serializedRows_.size(); i++) { output.writeBytes(1, serializedRows_.get(i)); } @@ -143,8 +119,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < serializedRows_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(serializedRows_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(serializedRows_.get(i)); } size += dataSize; size += 1 * getSerializedRowsList().size(); @@ -157,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ProtoRows)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ProtoRows other = - (com.google.cloud.bigquery.storage.v1.ProtoRows) obj; + com.google.cloud.bigquery.storage.v1.ProtoRows other = (com.google.cloud.bigquery.storage.v1.ProtoRows) obj; - if (!getSerializedRowsList().equals(other.getSerializedRowsList())) return false; + if (!getSerializedRowsList() + .equals(other.getSerializedRowsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,128 +162,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ProtoRows prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoRows} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoRows} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ProtoRows) com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ProtoRows.class, - com.google.cloud.bigquery.storage.v1.ProtoRows.Builder.class); + com.google.cloud.bigquery.storage.v1.ProtoRows.class, com.google.cloud.bigquery.storage.v1.ProtoRows.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ProtoRows.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; } @java.lang.Override @@ -338,12 +312,9 @@ public com.google.cloud.bigquery.storage.v1.ProtoRows build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ProtoRows buildPartial() { - com.google.cloud.bigquery.storage.v1.ProtoRows result = - new com.google.cloud.bigquery.storage.v1.ProtoRows(this); + com.google.cloud.bigquery.storage.v1.ProtoRows result = new com.google.cloud.bigquery.storage.v1.ProtoRows(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +335,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ProtoRows result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ProtoRows) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ProtoRows) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ProtoRows)other); } else { super.mergeFrom(other); return this; @@ -441,20 +411,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.ByteString v = input.readBytes(); - ensureSerializedRowsIsMutable(); - serializedRows_.add(v); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureSerializedRowsIsMutable(); + serializedRows_.add(v); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -464,12 +432,9 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List serializedRows_ = - java.util.Collections.emptyList(); - + private java.util.List serializedRows_ = java.util.Collections.emptyList(); private void ensureSerializedRowsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { serializedRows_ = new java.util.ArrayList(serializedRows_); @@ -477,8 +442,6 @@ private void ensureSerializedRowsIsMutable() { } } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -486,17 +449,14 @@ private void ensureSerializedRowsIsMutable() {
      * 
* * repeated bytes serialized_rows = 1; - * * @return A list containing the serializedRows. */ - public java.util.List getSerializedRowsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(serializedRows_) - : serializedRows_; + public java.util.List + getSerializedRowsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(serializedRows_) : serializedRows_; } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -504,15 +464,12 @@ public java.util.List getSerializedRowsList() {
      * 
* * repeated bytes serialized_rows = 1; - * * @return The count of serializedRows. */ public int getSerializedRowsCount() { return serializedRows_.size(); } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -520,7 +477,6 @@ public int getSerializedRowsCount() {
      * 
* * repeated bytes serialized_rows = 1; - * * @param index The index of the element to return. * @return The serializedRows at the given index. */ @@ -528,8 +484,6 @@ public com.google.protobuf.ByteString getSerializedRows(int index) { return serializedRows_.get(index); } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -537,23 +491,19 @@ public com.google.protobuf.ByteString getSerializedRows(int index) {
      * 
* * repeated bytes serialized_rows = 1; - * * @param index The index to set the value at. * @param value The serializedRows to set. * @return This builder for chaining. */ - public Builder setSerializedRows(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSerializedRows( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureSerializedRowsIsMutable(); serializedRows_.set(index, value); onChanged(); return this; } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -561,22 +511,17 @@ public Builder setSerializedRows(int index, com.google.protobuf.ByteString value
      * 
* * repeated bytes serialized_rows = 1; - * * @param value The serializedRows to add. * @return This builder for chaining. */ public Builder addSerializedRows(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureSerializedRowsIsMutable(); serializedRows_.add(value); onChanged(); return this; } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -584,20 +529,18 @@ public Builder addSerializedRows(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes serialized_rows = 1; - * * @param values The serializedRows to add. * @return This builder for chaining. */ public Builder addAllSerializedRows( java.lang.Iterable values) { ensureSerializedRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serializedRows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serializedRows_); onChanged(); return this; } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -605,7 +548,6 @@ public Builder addAllSerializedRows(
      * 
* * repeated bytes serialized_rows = 1; - * * @return This builder for chaining. */ public Builder clearSerializedRows() { @@ -614,9 +556,9 @@ public Builder clearSerializedRows() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -626,12 +568,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ProtoRows) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ProtoRows) private static final com.google.cloud.bigquery.storage.v1.ProtoRows DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ProtoRows(); } @@ -640,27 +582,27 @@ public static com.google.cloud.bigquery.storage.v1.ProtoRows getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoRows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProtoRows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -675,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ProtoRows getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java similarity index 68% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java index 478554fa14..5022c9bb9b 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto package com.google.cloud.bigquery.storage.v1; -public interface ProtoRowsOrBuilder - extends +public interface ProtoRowsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ProtoRows) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -33,13 +15,10 @@ public interface ProtoRowsOrBuilder
    * 
* * repeated bytes serialized_rows = 1; - * * @return A list containing the serializedRows. */ java.util.List getSerializedRowsList(); /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -47,13 +26,10 @@ public interface ProtoRowsOrBuilder
    * 
* * repeated bytes serialized_rows = 1; - * * @return The count of serializedRows. */ int getSerializedRowsCount(); /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -61,7 +37,6 @@ public interface ProtoRowsOrBuilder
    * 
* * repeated bytes serialized_rows = 1; - * * @param index The index of the element to return. * @return The serializedRows at the given index. */ diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java similarity index 72% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java index f7b7c709ed..1340ca9cfd 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java @@ -1,75 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * ProtoSchema describes the schema of the serialized protocol buffer data rows.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoSchema} */ -public final class ProtoSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProtoSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ProtoSchema) ProtoSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProtoSchema.newBuilder() to construct. private ProtoSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ProtoSchema() {} + private ProtoSchema() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProtoSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ProtoSchema.class, - com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.ProtoSchema.class, com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder.class); } public static final int PROTO_DESCRIPTOR_FIELD_NUMBER = 1; private com.google.protobuf.DescriptorProtos.DescriptorProto protoDescriptor_; /** - * - * *
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
@@ -82,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return Whether the protoDescriptor field is set. */ @java.lang.Override @@ -90,8 +69,6 @@ public boolean hasProtoDescriptor() { return protoDescriptor_ != null; } /** - * - * *
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
@@ -104,18 +81,13 @@ public boolean hasProtoDescriptor() {
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return The protoDescriptor. */ @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor() { - return protoDescriptor_ == null - ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() - : protoDescriptor_; + return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_; } /** - * - * *
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
@@ -130,15 +102,11 @@ public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor()
    * .google.protobuf.DescriptorProto proto_descriptor = 1;
    */
   @java.lang.Override
-  public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder
-      getProtoDescriptorOrBuilder() {
-    return protoDescriptor_ == null
-        ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()
-        : protoDescriptor_;
+  public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtoDescriptorOrBuilder() {
+    return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -156,7 +124,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (protoDescriptor_ != null) {
       output.writeMessage(1, getProtoDescriptor());
     }
@@ -170,7 +139,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (protoDescriptor_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProtoDescriptor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getProtoDescriptor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -180,17 +150,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ProtoSchema)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1.ProtoSchema other =
-        (com.google.cloud.bigquery.storage.v1.ProtoSchema) obj;
+    com.google.cloud.bigquery.storage.v1.ProtoSchema other = (com.google.cloud.bigquery.storage.v1.ProtoSchema) obj;
 
     if (hasProtoDescriptor() != other.hasProtoDescriptor()) return false;
     if (hasProtoDescriptor()) {
-      if (!getProtoDescriptor().equals(other.getProtoDescriptor())) return false;
+      if (!getProtoDescriptor()
+          .equals(other.getProtoDescriptor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -212,136 +182,130 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ProtoSchema prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * ProtoSchema describes the schema of the serialized protocol buffer data rows.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ProtoSchema) com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ProtoSchema.class, - com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.ProtoSchema.class, com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ProtoSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +319,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; } @java.lang.Override @@ -376,11 +340,8 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ProtoSchema buildPartial() { - com.google.cloud.bigquery.storage.v1.ProtoSchema result = - new com.google.cloud.bigquery.storage.v1.ProtoSchema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.ProtoSchema result = new com.google.cloud.bigquery.storage.v1.ProtoSchema(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -388,8 +349,9 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchema buildPartial() { private void buildPartial0(com.google.cloud.bigquery.storage.v1.ProtoSchema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.protoDescriptor_ = - protoDescriptorBuilder_ == null ? protoDescriptor_ : protoDescriptorBuilder_.build(); + result.protoDescriptor_ = protoDescriptorBuilder_ == null + ? protoDescriptor_ + : protoDescriptorBuilder_.build(); } } @@ -397,39 +359,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ProtoSchema resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ProtoSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ProtoSchema) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ProtoSchema)other); } else { super.mergeFrom(other); return this; @@ -437,8 +398,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ProtoSchema other) { - if (other == com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()) return this; if (other.hasProtoDescriptor()) { mergeProtoDescriptor(other.getProtoDescriptor()); } @@ -473,19 +433,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getProtoDescriptorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getProtoDescriptorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -495,18 +455,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.DescriptorProtos.DescriptorProto protoDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DescriptorProtos.DescriptorProto, - com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, - com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> - protoDescriptorBuilder_; + com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> protoDescriptorBuilder_; /** - * - * *
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -519,15 +473,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return Whether the protoDescriptor field is set. */ public boolean hasProtoDescriptor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -540,21 +491,16 @@ public boolean hasProtoDescriptor() {
      * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return The protoDescriptor. */ public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor() { if (protoDescriptorBuilder_ == null) { - return protoDescriptor_ == null - ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() - : protoDescriptor_; + return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_; } else { return protoDescriptorBuilder_.getMessage(); } } /** - * - * *
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -582,8 +528,6 @@ public Builder setProtoDescriptor(com.google.protobuf.DescriptorProtos.Descripto
       return this;
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -609,8 +553,6 @@ public Builder setProtoDescriptor(
       return this;
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -624,13 +566,11 @@ public Builder setProtoDescriptor(
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public Builder mergeProtoDescriptor(
-        com.google.protobuf.DescriptorProtos.DescriptorProto value) {
+    public Builder mergeProtoDescriptor(com.google.protobuf.DescriptorProtos.DescriptorProto value) {
       if (protoDescriptorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && protoDescriptor_ != null
-            && protoDescriptor_
-                != com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          protoDescriptor_ != null &&
+          protoDescriptor_ != com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) {
           getProtoDescriptorBuilder().mergeFrom(value);
         } else {
           protoDescriptor_ = value;
@@ -643,8 +583,6 @@ public Builder mergeProtoDescriptor(
       return this;
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -669,8 +607,6 @@ public Builder clearProtoDescriptor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -684,15 +620,12 @@ public Builder clearProtoDescriptor() {
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder
-        getProtoDescriptorBuilder() {
+    public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getProtoDescriptorBuilder() {
       bitField0_ |= 0x00000001;
       onChanged();
       return getProtoDescriptorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -706,19 +639,15 @@ public Builder clearProtoDescriptor() {
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder
-        getProtoDescriptorOrBuilder() {
+    public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtoDescriptorOrBuilder() {
       if (protoDescriptorBuilder_ != null) {
         return protoDescriptorBuilder_.getMessageOrBuilder();
       } else {
-        return protoDescriptor_ == null
-            ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()
-            : protoDescriptor_;
+        return protoDescriptor_ == null ?
+            com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_;
       }
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -733,24 +662,21 @@ public Builder clearProtoDescriptor() {
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.DescriptorProtos.DescriptorProto,
-            com.google.protobuf.DescriptorProtos.DescriptorProto.Builder,
-            com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>
+        com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 
         getProtoDescriptorFieldBuilder() {
       if (protoDescriptorBuilder_ == null) {
-        protoDescriptorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.DescriptorProtos.DescriptorProto,
-                com.google.protobuf.DescriptorProtos.DescriptorProto.Builder,
-                com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>(
-                getProtoDescriptor(), getParentForChildren(), isClean());
+        protoDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>(
+                getProtoDescriptor(),
+                getParentForChildren(),
+                isClean());
         protoDescriptor_ = null;
       }
       return protoDescriptorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -760,12 +686,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ProtoSchema)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ProtoSchema)
   private static final com.google.cloud.bigquery.storage.v1.ProtoSchema DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ProtoSchema();
   }
@@ -774,27 +700,27 @@ public static com.google.cloud.bigquery.storage.v1.ProtoSchema getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ProtoSchema parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ProtoSchema parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -809,4 +735,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1.ProtoSchema getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java
similarity index 79%
rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java
index 1abed6abb7..976e93ef69 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/protobuf.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
-public interface ProtoSchemaOrBuilder
-    extends
+public interface ProtoSchemaOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ProtoSchema)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
@@ -38,13 +20,10 @@ public interface ProtoSchemaOrBuilder
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return Whether the protoDescriptor field is set. */ boolean hasProtoDescriptor(); /** - * - * *
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
@@ -57,13 +36,10 @@ public interface ProtoSchemaOrBuilder
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return The protoDescriptor. */ com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor(); /** - * - * *
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java
similarity index 63%
rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java
index 4cb269fab4..5d8e59f2af 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java
@@ -1,87 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
 /**
- *
- *
  * 
  * Request message for `ReadRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadRowsRequest} */ -public final class ReadRowsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReadRowsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadRowsRequest) ReadRowsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReadRowsRequest.newBuilder() to construct. private ReadRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadRowsRequest() { readStream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadRowsRequest.class, - com.google.cloud.bigquery.storage.v1.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1.ReadRowsRequest.Builder.class); } public static final int READ_STREAM_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object readStream_ = ""; /** - * - * *
    * Required. Stream to read rows from.
    * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The readStream. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getReadStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readStream_ = s; return s; } } /** - * - * *
    * Required. Stream to read rows from.
    * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for readStream. */ @java.lang.Override - public com.google.protobuf.ByteString getReadStreamBytes() { + public com.google.protobuf.ByteString + getReadStreamBytes() { java.lang.Object ref = readStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); readStream_ = b; return b; } else { @@ -125,8 +98,6 @@ public com.google.protobuf.ByteString getReadStreamBytes() { public static final int OFFSET_FIELD_NUMBER = 2; private long offset_ = 0L; /** - * - * *
    * The offset requested must be less than the last row read from Read.
    * Requesting a larger offset is undefined. If not specified, start reading
@@ -134,7 +105,6 @@ public com.google.protobuf.ByteString getReadStreamBytes() {
    * 
* * int64 offset = 2; - * * @return The offset. */ @java.lang.Override @@ -143,7 +113,6 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,7 +124,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readStream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, readStream_); } @@ -175,7 +145,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, readStream_); } if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, offset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -185,16 +156,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadRowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadRowsRequest other = - (com.google.cloud.bigquery.storage.v1.ReadRowsRequest) obj; + com.google.cloud.bigquery.storage.v1.ReadRowsRequest other = (com.google.cloud.bigquery.storage.v1.ReadRowsRequest) obj; - if (!getReadStream().equals(other.getReadStream())) return false; - if (getOffset() != other.getOffset()) return false; + if (!getReadStream() + .equals(other.getReadStream())) return false; + if (getOffset() + != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -209,142 +181,137 @@ public int hashCode() { hash = (37 * hash) + READ_STREAM_FIELD_NUMBER; hash = (53 * hash) + getReadStream().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadRowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `ReadRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadRowsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadRowsRequest) com.google.cloud.bigquery.storage.v1.ReadRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadRowsRequest.class, - com.google.cloud.bigquery.storage.v1.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1.ReadRowsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ReadRowsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -355,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; } @java.lang.Override @@ -376,11 +343,8 @@ public com.google.cloud.bigquery.storage.v1.ReadRowsRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.ReadRowsRequest result = - new com.google.cloud.bigquery.storage.v1.ReadRowsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.ReadRowsRequest result = new com.google.cloud.bigquery.storage.v1.ReadRowsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -399,39 +363,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadRowsRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ReadRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadRowsRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadRowsRequest)other); } else { super.mergeFrom(other); return this; @@ -439,8 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.ReadRowsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.ReadRowsRequest.getDefaultInstance()) return this; if (!other.getReadStream().isEmpty()) { readStream_ = other.readStream_; bitField0_ |= 0x00000001; @@ -475,25 +437,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - readStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + readStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + offset_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -503,27 +462,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object readStream_ = ""; /** - * - * *
      * Required. Stream to read rows from.
      * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The readStream. */ public java.lang.String getReadStream() { java.lang.Object ref = readStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readStream_ = s; return s; @@ -532,23 +486,20 @@ public java.lang.String getReadStream() { } } /** - * - * *
      * Required. Stream to read rows from.
      * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for readStream. */ - public com.google.protobuf.ByteString getReadStreamBytes() { + public com.google.protobuf.ByteString + getReadStreamBytes() { java.lang.Object ref = readStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); readStream_ = b; return b; } else { @@ -556,39 +507,28 @@ public com.google.protobuf.ByteString getReadStreamBytes() { } } /** - * - * *
      * Required. Stream to read rows from.
      * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The readStream to set. * @return This builder for chaining. */ - public Builder setReadStream(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReadStream( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } readStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Stream to read rows from.
      * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearReadStream() { @@ -598,23 +538,17 @@ public Builder clearReadStream() { return this; } /** - * - * *
      * Required. Stream to read rows from.
      * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for readStream to set. * @return This builder for chaining. */ - public Builder setReadStreamBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReadStreamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); readStream_ = value; bitField0_ |= 0x00000001; @@ -622,10 +556,8 @@ public Builder setReadStreamBytes(com.google.protobuf.ByteString value) { return this; } - private long offset_; + private long offset_ ; /** - * - * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -633,7 +565,6 @@ public Builder setReadStreamBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 offset = 2; - * * @return The offset. */ @java.lang.Override @@ -641,8 +572,6 @@ public long getOffset() { return offset_; } /** - * - * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -650,20 +579,17 @@ public long getOffset() {
      * 
* * int64 offset = 2; - * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -671,7 +597,6 @@ public Builder setOffset(long value) {
      * 
* * int64 offset = 2; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -680,9 +605,9 @@ public Builder clearOffset() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadRowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadRowsRequest) private static final com.google.cloud.bigquery.storage.v1.ReadRowsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadRowsRequest(); } @@ -706,27 +631,27 @@ public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadRowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -741,4 +666,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ReadRowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java new file mode 100644 index 0000000000..a695b011a8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface ReadRowsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadRowsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Stream to read rows from.
+   * 
+ * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The readStream. + */ + java.lang.String getReadStream(); + /** + *
+   * Required. Stream to read rows from.
+   * 
+ * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for readStream. + */ + com.google.protobuf.ByteString + getReadStreamBytes(); + + /** + *
+   * The offset requested must be less than the last row read from Read.
+   * Requesting a larger offset is undefined. If not specified, start reading
+   * from offset zero.
+   * 
+ * + * int64 offset = 2; + * @return The offset. + */ + long getOffset(); +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java similarity index 68% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java index 5904b2253a..a83d88d37e 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Response from calling `ReadRows` may include row data, progress and
  * throttling information.
@@ -28,56 +11,52 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadRowsResponse}
  */
-public final class ReadRowsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReadRowsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadRowsResponse)
     ReadRowsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReadRowsResponse.newBuilder() to construct.
   private ReadRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ReadRowsResponse() {}
+  private ReadRowsResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReadRowsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto
-        .internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto
-        .internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.ReadRowsResponse.class,
-            com.google.cloud.bigquery.storage.v1.ReadRowsResponse.Builder.class);
+            com.google.cloud.bigquery.storage.v1.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1.ReadRowsResponse.Builder.class);
   }
 
   private int rowsCase_ = 0;
   private java.lang.Object rows_;
-
   public enum RowsCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AVRO_ROWS(3),
     ARROW_RECORD_BATCH(4),
     ROWS_NOT_SET(0);
     private final int value;
-
     private RowsCase(int value) {
       this.value = value;
     }
@@ -93,38 +72,32 @@ public static RowsCase valueOf(int value) {
 
     public static RowsCase forNumber(int value) {
       switch (value) {
-        case 3:
-          return AVRO_ROWS;
-        case 4:
-          return ARROW_RECORD_BATCH;
-        case 0:
-          return ROWS_NOT_SET;
-        default:
-          return null;
+        case 3: return AVRO_ROWS;
+        case 4: return ARROW_RECORD_BATCH;
+        case 0: return ROWS_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RowsCase getRowsCase() {
-    return RowsCase.forNumber(rowsCase_);
+  public RowsCase
+  getRowsCase() {
+    return RowsCase.forNumber(
+        rowsCase_);
   }
 
   private int schemaCase_ = 0;
   private java.lang.Object schema_;
-
   public enum SchemaCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AVRO_SCHEMA(7),
     ARROW_SCHEMA(8),
     SCHEMA_NOT_SET(0);
     private final int value;
-
     private SchemaCase(int value) {
       this.value = value;
     }
@@ -140,36 +113,30 @@ public static SchemaCase valueOf(int value) {
 
     public static SchemaCase forNumber(int value) {
       switch (value) {
-        case 7:
-          return AVRO_SCHEMA;
-        case 8:
-          return ARROW_SCHEMA;
-        case 0:
-          return SCHEMA_NOT_SET;
-        default:
-          return null;
+        case 7: return AVRO_SCHEMA;
+        case 8: return ARROW_SCHEMA;
+        case 0: return SCHEMA_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SchemaCase getSchemaCase() {
-    return SchemaCase.forNumber(schemaCase_);
+  public SchemaCase
+  getSchemaCase() {
+    return SchemaCase.forNumber(
+        schemaCase_);
   }
 
   public static final int AVRO_ROWS_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; - * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -177,26 +144,21 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** - * - * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; - * * @return The avroRows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroRows getAvroRows() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1.AvroRows.getDefaultInstance(); } /** - * - * *
    * Serialized row data in AVRO format.
    * 
@@ -206,21 +168,18 @@ public com.google.cloud.bigquery.storage.v1.AvroRows getAvroRows() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder getAvroRowsOrBuilder() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1.AvroRows.getDefaultInstance(); } public static final int ARROW_RECORD_BATCH_FIELD_NUMBER = 4; /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; - * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -228,26 +187,21 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; - * * @return The arrowRecordBatch. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getArrowRecordBatch() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_; } return com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance(); } /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
@@ -255,10 +209,9 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getArrowRecordBatch * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder - getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_; } return com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance(); } @@ -266,14 +219,11 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getArrowRecordBatch public static final int ROW_COUNT_FIELD_NUMBER = 6; private long rowCount_ = 0L; /** - * - * *
    * Number of serialized rows in the rows block.
    * 
* * int64 row_count = 6; - * * @return The rowCount. */ @java.lang.Override @@ -284,14 +234,11 @@ public long getRowCount() { public static final int STATS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1.StreamStats stats_; /** - * - * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; - * * @return Whether the stats field is set. */ @java.lang.Override @@ -299,25 +246,18 @@ public boolean hasStats() { return stats_ != null; } /** - * - * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; - * * @return The stats. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStats getStats() { - return stats_ == null - ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() - : stats_; + return stats_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() : stats_; } /** - * - * *
    * Statistics for the stream.
    * 
@@ -326,23 +266,18 @@ public com.google.cloud.bigquery.storage.v1.StreamStats getStats() { */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder getStatsOrBuilder() { - return stats_ == null - ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() - : stats_; + return stats_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() : stats_; } public static final int THROTTLE_STATE_FIELD_NUMBER = 5; private com.google.cloud.bigquery.storage.v1.ThrottleState throttleState_; /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; - * * @return Whether the throttleState field is set. */ @java.lang.Override @@ -350,26 +285,19 @@ public boolean hasThrottleState() { return throttleState_ != null; } /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; - * * @return The throttleState. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ThrottleState getThrottleState() { - return throttleState_ == null - ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() - : throttleState_; + return throttleState_ == null ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() : throttleState_; } /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
@@ -379,23 +307,16 @@ public com.google.cloud.bigquery.storage.v1.ThrottleState getThrottleState() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder getThrottleStateOrBuilder() {
-    return throttleState_ == null
-        ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()
-        : throttleState_;
+    return throttleState_ == null ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() : throttleState_;
   }
 
   public static final int AVRO_SCHEMA_FIELD_NUMBER = 7;
   /**
-   *
-   *
    * 
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -403,56 +324,42 @@ public boolean hasAvroSchema() { return schemaCase_ == 7; } /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema() { if (schemaCase_ == 7) { - return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { if (schemaCase_ == 7) { - return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } public static final int ARROW_SCHEMA_FIELD_NUMBER = 8; /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -460,46 +367,36 @@ public boolean hasArrowSchema() { return schemaCase_ == 8; } /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema() { if (schemaCase_ == 8) { - return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if (schemaCase_ == 8) { - return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -511,7 +408,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (stats_ != null) { output.writeMessage(2, getStats()); } @@ -543,33 +441,32 @@ public int getSerializedSize() { size = 0; if (stats_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStats()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStats()); } if (rowsCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.bigquery.storage.v1.AvroRows) rows_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.bigquery.storage.v1.AvroRows) rows_); } if (rowsCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_); } if (throttleState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getThrottleState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getThrottleState()); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, rowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, rowCount_); } if (schemaCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_); } if (schemaCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -579,30 +476,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadRowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadRowsResponse other = - (com.google.cloud.bigquery.storage.v1.ReadRowsResponse) obj; + com.google.cloud.bigquery.storage.v1.ReadRowsResponse other = (com.google.cloud.bigquery.storage.v1.ReadRowsResponse) obj; - if (getRowCount() != other.getRowCount()) return false; + if (getRowCount() + != other.getRowCount()) return false; if (hasStats() != other.hasStats()) return false; if (hasStats()) { - if (!getStats().equals(other.getStats())) return false; + if (!getStats() + .equals(other.getStats())) return false; } if (hasThrottleState() != other.hasThrottleState()) return false; if (hasThrottleState()) { - if (!getThrottleState().equals(other.getThrottleState())) return false; + if (!getThrottleState() + .equals(other.getThrottleState())) return false; } if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 3: - if (!getAvroRows().equals(other.getAvroRows())) return false; + if (!getAvroRows() + .equals(other.getAvroRows())) return false; break; case 4: - if (!getArrowRecordBatch().equals(other.getArrowRecordBatch())) return false; + if (!getArrowRecordBatch() + .equals(other.getArrowRecordBatch())) return false; break; case 0: default: @@ -610,10 +511,12 @@ public boolean equals(final java.lang.Object obj) { if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 7: - if (!getAvroSchema().equals(other.getAvroSchema())) return false; + if (!getAvroSchema() + .equals(other.getAvroSchema())) return false; break; case 8: - if (!getArrowSchema().equals(other.getArrowSchema())) return false; + if (!getArrowSchema() + .equals(other.getArrowSchema())) return false; break; case 0: default: @@ -630,7 +533,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRowCount()); if (hasStats()) { hash = (37 * hash) + STATS_FIELD_NUMBER; hash = (53 * hash) + getStats().hashCode(); @@ -669,104 +573,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.ReadRowsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadRowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response from calling `ReadRows` may include row data, progress and
    * throttling information.
@@ -774,32 +670,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadRowsResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadRowsResponse)
       com.google.cloud.bigquery.storage.v1.ReadRowsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.ReadRowsResponse.class,
-              com.google.cloud.bigquery.storage.v1.ReadRowsResponse.Builder.class);
+              com.google.cloud.bigquery.storage.v1.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1.ReadRowsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.ReadRowsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -835,9 +732,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -856,11 +753,8 @@ public com.google.cloud.bigquery.storage.v1.ReadRowsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.ReadRowsResponse buildPartial() {
-      com.google.cloud.bigquery.storage.v1.ReadRowsResponse result =
-          new com.google.cloud.bigquery.storage.v1.ReadRowsResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.storage.v1.ReadRowsResponse result = new com.google.cloud.bigquery.storage.v1.ReadRowsResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -872,29 +766,36 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadRowsResponse
         result.rowCount_ = rowCount_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build();
+        result.stats_ = statsBuilder_ == null
+            ? stats_
+            : statsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.throttleState_ =
-            throttleStateBuilder_ == null ? throttleState_ : throttleStateBuilder_.build();
+        result.throttleState_ = throttleStateBuilder_ == null
+            ? throttleState_
+            : throttleStateBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadRowsResponse result) {
       result.rowsCase_ = rowsCase_;
       result.rows_ = this.rows_;
-      if (rowsCase_ == 3 && avroRowsBuilder_ != null) {
+      if (rowsCase_ == 3 &&
+          avroRowsBuilder_ != null) {
         result.rows_ = avroRowsBuilder_.build();
       }
-      if (rowsCase_ == 4 && arrowRecordBatchBuilder_ != null) {
+      if (rowsCase_ == 4 &&
+          arrowRecordBatchBuilder_ != null) {
         result.rows_ = arrowRecordBatchBuilder_.build();
       }
       result.schemaCase_ = schemaCase_;
       result.schema_ = this.schema_;
-      if (schemaCase_ == 7 && avroSchemaBuilder_ != null) {
+      if (schemaCase_ == 7 &&
+          avroSchemaBuilder_ != null) {
         result.schema_ = avroSchemaBuilder_.build();
       }
-      if (schemaCase_ == 8 && arrowSchemaBuilder_ != null) {
+      if (schemaCase_ == 8 &&
+          arrowSchemaBuilder_ != null) {
         result.schema_ = arrowSchemaBuilder_.build();
       }
     }
@@ -903,39 +804,38 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadRowsRes
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.ReadRowsResponse) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadRowsResponse) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadRowsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -943,8 +843,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadRowsResponse other) {
-      if (other == com.google.cloud.bigquery.storage.v1.ReadRowsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.storage.v1.ReadRowsResponse.getDefaultInstance()) return this;
       if (other.getRowCount() != 0L) {
         setRowCount(other.getRowCount());
       }
@@ -955,36 +854,30 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadRowsResponse o
         mergeThrottleState(other.getThrottleState());
       }
       switch (other.getRowsCase()) {
-        case AVRO_ROWS:
-          {
-            mergeAvroRows(other.getAvroRows());
-            break;
-          }
-        case ARROW_RECORD_BATCH:
-          {
-            mergeArrowRecordBatch(other.getArrowRecordBatch());
-            break;
-          }
-        case ROWS_NOT_SET:
-          {
-            break;
-          }
+        case AVRO_ROWS: {
+          mergeAvroRows(other.getAvroRows());
+          break;
+        }
+        case ARROW_RECORD_BATCH: {
+          mergeArrowRecordBatch(other.getArrowRecordBatch());
+          break;
+        }
+        case ROWS_NOT_SET: {
+          break;
+        }
       }
       switch (other.getSchemaCase()) {
-        case AVRO_SCHEMA:
-          {
-            mergeAvroSchema(other.getAvroSchema());
-            break;
-          }
-        case ARROW_SCHEMA:
-          {
-            mergeArrowSchema(other.getArrowSchema());
-            break;
-          }
-        case SCHEMA_NOT_SET:
-          {
-            break;
-          }
+        case AVRO_SCHEMA: {
+          mergeAvroSchema(other.getAvroSchema());
+          break;
+        }
+        case ARROW_SCHEMA: {
+          mergeArrowSchema(other.getArrowSchema());
+          break;
+        }
+        case SCHEMA_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1012,56 +905,59 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getAvroRowsFieldBuilder().getBuilder(), extensionRegistry);
-                rowsCase_ = 3;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(
-                    getArrowRecordBatchFieldBuilder().getBuilder(), extensionRegistry);
-                rowsCase_ = 4;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getThrottleStateFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 48:
-              {
-                rowCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 48
-            case 58:
-              {
-                input.readMessage(getAvroSchemaFieldBuilder().getBuilder(), extensionRegistry);
-                schemaCase_ = 7;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getArrowSchemaFieldBuilder().getBuilder(), extensionRegistry);
-                schemaCase_ = 8;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              input.readMessage(
+                  getStatsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getAvroRowsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              rowsCase_ = 3;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getArrowRecordBatchFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              rowsCase_ = 4;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getThrottleStateFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 48: {
+              rowCount_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 48
+            case 58: {
+              input.readMessage(
+                  getAvroSchemaFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              schemaCase_ = 7;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getArrowSchemaFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              schemaCase_ = 8;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1071,12 +967,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int rowsCase_ = 0;
     private java.lang.Object rows_;
-
-    public RowsCase getRowsCase() {
-      return RowsCase.forNumber(rowsCase_);
+    public RowsCase
+        getRowsCase() {
+      return RowsCase.forNumber(
+          rowsCase_);
     }
 
     public Builder clearRows() {
@@ -1088,9 +984,10 @@ public Builder clearRows() {
 
     private int schemaCase_ = 0;
     private java.lang.Object schema_;
-
-    public SchemaCase getSchemaCase() {
-      return SchemaCase.forNumber(schemaCase_);
+    public SchemaCase
+        getSchemaCase() {
+      return SchemaCase.forNumber(
+          schemaCase_);
     }
 
     public Builder clearSchema() {
@@ -1103,19 +1000,13 @@ public Builder clearSchema() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.AvroRows,
-            com.google.cloud.bigquery.storage.v1.AvroRows.Builder,
-            com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder>
-        avroRowsBuilder_;
+        com.google.cloud.bigquery.storage.v1.AvroRows, com.google.cloud.bigquery.storage.v1.AvroRows.Builder, com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder> avroRowsBuilder_;
     /**
-     *
-     *
      * 
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; - * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -1123,14 +1014,11 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; - * * @return The avroRows. */ @java.lang.Override @@ -1148,8 +1036,6 @@ public com.google.cloud.bigquery.storage.v1.AvroRows getAvroRows() { } } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1170,8 +1056,6 @@ public Builder setAvroRows(com.google.cloud.bigquery.storage.v1.AvroRows value) return this; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1190,8 +1074,6 @@ public Builder setAvroRows( return this; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1200,13 +1082,10 @@ public Builder setAvroRows( */ public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1.AvroRows value) { if (avroRowsBuilder_ == null) { - if (rowsCase_ == 3 - && rows_ != com.google.cloud.bigquery.storage.v1.AvroRows.getDefaultInstance()) { - rows_ = - com.google.cloud.bigquery.storage.v1.AvroRows.newBuilder( - (com.google.cloud.bigquery.storage.v1.AvroRows) rows_) - .mergeFrom(value) - .buildPartial(); + if (rowsCase_ == 3 && + rows_ != com.google.cloud.bigquery.storage.v1.AvroRows.getDefaultInstance()) { + rows_ = com.google.cloud.bigquery.storage.v1.AvroRows.newBuilder((com.google.cloud.bigquery.storage.v1.AvroRows) rows_) + .mergeFrom(value).buildPartial(); } else { rows_ = value; } @@ -1222,8 +1101,6 @@ public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1.AvroRows value return this; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1247,8 +1124,6 @@ public Builder clearAvroRows() { return this; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1259,8 +1134,6 @@ public com.google.cloud.bigquery.storage.v1.AvroRows.Builder getAvroRowsBuilder( return getAvroRowsFieldBuilder().getBuilder(); } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1279,8 +1152,6 @@ public com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder getAvroRowsOrBuild } } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1288,19 +1159,14 @@ public com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder getAvroRowsOrBuild * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroRows, - com.google.cloud.bigquery.storage.v1.AvroRows.Builder, - com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder> + com.google.cloud.bigquery.storage.v1.AvroRows, com.google.cloud.bigquery.storage.v1.AvroRows.Builder, com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder> getAvroRowsFieldBuilder() { if (avroRowsBuilder_ == null) { if (!(rowsCase_ == 3)) { rows_ = com.google.cloud.bigquery.storage.v1.AvroRows.getDefaultInstance(); } - avroRowsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroRows, - com.google.cloud.bigquery.storage.v1.AvroRows.Builder, - com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder>( + avroRowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AvroRows, com.google.cloud.bigquery.storage.v1.AvroRows.Builder, com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder>( (com.google.cloud.bigquery.storage.v1.AvroRows) rows_, getParentForChildren(), isClean()); @@ -1312,19 +1178,13 @@ public com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder getAvroRowsOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, - com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder> - arrowRecordBatchBuilder_; + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder> arrowRecordBatchBuilder_; /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; - * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -1332,14 +1192,11 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; - * * @return The arrowRecordBatch. */ @java.lang.Override @@ -1357,16 +1214,13 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getArrowRecordBatch } } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ - public Builder setArrowRecordBatch( - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch value) { + public Builder setArrowRecordBatch(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1380,8 +1234,6 @@ public Builder setArrowRecordBatch( return this; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1400,25 +1252,18 @@ public Builder setArrowRecordBatch( return this; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ - public Builder mergeArrowRecordBatch( - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch value) { + public Builder mergeArrowRecordBatch(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { - if (rowsCase_ == 4 - && rows_ - != com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance()) { - rows_ = - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.newBuilder( - (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_) - .mergeFrom(value) - .buildPartial(); + if (rowsCase_ == 4 && + rows_ != com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance()) { + rows_ = com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.newBuilder((com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_) + .mergeFrom(value).buildPartial(); } else { rows_ = value; } @@ -1434,8 +1279,6 @@ public Builder mergeArrowRecordBatch( return this; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1459,21 +1302,16 @@ public Builder clearArrowRecordBatch() { return this; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ - public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder - getArrowRecordBatchBuilder() { + public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder getArrowRecordBatchBuilder() { return getArrowRecordBatchFieldBuilder().getBuilder(); } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1481,8 +1319,7 @@ public Builder clearArrowRecordBatch() { * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder - getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { if ((rowsCase_ == 4) && (arrowRecordBatchBuilder_ != null)) { return arrowRecordBatchBuilder_.getMessageOrBuilder(); } else { @@ -1493,8 +1330,6 @@ public Builder clearArrowRecordBatch() { } } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1502,19 +1337,14 @@ public Builder clearArrowRecordBatch() { * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, - com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder> + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder> getArrowRecordBatchFieldBuilder() { if (arrowRecordBatchBuilder_ == null) { if (!(rowsCase_ == 4)) { rows_ = com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance(); } - arrowRecordBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, - com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder>( + arrowRecordBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder>( (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_, getParentForChildren(), isClean()); @@ -1525,16 +1355,13 @@ public Builder clearArrowRecordBatch() { return arrowRecordBatchBuilder_; } - private long rowCount_; + private long rowCount_ ; /** - * - * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; - * * @return The rowCount. */ @java.lang.Override @@ -1542,33 +1369,27 @@ public long getRowCount() { return rowCount_; } /** - * - * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; - * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; - * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -1580,47 +1401,34 @@ public Builder clearRowCount() { private com.google.cloud.bigquery.storage.v1.StreamStats stats_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats, - com.google.cloud.bigquery.storage.v1.StreamStats.Builder, - com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder> - statsBuilder_; + com.google.cloud.bigquery.storage.v1.StreamStats, com.google.cloud.bigquery.storage.v1.StreamStats.Builder, com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder> statsBuilder_; /** - * - * *
      * Statistics for the stream.
      * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; - * * @return Whether the stats field is set. */ public boolean hasStats() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Statistics for the stream.
      * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; - * * @return The stats. */ public com.google.cloud.bigquery.storage.v1.StreamStats getStats() { if (statsBuilder_ == null) { - return stats_ == null - ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() - : stats_; + return stats_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() : stats_; } else { return statsBuilder_.getMessage(); } } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1641,8 +1449,6 @@ public Builder setStats(com.google.cloud.bigquery.storage.v1.StreamStats value) return this; } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1661,8 +1467,6 @@ public Builder setStats( return this; } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1671,9 +1475,9 @@ public Builder setStats( */ public Builder mergeStats(com.google.cloud.bigquery.storage.v1.StreamStats value) { if (statsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && stats_ != null - && stats_ != com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + stats_ != null && + stats_ != com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance()) { getStatsBuilder().mergeFrom(value); } else { stats_ = value; @@ -1686,8 +1490,6 @@ public Builder mergeStats(com.google.cloud.bigquery.storage.v1.StreamStats value return this; } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1705,8 +1507,6 @@ public Builder clearStats() { return this; } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1719,8 +1519,6 @@ public com.google.cloud.bigquery.storage.v1.StreamStats.Builder getStatsBuilder( return getStatsFieldBuilder().getBuilder(); } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1731,14 +1529,11 @@ public com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder getStatsOrBuild if (statsBuilder_ != null) { return statsBuilder_.getMessageOrBuilder(); } else { - return stats_ == null - ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() - : stats_; + return stats_ == null ? + com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() : stats_; } } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1746,17 +1541,14 @@ public com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder getStatsOrBuild * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats, - com.google.cloud.bigquery.storage.v1.StreamStats.Builder, - com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder> + com.google.cloud.bigquery.storage.v1.StreamStats, com.google.cloud.bigquery.storage.v1.StreamStats.Builder, com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder> getStatsFieldBuilder() { if (statsBuilder_ == null) { - statsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats, - com.google.cloud.bigquery.storage.v1.StreamStats.Builder, - com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder>( - getStats(), getParentForChildren(), isClean()); + statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.StreamStats, com.google.cloud.bigquery.storage.v1.StreamStats.Builder, com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder>( + getStats(), + getParentForChildren(), + isClean()); stats_ = null; } return statsBuilder_; @@ -1764,49 +1556,36 @@ public com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder getStatsOrBuild private com.google.cloud.bigquery.storage.v1.ThrottleState throttleState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ThrottleState, - com.google.cloud.bigquery.storage.v1.ThrottleState.Builder, - com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder> - throttleStateBuilder_; + com.google.cloud.bigquery.storage.v1.ThrottleState, com.google.cloud.bigquery.storage.v1.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder> throttleStateBuilder_; /** - * - * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; - * * @return Whether the throttleState field is set. */ public boolean hasThrottleState() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; - * * @return The throttleState. */ public com.google.cloud.bigquery.storage.v1.ThrottleState getThrottleState() { if (throttleStateBuilder_ == null) { - return throttleState_ == null - ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() - : throttleState_; + return throttleState_ == null ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() : throttleState_; } else { return throttleStateBuilder_.getMessage(); } } /** - * - * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1828,8 +1607,6 @@ public Builder setThrottleState(com.google.cloud.bigquery.storage.v1.ThrottleSta
       return this;
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1849,8 +1626,6 @@ public Builder setThrottleState(
       return this;
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1860,10 +1635,9 @@ public Builder setThrottleState(
      */
     public Builder mergeThrottleState(com.google.cloud.bigquery.storage.v1.ThrottleState value) {
       if (throttleStateBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && throttleState_ != null
-            && throttleState_
-                != com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          throttleState_ != null &&
+          throttleState_ != com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()) {
           getThrottleStateBuilder().mergeFrom(value);
         } else {
           throttleState_ = value;
@@ -1876,8 +1650,6 @@ public Builder mergeThrottleState(com.google.cloud.bigquery.storage.v1.ThrottleS
       return this;
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1896,8 +1668,6 @@ public Builder clearThrottleState() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1911,8 +1681,6 @@ public com.google.cloud.bigquery.storage.v1.ThrottleState.Builder getThrottleSta
       return getThrottleStateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1924,14 +1692,11 @@ public com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder getThrottleSt
       if (throttleStateBuilder_ != null) {
         return throttleStateBuilder_.getMessageOrBuilder();
       } else {
-        return throttleState_ == null
-            ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()
-            : throttleState_;
+        return throttleState_ == null ?
+            com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() : throttleState_;
       }
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1940,38 +1705,27 @@ public com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder getThrottleSt
      * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.ThrottleState,
-            com.google.cloud.bigquery.storage.v1.ThrottleState.Builder,
-            com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder>
+        com.google.cloud.bigquery.storage.v1.ThrottleState, com.google.cloud.bigquery.storage.v1.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder> 
         getThrottleStateFieldBuilder() {
       if (throttleStateBuilder_ == null) {
-        throttleStateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1.ThrottleState,
-                com.google.cloud.bigquery.storage.v1.ThrottleState.Builder,
-                com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder>(
-                getThrottleState(), getParentForChildren(), isClean());
+        throttleStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1.ThrottleState, com.google.cloud.bigquery.storage.v1.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder>(
+                getThrottleState(),
+                getParentForChildren(),
+                isClean());
         throttleState_ = null;
       }
       return throttleStateBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.AvroSchema,
-            com.google.cloud.bigquery.storage.v1.AvroSchema.Builder,
-            com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder>
-        avroSchemaBuilder_;
+        com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> avroSchemaBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -1979,16 +1733,11 @@ public boolean hasAvroSchema() { return schemaCase_ == 7; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ @java.lang.Override @@ -2006,15 +1755,11 @@ public com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema() { } } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema value) { if (avroSchemaBuilder_ == null) { @@ -2030,15 +1775,11 @@ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema val return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAvroSchema( com.google.cloud.bigquery.storage.v1.AvroSchema.Builder builderForValue) { @@ -2052,25 +1793,18 @@ public Builder setAvroSchema( return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema value) { if (avroSchemaBuilder_ == null) { - if (schemaCase_ == 7 - && schema_ != com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.bigquery.storage.v1.AvroSchema.newBuilder( - (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 7 && + schema_ != com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) { + schema_ = com.google.cloud.bigquery.storage.v1.AvroSchema.newBuilder((com.google.cloud.bigquery.storage.v1.AvroSchema) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -2086,15 +1820,11 @@ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema v return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAvroSchema() { if (avroSchemaBuilder_ == null) { @@ -2113,29 +1843,21 @@ public Builder clearAvroSchema() { return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1.AvroSchema.Builder getAvroSchemaBuilder() { return getAvroSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { @@ -2149,30 +1871,21 @@ public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrB } } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSchema, - com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> getAvroSchemaFieldBuilder() { if (avroSchemaBuilder_ == null) { if (!(schemaCase_ == 7)) { schema_ = com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } - avroSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSchema, - com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder>( + avroSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_, getParentForChildren(), isClean()); @@ -2184,21 +1897,13 @@ public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, - com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> - arrowSchemaBuilder_; + com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> arrowSchemaBuilder_; /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -2206,16 +1911,11 @@ public boolean hasArrowSchema() { return schemaCase_ == 8; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ @java.lang.Override @@ -2233,15 +1933,11 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema() { } } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { @@ -2257,15 +1953,11 @@ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema v return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setArrowSchema( com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder builderForValue) { @@ -2279,25 +1971,18 @@ public Builder setArrowSchema( return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { - if (schemaCase_ == 8 - && schema_ != com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.bigquery.storage.v1.ArrowSchema.newBuilder( - (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 8 && + schema_ != com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance()) { + schema_ = com.google.cloud.bigquery.storage.v1.ArrowSchema.newBuilder((com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -2313,15 +1998,11 @@ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearArrowSchema() { if (arrowSchemaBuilder_ == null) { @@ -2340,29 +2021,21 @@ public Builder clearArrowSchema() { return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder getArrowSchemaBuilder() { return getArrowSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { @@ -2376,30 +2049,21 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaO } } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, - com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> getArrowSchemaFieldBuilder() { if (arrowSchemaBuilder_ == null) { if (!(schemaCase_ == 8)) { schema_ = com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } - arrowSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, - com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder>( + arrowSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_, getParentForChildren(), isClean()); @@ -2409,9 +2073,9 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaO onChanged(); return arrowSchemaBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2421,12 +2085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadRowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadRowsResponse) private static final com.google.cloud.bigquery.storage.v1.ReadRowsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadRowsResponse(); } @@ -2435,27 +2099,27 @@ public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadRowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2470,4 +2134,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ReadRowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java index 18a490ad63..547f7fccd0 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface ReadRowsResponseOrBuilder - extends +public interface ReadRowsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadRowsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; - * * @return Whether the avroRows field is set. */ boolean hasAvroRows(); /** - * - * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; - * * @return The avroRows. */ com.google.cloud.bigquery.storage.v1.AvroRows getAvroRows(); /** - * - * *
    * Serialized row data in AVRO format.
    * 
@@ -59,32 +35,24 @@ public interface ReadRowsResponseOrBuilder com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder getAvroRowsOrBuilder(); /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; - * * @return Whether the arrowRecordBatch field is set. */ boolean hasArrowRecordBatch(); /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; - * * @return The arrowRecordBatch. */ com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getArrowRecordBatch(); /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
@@ -94,45 +62,34 @@ public interface ReadRowsResponseOrBuilder com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder(); /** - * - * *
    * Number of serialized rows in the rows block.
    * 
* * int64 row_count = 6; - * * @return The rowCount. */ long getRowCount(); /** - * - * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; - * * @return Whether the stats field is set. */ boolean hasStats(); /** - * - * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; - * * @return The stats. */ com.google.cloud.bigquery.storage.v1.StreamStats getStats(); /** - * - * *
    * Statistics for the stream.
    * 
@@ -142,34 +99,26 @@ public interface ReadRowsResponseOrBuilder com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder getStatsOrBuilder(); /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; - * * @return Whether the throttleState field is set. */ boolean hasThrottleState(); /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; - * * @return The throttleState. */ com.google.cloud.bigquery.storage.v1.ThrottleState getThrottleState(); /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
@@ -180,84 +129,56 @@ public interface ReadRowsResponseOrBuilder
   com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder getThrottleStateOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ boolean hasAvroSchema(); /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema(); /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ boolean hasArrowSchema(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder(); diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java similarity index 70% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java index b334cb75a5..706859361b 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Information about the ReadSession.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession} */ -public final class ReadSession extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReadSession extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadSession) ReadSessionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReadSession.newBuilder() to construct. private ReadSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadSession() { name_ = ""; dataFormat_ = 0; @@ -47,62 +29,52 @@ private ReadSession() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadSession(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.class, - com.google.cloud.bigquery.storage.v1.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.class, com.google.cloud.bigquery.storage.v1.ReadSession.Builder.class); } - public interface TableModifiersOrBuilder - extends + public interface TableModifiersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return Whether the snapshotTime field is set. */ boolean hasSnapshotTime(); /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return The snapshotTime. */ com.google.protobuf.Timestamp getSnapshotTime(); /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -112,63 +84,57 @@ public interface TableModifiersOrBuilder com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder(); } /** - * - * *
    * Additional attributes when reading a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession.TableModifiers} */ - public static final class TableModifiers extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TableModifiers extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) TableModifiersOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableModifiers.newBuilder() to construct. private TableModifiers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TableModifiers() {} + private TableModifiers() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableModifiers(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.class, - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.class, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder.class); } public static final int SNAPSHOT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp snapshotTime_; /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return Whether the snapshotTime field is set. */ @java.lang.Override @@ -176,25 +142,18 @@ public boolean hasSnapshotTime() { return snapshotTime_ != null; } /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return The snapshotTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSnapshotTime() { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -203,13 +162,10 @@ public com.google.protobuf.Timestamp getSnapshotTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (snapshotTime_ != null) { output.writeMessage(1, getSnapshotTime()); } @@ -235,7 +192,8 @@ public int getSerializedSize() { size = 0; if (snapshotTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshotTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnapshotTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -245,17 +203,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers other = - (com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) obj; + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers other = (com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) obj; if (hasSnapshotTime() != other.hasSnapshotTime()) return false; if (hasSnapshotTime()) { - if (!getSnapshotTime().equals(other.getSnapshotTime())) return false; + if (!getSnapshotTime() + .equals(other.getSnapshotTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -278,95 +236,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -376,42 +326,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Additional attributes when reading a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession.TableModifiers} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.class, - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.class, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -425,14 +372,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance(); } @@ -447,21 +393,18 @@ public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers buildPartial() { - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers result = - new com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers result = new com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.snapshotTime_ = - snapshotTimeBuilder_ == null ? snapshotTime_ : snapshotTimeBuilder_.build(); + result.snapshotTime_ = snapshotTimeBuilder_ == null + ? snapshotTime_ + : snapshotTimeBuilder_.build(); } } @@ -469,52 +412,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers other) { - if (other - == com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers other) { + if (other == com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance()) return this; if (other.hasSnapshotTime()) { mergeSnapshotTime(other.getSnapshotTime()); } @@ -544,19 +481,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSnapshotTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSnapshotTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -566,52 +503,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp snapshotTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - snapshotTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> snapshotTimeBuilder_; /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return Whether the snapshotTime field is set. */ public boolean hasSnapshotTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return The snapshotTime. */ public com.google.protobuf.Timestamp getSnapshotTime() { if (snapshotTimeBuilder_ == null) { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } else { return snapshotTimeBuilder_.getMessage(); } } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -632,15 +555,14 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; */ - public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSnapshotTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (snapshotTimeBuilder_ == null) { snapshotTime_ = builderForValue.build(); } else { @@ -651,8 +573,6 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -661,9 +581,9 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { if (snapshotTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && snapshotTime_ != null - && snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + snapshotTime_ != null && + snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSnapshotTimeBuilder().mergeFrom(value); } else { snapshotTime_ = value; @@ -676,8 +596,6 @@ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -695,8 +613,6 @@ public Builder clearSnapshotTime() { return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -709,8 +625,6 @@ public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { return getSnapshotTimeFieldBuilder().getBuilder(); } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -721,14 +635,11 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { if (snapshotTimeBuilder_ != null) { return snapshotTimeBuilder_.getMessageOrBuilder(); } else { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -736,22 +647,18 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { * .google.protobuf.Timestamp snapshot_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSnapshotTimeFieldBuilder() { if (snapshotTimeBuilder_ == null) { - snapshotTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSnapshotTime(), getParentForChildren(), isClean()); + snapshotTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSnapshotTime(), + getParentForChildren(), + isClean()); snapshotTime_ = null; } return snapshotTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -764,44 +671,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) - private static final com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers(); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableModifiers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableModifiers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,20 +717,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TableReadOptionsOrBuilder - extends + public interface TableReadOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -870,13 +771,11 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @return A list containing the selectedFields. */ - java.util.List getSelectedFieldsList(); + java.util.List + getSelectedFieldsList(); /** - * - * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -920,13 +819,10 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @return The count of selectedFields. */ int getSelectedFieldsCount(); /** - * - * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -970,14 +866,11 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the element to return. * @return The selectedFields at the given index. */ java.lang.String getSelectedFields(int index); /** - * - * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -1021,15 +914,13 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - com.google.protobuf.ByteString getSelectedFieldsBytes(int index); + com.google.protobuf.ByteString + getSelectedFieldsBytes(int index); /** - * - * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -1042,13 +933,10 @@ public interface TableReadOptionsOrBuilder
      * 
* * string row_restriction = 2; - * * @return The rowRestriction. */ java.lang.String getRowRestriction(); /** - * - * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -1061,118 +949,83 @@ public interface TableReadOptionsOrBuilder
      * 
* * string row_restriction = 2; - * * @return The bytes for rowRestriction. */ - com.google.protobuf.ByteString getRowRestrictionBytes(); + com.google.protobuf.ByteString + getRowRestrictionBytes(); /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the arrowSerializationOptions field is set. */ boolean hasArrowSerializationOptions(); /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The arrowSerializationOptions. */ com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getArrowSerializationOptions(); /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder - getArrowSerializationOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder(); /** - * - * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the avroSerializationOptions field is set. */ boolean hasAvroSerializationOptions(); /** - * - * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The avroSerializationOptions. */ com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getAvroSerializationOptions(); /** - * - * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder - getAvroSerializationOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder getAvroSerializationOptionsOrBuilder(); - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions - .OutputFormatSerializationOptionsCase - getOutputFormatSerializationOptionsCase(); + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase(); } /** - * - * *
    * Options dictating how we read a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions} */ - public static final class TableReadOptions extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TableReadOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) TableReadOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableReadOptions.newBuilder() to construct. private TableReadOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableReadOptions() { selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; rowRestriction_ = ""; @@ -1180,42 +1033,38 @@ private TableReadOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableReadOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.class, - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.class, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder.class); } private int outputFormatSerializationOptionsCase_ = 0; private java.lang.Object outputFormatSerializationOptions_; - public enum OutputFormatSerializationOptionsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ARROW_SERIALIZATION_OPTIONS(3), AVRO_SERIALIZATION_OPTIONS(4), OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET(0); private final int value; - private OutputFormatSerializationOptionsCase(int value) { this.value = value; } @@ -1231,33 +1080,27 @@ public static OutputFormatSerializationOptionsCase valueOf(int value) { public static OutputFormatSerializationOptionsCase forNumber(int value) { switch (value) { - case 3: - return ARROW_SERIALIZATION_OPTIONS; - case 4: - return AVRO_SERIALIZATION_OPTIONS; - case 0: - return OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET; - default: - return null; + case 3: return ARROW_SERIALIZATION_OPTIONS; + case 4: return AVRO_SERIALIZATION_OPTIONS; + case 0: return OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase() { - return OutputFormatSerializationOptionsCase.forNumber(outputFormatSerializationOptionsCase_); + public OutputFormatSerializationOptionsCase + getOutputFormatSerializationOptionsCase() { + return OutputFormatSerializationOptionsCase.forNumber( + outputFormatSerializationOptionsCase_); } public static final int SELECTED_FIELDS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList selectedFields_; /** - * - * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -1301,15 +1144,13 @@ public OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsC
      * 
* * repeated string selected_fields = 1; - * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList + getSelectedFieldsList() { return selectedFields_; } /** - * - * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -1353,15 +1194,12 @@ public com.google.protobuf.ProtocolStringList getSelectedFieldsList() {
      * 
* * repeated string selected_fields = 1; - * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** - * - * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -1405,7 +1243,6 @@ public int getSelectedFieldsCount() {
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -1413,8 +1250,6 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** - * - * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -1458,21 +1293,18 @@ public java.lang.String getSelectedFields(int index) {
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString + getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } public static final int ROW_RESTRICTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object rowRestriction_ = ""; /** - * - * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -1485,7 +1317,6 @@ public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) {
      * 
* * string row_restriction = 2; - * * @return The rowRestriction. */ @java.lang.Override @@ -1494,15 +1325,14 @@ public java.lang.String getRowRestriction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; } } /** - * - * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -1515,15 +1345,16 @@ public java.lang.String getRowRestriction() {
      * 
* * string row_restriction = 2; - * * @return The bytes for rowRestriction. */ @java.lang.Override - public com.google.protobuf.ByteString getRowRestrictionBytes() { + public com.google.protobuf.ByteString + getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -1533,16 +1364,11 @@ public com.google.protobuf.ByteString getRowRestrictionBytes() { public static final int ARROW_SERIALIZATION_OPTIONS_FIELD_NUMBER = 3; /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the arrowSerializationOptions field is set. */ @java.lang.Override @@ -1550,60 +1376,42 @@ public boolean hasArrowSerializationOptions() { return outputFormatSerializationOptionsCase_ == 3; } /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The arrowSerializationOptions. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions - getArrowSerializationOptions() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getArrowSerializationOptions() { if (outputFormatSerializationOptionsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder - getArrowSerializationOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder() { if (outputFormatSerializationOptionsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } public static final int AVRO_SERIALIZATION_OPTIONS_FIELD_NUMBER = 4; /** - * - * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the avroSerializationOptions field is set. */ @java.lang.Override @@ -1611,50 +1419,36 @@ public boolean hasAvroSerializationOptions() { return outputFormatSerializationOptionsCase_ == 4; } /** - * - * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The avroSerializationOptions. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions - getAvroSerializationOptions() { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getAvroSerializationOptions() { if (outputFormatSerializationOptionsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) - outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } /** - * - * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder - getAvroSerializationOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder getAvroSerializationOptionsOrBuilder() { if (outputFormatSerializationOptionsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) - outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1666,7 +1460,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < selectedFields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectedFields_.getRaw(i)); } @@ -1674,16 +1469,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rowRestriction_); } if (outputFormatSerializationOptionsCase_ == 3) { - output.writeMessage( - 3, - (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - outputFormatSerializationOptions_); + output.writeMessage(3, (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_); } if (outputFormatSerializationOptionsCase_ == 4) { - output.writeMessage( - 4, - (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) - outputFormatSerializationOptions_); + output.writeMessage(4, (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_); } getUnknownFields().writeTo(output); } @@ -1706,18 +1495,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rowRestriction_); } if (outputFormatSerializationOptionsCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - outputFormatSerializationOptions_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_); } if (outputFormatSerializationOptionsCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) - outputFormatSerializationOptions_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1727,26 +1510,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions other = - (com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) obj; + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions other = (com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) obj; - if (!getSelectedFieldsList().equals(other.getSelectedFieldsList())) return false; - if (!getRowRestriction().equals(other.getRowRestriction())) return false; - if (!getOutputFormatSerializationOptionsCase() - .equals(other.getOutputFormatSerializationOptionsCase())) return false; + if (!getSelectedFieldsList() + .equals(other.getSelectedFieldsList())) return false; + if (!getRowRestriction() + .equals(other.getRowRestriction())) return false; + if (!getOutputFormatSerializationOptionsCase().equals(other.getOutputFormatSerializationOptionsCase())) return false; switch (outputFormatSerializationOptionsCase_) { case 3: - if (!getArrowSerializationOptions().equals(other.getArrowSerializationOptions())) - return false; + if (!getArrowSerializationOptions() + .equals(other.getArrowSerializationOptions())) return false; break; case 4: - if (!getAvroSerializationOptions().equals(other.getAvroSerializationOptions())) - return false; + if (!getAvroSerializationOptions() + .equals(other.getAvroSerializationOptions())) return false; break; case 0: default: @@ -1786,95 +1569,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1884,42 +1659,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Options dictating how we read a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.class, - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.class, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1939,16 +1711,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance(); } @java.lang.Override @@ -1962,19 +1732,15 @@ public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions build() @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions buildPartial() { - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result = - new com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions(this); + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result = new com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { if (((bitField0_ & 0x00000001) != 0)) { selectedFields_ = selectedFields_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -1982,24 +1748,22 @@ private void buildPartialRepeatedFields( result.selectedFields_ = selectedFields_; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.rowRestriction_ = rowRestriction_; } } - private void buildPartialOneofs( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { + private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { result.outputFormatSerializationOptionsCase_ = outputFormatSerializationOptionsCase_; result.outputFormatSerializationOptions_ = this.outputFormatSerializationOptions_; - if (outputFormatSerializationOptionsCase_ == 3 - && arrowSerializationOptionsBuilder_ != null) { + if (outputFormatSerializationOptionsCase_ == 3 && + arrowSerializationOptionsBuilder_ != null) { result.outputFormatSerializationOptions_ = arrowSerializationOptionsBuilder_.build(); } - if (outputFormatSerializationOptionsCase_ == 4 - && avroSerializationOptionsBuilder_ != null) { + if (outputFormatSerializationOptionsCase_ == 4 && + avroSerializationOptionsBuilder_ != null) { result.outputFormatSerializationOptions_ = avroSerializationOptionsBuilder_.build(); } } @@ -2008,53 +1772,46 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions other) { - if (other - == com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions other) { + if (other == com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance()) return this; if (!other.selectedFields_.isEmpty()) { if (selectedFields_.isEmpty()) { selectedFields_ = other.selectedFields_; @@ -2071,23 +1828,20 @@ public Builder mergeFrom( onChanged(); } switch (other.getOutputFormatSerializationOptionsCase()) { - case ARROW_SERIALIZATION_OPTIONS: - { - mergeArrowSerializationOptions(other.getArrowSerializationOptions()); - break; - } - case AVRO_SERIALIZATION_OPTIONS: - { - mergeAvroSerializationOptions(other.getAvroSerializationOptions()); - break; - } - case OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); + case ARROW_SERIALIZATION_OPTIONS: { + mergeArrowSerializationOptions(other.getArrowSerializationOptions()); + break; + } + case AVRO_SERIALIZATION_OPTIONS: { + mergeAvroSerializationOptions(other.getAvroSerializationOptions()); + break; + } + case OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } @@ -2112,40 +1866,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSelectedFieldsIsMutable(); - selectedFields_.add(s); - break; - } // case 10 - case 18: - { - rowRestriction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getArrowSerializationOptionsFieldBuilder().getBuilder(), extensionRegistry); - outputFormatSerializationOptionsCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getAvroSerializationOptionsFieldBuilder().getBuilder(), extensionRegistry); - outputFormatSerializationOptionsCase_ = 4; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSelectedFieldsIsMutable(); + selectedFields_.add(s); + break; + } // case 10 + case 18: { + rowRestriction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getArrowSerializationOptionsFieldBuilder().getBuilder(), + extensionRegistry); + outputFormatSerializationOptionsCase_ = 3; + break; + } // case 26 + case 34: { + input.readMessage( + getAvroSerializationOptionsFieldBuilder().getBuilder(), + extensionRegistry); + outputFormatSerializationOptionsCase_ = 4; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2155,11 +1906,10 @@ public Builder mergeFrom( } // finally return this; } - private int outputFormatSerializationOptionsCase_ = 0; private java.lang.Object outputFormatSerializationOptions_; - - public OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase() { + public OutputFormatSerializationOptionsCase + getOutputFormatSerializationOptionsCase() { return OutputFormatSerializationOptionsCase.forNumber( outputFormatSerializationOptionsCase_); } @@ -2173,18 +1923,14 @@ public Builder clearOutputFormatSerializationOptions() { private int bitField0_; - private com.google.protobuf.LazyStringList selectedFields_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSelectedFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { selectedFields_ = new com.google.protobuf.LazyStringArrayList(selectedFields_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2228,15 +1974,13 @@ private void ensureSelectedFieldsIsMutable() {
        * 
* * repeated string selected_fields = 1; - * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList + getSelectedFieldsList() { return selectedFields_.getUnmodifiableView(); } /** - * - * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2280,15 +2024,12 @@ public com.google.protobuf.ProtocolStringList getSelectedFieldsList() {
        * 
* * repeated string selected_fields = 1; - * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** - * - * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2332,7 +2073,6 @@ public int getSelectedFieldsCount() {
        * 
* * repeated string selected_fields = 1; - * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -2340,8 +2080,6 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** - * - * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2385,16 +2123,14 @@ public java.lang.String getSelectedFields(int index) {
        * 
* * repeated string selected_fields = 1; - * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString + getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } /** - * - * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2438,23 +2174,19 @@ public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) {
        * 
* * repeated string selected_fields = 1; - * * @param index The index to set the value at. * @param value The selectedFields to set. * @return This builder for chaining. */ - public Builder setSelectedFields(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSelectedFields( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSelectedFieldsIsMutable(); selectedFields_.set(index, value); onChanged(); return this; } /** - * - * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2498,22 +2230,18 @@ public Builder setSelectedFields(int index, java.lang.String value) {
        * 
* * repeated string selected_fields = 1; - * * @param value The selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFields(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSelectedFields( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSelectedFieldsIsMutable(); selectedFields_.add(value); onChanged(); return this; } /** - * - * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2557,19 +2285,18 @@ public Builder addSelectedFields(java.lang.String value) {
        * 
* * repeated string selected_fields = 1; - * * @param values The selectedFields to add. * @return This builder for chaining. */ - public Builder addAllSelectedFields(java.lang.Iterable values) { + public Builder addAllSelectedFields( + java.lang.Iterable values) { ensureSelectedFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectedFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, selectedFields_); onChanged(); return this; } /** - * - * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2613,7 +2340,6 @@ public Builder addAllSelectedFields(java.lang.Iterable values)
        * 
* * repeated string selected_fields = 1; - * * @return This builder for chaining. */ public Builder clearSelectedFields() { @@ -2623,8 +2349,6 @@ public Builder clearSelectedFields() { return this; } /** - * - * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2668,14 +2392,12 @@ public Builder clearSelectedFields() {
        * 
* * repeated string selected_fields = 1; - * * @param value The bytes of the selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSelectedFieldsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSelectedFieldsIsMutable(); selectedFields_.add(value); @@ -2685,8 +2407,6 @@ public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) { private java.lang.Object rowRestriction_ = ""; /** - * - * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -2699,13 +2419,13 @@ public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) {
        * 
* * string row_restriction = 2; - * * @return The rowRestriction. */ public java.lang.String getRowRestriction() { java.lang.Object ref = rowRestriction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; @@ -2714,8 +2434,6 @@ public java.lang.String getRowRestriction() { } } /** - * - * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -2728,14 +2446,15 @@ public java.lang.String getRowRestriction() {
        * 
* * string row_restriction = 2; - * * @return The bytes for rowRestriction. */ - public com.google.protobuf.ByteString getRowRestrictionBytes() { + public com.google.protobuf.ByteString + getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -2743,8 +2462,6 @@ public com.google.protobuf.ByteString getRowRestrictionBytes() { } } /** - * - * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -2757,22 +2474,18 @@ public com.google.protobuf.ByteString getRowRestrictionBytes() {
        * 
* * string row_restriction = 2; - * * @param value The rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestriction(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRowRestriction( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rowRestriction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -2785,7 +2498,6 @@ public Builder setRowRestriction(java.lang.String value) {
        * 
* * string row_restriction = 2; - * * @return This builder for chaining. */ public Builder clearRowRestriction() { @@ -2795,8 +2507,6 @@ public Builder clearRowRestriction() { return this; } /** - * - * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -2809,14 +2519,12 @@ public Builder clearRowRestriction() {
        * 
* * string row_restriction = 2; - * * @param value The bytes for rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestrictionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRowRestrictionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rowRestriction_ = value; bitField0_ |= 0x00000002; @@ -2825,21 +2533,13 @@ public Builder setRowRestrictionBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> - arrowSerializationOptionsBuilder_; + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> arrowSerializationOptionsBuilder_; /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the arrowSerializationOptions field is set. */ @java.lang.Override @@ -2847,49 +2547,35 @@ public boolean hasArrowSerializationOptions() { return outputFormatSerializationOptionsCase_ == 3; } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The arrowSerializationOptions. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions - getArrowSerializationOptions() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getArrowSerializationOptions() { if (arrowSerializationOptionsBuilder_ == null) { if (outputFormatSerializationOptionsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_; } - return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } else { if (outputFormatSerializationOptionsCase_ == 3) { return arrowSerializationOptionsBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setArrowSerializationOptions( - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { + public Builder setArrowSerializationOptions(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { if (arrowSerializationOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2903,15 +2589,11 @@ public Builder setArrowSerializationOptions( return this; } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setArrowSerializationOptions( com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder builderForValue) { @@ -2925,29 +2607,18 @@ public Builder setArrowSerializationOptions( return this; } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeArrowSerializationOptions( - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { + public Builder mergeArrowSerializationOptions(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { if (arrowSerializationOptionsBuilder_ == null) { - if (outputFormatSerializationOptionsCase_ == 3 - && outputFormatSerializationOptions_ - != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions - .getDefaultInstance()) { - outputFormatSerializationOptions_ = - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.newBuilder( - (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - outputFormatSerializationOptions_) - .mergeFrom(value) - .buildPartial(); + if (outputFormatSerializationOptionsCase_ == 3 && + outputFormatSerializationOptions_ != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance()) { + outputFormatSerializationOptions_ = com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.newBuilder((com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_) + .mergeFrom(value).buildPartial(); } else { outputFormatSerializationOptions_ = value; } @@ -2963,15 +2634,11 @@ public Builder mergeArrowSerializationOptions( return this; } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearArrowSerializationOptions() { if (arrowSerializationOptionsBuilder_ == null) { @@ -2990,74 +2657,50 @@ public Builder clearArrowSerializationOptions() { return this; } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder - getArrowSerializationOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder getArrowSerializationOptionsBuilder() { return getArrowSerializationOptionsFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder - getArrowSerializationOptionsOrBuilder() { - if ((outputFormatSerializationOptionsCase_ == 3) - && (arrowSerializationOptionsBuilder_ != null)) { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder() { + if ((outputFormatSerializationOptionsCase_ == 3) && (arrowSerializationOptionsBuilder_ != null)) { return arrowSerializationOptionsBuilder_.getMessageOrBuilder(); } else { if (outputFormatSerializationOptionsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_; } - return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> getArrowSerializationOptionsFieldBuilder() { if (arrowSerializationOptionsBuilder_ == null) { if (!(outputFormatSerializationOptionsCase_ == 3)) { - outputFormatSerializationOptions_ = - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + outputFormatSerializationOptions_ = com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } - arrowSerializationOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder>( - (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - outputFormatSerializationOptions_, + arrowSerializationOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder>( + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_, getParentForChildren(), isClean()); outputFormatSerializationOptions_ = null; @@ -3068,21 +2711,13 @@ public Builder clearArrowSerializationOptions() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, - com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder> - avroSerializationOptionsBuilder_; + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder> avroSerializationOptionsBuilder_; /** - * - * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the avroSerializationOptions field is set. */ @java.lang.Override @@ -3090,25 +2725,18 @@ public boolean hasAvroSerializationOptions() { return outputFormatSerializationOptionsCase_ == 4; } /** - * - * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The avroSerializationOptions. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions - getAvroSerializationOptions() { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getAvroSerializationOptions() { if (avroSerializationOptionsBuilder_ == null) { if (outputFormatSerializationOptionsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) - outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } else { @@ -3119,18 +2747,13 @@ public boolean hasAvroSerializationOptions() { } } /** - * - * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAvroSerializationOptions( - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions value) { + public Builder setAvroSerializationOptions(com.google.cloud.bigquery.storage.v1.AvroSerializationOptions value) { if (avroSerializationOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3144,15 +2767,11 @@ public Builder setAvroSerializationOptions( return this; } /** - * - * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAvroSerializationOptions( com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder builderForValue) { @@ -3166,29 +2785,18 @@ public Builder setAvroSerializationOptions( return this; } /** - * - * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeAvroSerializationOptions( - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions value) { + public Builder mergeAvroSerializationOptions(com.google.cloud.bigquery.storage.v1.AvroSerializationOptions value) { if (avroSerializationOptionsBuilder_ == null) { - if (outputFormatSerializationOptionsCase_ == 4 - && outputFormatSerializationOptions_ - != com.google.cloud.bigquery.storage.v1.AvroSerializationOptions - .getDefaultInstance()) { - outputFormatSerializationOptions_ = - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.newBuilder( - (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) - outputFormatSerializationOptions_) - .mergeFrom(value) - .buildPartial(); + if (outputFormatSerializationOptionsCase_ == 4 && + outputFormatSerializationOptions_ != com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance()) { + outputFormatSerializationOptions_ = com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.newBuilder((com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_) + .mergeFrom(value).buildPartial(); } else { outputFormatSerializationOptions_ = value; } @@ -3204,15 +2812,11 @@ public Builder mergeAvroSerializationOptions( return this; } /** - * - * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAvroSerializationOptions() { if (avroSerializationOptionsBuilder_ == null) { @@ -3231,73 +2835,50 @@ public Builder clearAvroSerializationOptions() { return this; } /** - * - * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder - getAvroSerializationOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder getAvroSerializationOptionsBuilder() { return getAvroSerializationOptionsFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder - getAvroSerializationOptionsOrBuilder() { - if ((outputFormatSerializationOptionsCase_ == 4) - && (avroSerializationOptionsBuilder_ != null)) { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder getAvroSerializationOptionsOrBuilder() { + if ((outputFormatSerializationOptionsCase_ == 4) && (avroSerializationOptionsBuilder_ != null)) { return avroSerializationOptionsBuilder_.getMessageOrBuilder(); } else { if (outputFormatSerializationOptionsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) - outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } } /** - * - * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, - com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder> getAvroSerializationOptionsFieldBuilder() { if (avroSerializationOptionsBuilder_ == null) { if (!(outputFormatSerializationOptionsCase_ == 4)) { - outputFormatSerializationOptions_ = - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); + outputFormatSerializationOptions_ = com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } - avroSerializationOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, - com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder>( - (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) - outputFormatSerializationOptions_, + avroSerializationOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder>( + (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_, getParentForChildren(), isClean()); outputFormatSerializationOptions_ = null; @@ -3306,7 +2887,6 @@ public Builder clearAvroSerializationOptions() { onChanged(); return avroSerializationOptionsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3319,44 +2899,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) - private static final com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions(); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableReadOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableReadOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3368,24 +2945,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int schemaCase_ = 0; private java.lang.Object schema_; - public enum SchemaCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AVRO_SCHEMA(4), ARROW_SCHEMA(5), SCHEMA_NOT_SET(0); private final int value; - private SchemaCase(int value) { this.value = value; } @@ -3401,40 +2975,33 @@ public static SchemaCase valueOf(int value) { public static SchemaCase forNumber(int value) { switch (value) { - case 4: - return AVRO_SCHEMA; - case 5: - return ARROW_SCHEMA; - case 0: - return SCHEMA_NOT_SET; - default: - return null; + case 4: return AVRO_SCHEMA; + case 5: return ARROW_SCHEMA; + case 0: return SCHEMA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -3443,30 +3010,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3477,8 +3044,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -3486,9 +3051,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -3496,8 +3059,6 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -3505,9 +3066,7 @@ public boolean hasExpireTime() {
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -3515,8 +3074,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -3524,8 +3081,7 @@ public com.google.protobuf.Timestamp getExpireTime() {
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -3535,56 +3091,38 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int DATA_FORMAT_FIELD_NUMBER = 3; private int dataFormat_ = 0; /** - * - * *
    * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
    * supported.
    * 
* - * - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override - public int getDataFormatValue() { + @java.lang.Override public int getDataFormatValue() { return dataFormat_; } /** - * - * *
    * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
    * supported.
    * 
* - * - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The dataFormat. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1.DataFormat getDataFormat() { - com.google.cloud.bigquery.storage.v1.DataFormat result = - com.google.cloud.bigquery.storage.v1.DataFormat.forNumber(dataFormat_); + @java.lang.Override public com.google.cloud.bigquery.storage.v1.DataFormat getDataFormat() { + com.google.cloud.bigquery.storage.v1.DataFormat result = com.google.cloud.bigquery.storage.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.bigquery.storage.v1.DataFormat.UNRECOGNIZED : result; } public static final int AVRO_SCHEMA_FIELD_NUMBER = 4; /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -3592,56 +3130,42 @@ public boolean hasAvroSchema() { return schemaCase_ == 4; } /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema() { if (schemaCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { if (schemaCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } public static final int ARROW_SCHEMA_FIELD_NUMBER = 5; /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -3649,60 +3173,45 @@ public boolean hasArrowSchema() { return schemaCase_ == 5; } /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } public static final int TABLE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
    * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The table. */ @java.lang.Override @@ -3711,32 +3220,30 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
    * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -3747,17 +3254,12 @@ public com.google.protobuf.ByteString getTableBytes() { public static final int TABLE_MODIFIERS_FIELD_NUMBER = 7; private com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers tableModifiers_; /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the tableModifiers field is set. */ @java.lang.Override @@ -3765,58 +3267,39 @@ public boolean hasTableModifiers() { return tableModifiers_ != null; } /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The tableModifiers. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getTableModifiers() { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() - : tableModifiers_; + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; } /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder - getTableModifiersOrBuilder() { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() - : tableModifiers_; + public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder() { + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; } public static final int READ_OPTIONS_FIELD_NUMBER = 8; private com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions readOptions_; /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readOptions field is set. */ @java.lang.Override @@ -3824,50 +3307,33 @@ public boolean hasReadOptions() { return readOptions_ != null; } /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readOptions. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getReadOptions() { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() - : readOptions_; + return readOptions_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; } /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder - getReadOptionsOrBuilder() { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() - : readOptions_; + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { + return readOptions_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; } public static final int STREAMS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List streams_; /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -3876,17 +3342,13 @@ public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getRead
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getStreamsList() { return streams_; } /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -3895,18 +3357,14 @@ public java.util.List getStream
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getStreamsOrBuilderList() { return streams_; } /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -3915,17 +3373,13 @@ public java.util.List getStream
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getStreamsCount() { return streams_.size(); } /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -3934,17 +3388,13 @@ public int getStreamsCount() {
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index) { return streams_.get(index); } /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -3953,29 +3403,24 @@ public com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index) {
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder(int index) { + public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder( + int index) { return streams_.get(index); } public static final int ESTIMATED_TOTAL_BYTES_SCANNED_FIELD_NUMBER = 12; private long estimatedTotalBytesScanned_ = 0L; /** - * - * *
    * Output only. An estimate on the number of bytes this session will scan when
    * all streams are completely consumed. This estimate is based on
    * metadata from the table which might be incomplete or stale.
    * 
* - * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The estimatedTotalBytesScanned. */ @java.lang.Override @@ -3986,8 +3431,6 @@ public long getEstimatedTotalBytesScanned() { public static final int ESTIMATED_ROW_COUNT_FIELD_NUMBER = 14; private long estimatedRowCount_ = 0L; /** - * - * *
    * Output only. An estimate on the number of rows present in this session's
    * streams. This estimate is based on metadata from the table which might be
@@ -3995,7 +3438,6 @@ public long getEstimatedTotalBytesScanned() {
    * 
* * int64 estimated_row_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The estimatedRowCount. */ @java.lang.Override @@ -4004,12 +3446,9 @@ public long getEstimatedRowCount() { } public static final int TRACE_ID_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object traceId_ = ""; /** - * - * *
    * Optional. ID set by client to annotate a session identity.  This does not
    * need to be strictly unique, but instead the same ID should be used to group
@@ -4019,7 +3458,6 @@ public long getEstimatedRowCount() {
    * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The traceId. */ @java.lang.Override @@ -4028,15 +3466,14 @@ public java.lang.String getTraceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; } } /** - * - * *
    * Optional. ID set by client to annotate a session identity.  This does not
    * need to be strictly unique, but instead the same ID should be used to group
@@ -4046,15 +3483,16 @@ public java.lang.String getTraceId() {
    * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for traceId. */ @java.lang.Override - public com.google.protobuf.ByteString getTraceIdBytes() { + public com.google.protobuf.ByteString + getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); traceId_ = b; return b; } else { @@ -4063,7 +3501,6 @@ public com.google.protobuf.ByteString getTraceIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4075,15 +3512,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (expireTime_ != null) { output.writeMessage(2, getExpireTime()); } - if (dataFormat_ - != com.google.cloud.bigquery.storage.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + if (dataFormat_ != com.google.cloud.bigquery.storage.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(3, dataFormat_); } if (schemaCase_ == 4) { @@ -4126,43 +3563,46 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpireTime()); } - if (dataFormat_ - != com.google.cloud.bigquery.storage.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, dataFormat_); + if (dataFormat_ != com.google.cloud.bigquery.storage.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, dataFormat_); } if (schemaCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_); } if (schemaCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, table_); } if (tableModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTableModifiers()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTableModifiers()); } if (readOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReadOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getReadOptions()); } for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, streams_.get(i)); } if (estimatedTotalBytesScanned_ != 0L) { - size += - com.google.protobuf.CodedOutputStream.computeInt64Size(12, estimatedTotalBytesScanned_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(12, estimatedTotalBytesScanned_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, traceId_); } if (estimatedRowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, estimatedRowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(14, estimatedRowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4172,40 +3612,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadSession)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadSession other = - (com.google.cloud.bigquery.storage.v1.ReadSession) obj; + com.google.cloud.bigquery.storage.v1.ReadSession other = (com.google.cloud.bigquery.storage.v1.ReadSession) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (dataFormat_ != other.dataFormat_) return false; - if (!getTable().equals(other.getTable())) return false; + if (!getTable() + .equals(other.getTable())) return false; if (hasTableModifiers() != other.hasTableModifiers()) return false; if (hasTableModifiers()) { - if (!getTableModifiers().equals(other.getTableModifiers())) return false; + if (!getTableModifiers() + .equals(other.getTableModifiers())) return false; } if (hasReadOptions() != other.hasReadOptions()) return false; if (hasReadOptions()) { - if (!getReadOptions().equals(other.getReadOptions())) return false; - } - if (!getStreamsList().equals(other.getStreamsList())) return false; - if (getEstimatedTotalBytesScanned() != other.getEstimatedTotalBytesScanned()) return false; - if (getEstimatedRowCount() != other.getEstimatedRowCount()) return false; - if (!getTraceId().equals(other.getTraceId())) return false; + if (!getReadOptions() + .equals(other.getReadOptions())) return false; + } + if (!getStreamsList() + .equals(other.getStreamsList())) return false; + if (getEstimatedTotalBytesScanned() + != other.getEstimatedTotalBytesScanned()) return false; + if (getEstimatedRowCount() + != other.getEstimatedRowCount()) return false; + if (!getTraceId() + .equals(other.getTraceId())) return false; if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 4: - if (!getAvroSchema().equals(other.getAvroSchema())) return false; + if (!getAvroSchema() + .equals(other.getAvroSchema())) return false; break; case 5: - if (!getArrowSchema().equals(other.getArrowSchema())) return false; + if (!getArrowSchema() + .equals(other.getArrowSchema())) return false; break; case 0: default: @@ -4244,9 +3694,11 @@ public int hashCode() { hash = (53 * hash) + getStreamsList().hashCode(); } hash = (37 * hash) + ESTIMATED_TOTAL_BYTES_SCANNED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedTotalBytesScanned()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEstimatedTotalBytesScanned()); hash = (37 * hash) + ESTIMATED_ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEstimatedRowCount()); hash = (37 * hash) + TRACE_ID_FIELD_NUMBER; hash = (53 * hash) + getTraceId().hashCode(); switch (schemaCase_) { @@ -4266,136 +3718,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadSession parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadSession parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadSession prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about the ReadSession.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadSession) com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.class, - com.google.cloud.bigquery.storage.v1.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.class, com.google.cloud.bigquery.storage.v1.ReadSession.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ReadSession.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -4440,9 +3886,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; } @java.lang.Override @@ -4461,19 +3907,15 @@ public com.google.cloud.bigquery.storage.v1.ReadSession build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession buildPartial() { - com.google.cloud.bigquery.storage.v1.ReadSession result = - new com.google.cloud.bigquery.storage.v1.ReadSession(this); + com.google.cloud.bigquery.storage.v1.ReadSession result = new com.google.cloud.bigquery.storage.v1.ReadSession(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1.ReadSession result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.ReadSession result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -4491,7 +3933,9 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession resu result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.dataFormat_ = dataFormat_; @@ -4500,12 +3944,14 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession resu result.table_ = table_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.tableModifiers_ = - tableModifiersBuilder_ == null ? tableModifiers_ : tableModifiersBuilder_.build(); + result.tableModifiers_ = tableModifiersBuilder_ == null + ? tableModifiers_ + : tableModifiersBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.readOptions_ = - readOptionsBuilder_ == null ? readOptions_ : readOptionsBuilder_.build(); + result.readOptions_ = readOptionsBuilder_ == null + ? readOptions_ + : readOptionsBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.estimatedTotalBytesScanned_ = estimatedTotalBytesScanned_; @@ -4521,10 +3967,12 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession resu private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadSession result) { result.schemaCase_ = schemaCase_; result.schema_ = this.schema_; - if (schemaCase_ == 4 && avroSchemaBuilder_ != null) { + if (schemaCase_ == 4 && + avroSchemaBuilder_ != null) { result.schema_ = avroSchemaBuilder_.build(); } - if (schemaCase_ == 5 && arrowSchemaBuilder_ != null) { + if (schemaCase_ == 5 && + arrowSchemaBuilder_ != null) { result.schema_ = arrowSchemaBuilder_.build(); } } @@ -4533,39 +3981,38 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadSession public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ReadSession) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadSession) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadSession)other); } else { super.mergeFrom(other); return this; @@ -4573,8 +4020,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession other) { - if (other == com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -4615,10 +4061,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession other) streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000100); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStreamsFieldBuilder() - : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamsFieldBuilder() : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -4636,20 +4081,17 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession other) onChanged(); } switch (other.getSchemaCase()) { - case AVRO_SCHEMA: - { - mergeAvroSchema(other.getAvroSchema()); - break; - } - case ARROW_SCHEMA: - { - mergeArrowSchema(other.getArrowSchema()); - break; - } - case SCHEMA_NOT_SET: - { - break; - } + case AVRO_SCHEMA: { + mergeAvroSchema(other.getAvroSchema()); + break; + } + case ARROW_SCHEMA: { + mergeArrowSchema(other.getArrowSchema()); + break; + } + case SCHEMA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4677,93 +4119,90 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - dataFormat_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getAvroSchemaFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getArrowSchemaFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 5; - break; - } // case 42 - case 50: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getTableModifiersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage(getReadOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: - { - com.google.cloud.bigquery.storage.v1.ReadStream m = - input.readMessage( - com.google.cloud.bigquery.storage.v1.ReadStream.parser(), - extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 82 - case 96: - { - estimatedTotalBytesScanned_ = input.readInt64(); - bitField0_ |= 0x00000200; - break; - } // case 96 - case 106: - { - traceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 106 - case 112: - { - estimatedRowCount_ = input.readInt64(); - bitField0_ |= 0x00000400; - break; - } // case 112 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + dataFormat_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getAvroSchemaFieldBuilder().getBuilder(), + extensionRegistry); + schemaCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getArrowSchemaFieldBuilder().getBuilder(), + extensionRegistry); + schemaCase_ = 5; + break; + } // case 42 + case 50: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getTableModifiersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getReadOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: { + com.google.cloud.bigquery.storage.v1.ReadStream m = + input.readMessage( + com.google.cloud.bigquery.storage.v1.ReadStream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 82 + case 96: { + estimatedTotalBytesScanned_ = input.readInt64(); + bitField0_ |= 0x00000200; + break; + } // case 96 + case 106: { + traceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 112: { + estimatedRowCount_ = input.readInt64(); + bitField0_ |= 0x00000400; + break; + } // case 112 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4773,12 +4212,12 @@ public Builder mergeFrom( } // finally return this; } - private int schemaCase_ = 0; private java.lang.Object schema_; - - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); } public Builder clearSchema() { @@ -4792,21 +4231,19 @@ public Builder clearSchema() { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4815,22 +4252,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -4838,37 +4274,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -4878,22 +4307,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -4903,13 +4328,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4917,18 +4337,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4936,24 +4351,17 @@ public boolean hasExpireTime() {
      * updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4961,9 +4369,7 @@ public com.google.protobuf.Timestamp getExpireTime() {
      * updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -4979,8 +4385,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4988,11 +4392,10 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      * updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -5003,8 +4406,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -5012,15 +4413,13 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
      * updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -5033,8 +4432,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -5042,9 +4439,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
      * updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -5057,8 +4452,6 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -5066,9 +4459,7 @@ public Builder clearExpireTime() {
      * updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000002; @@ -5076,8 +4467,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -5085,22 +4474,17 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
      * updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -5108,22 +4492,17 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -5131,35 +4510,24 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private int dataFormat_ = 0; /** - * - * *
      * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
      * supported.
      * 
* - * - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override - public int getDataFormatValue() { + @java.lang.Override public int getDataFormatValue() { return dataFormat_; } /** - * - * *
      * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
      * supported.
      * 
* - * - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for dataFormat to set. * @return This builder for chaining. */ @@ -5170,37 +4538,26 @@ public Builder setDataFormatValue(int value) { return this; } /** - * - * *
      * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
      * supported.
      * 
* - * - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The dataFormat. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.DataFormat getDataFormat() { - com.google.cloud.bigquery.storage.v1.DataFormat result = - com.google.cloud.bigquery.storage.v1.DataFormat.forNumber(dataFormat_); + com.google.cloud.bigquery.storage.v1.DataFormat result = com.google.cloud.bigquery.storage.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.bigquery.storage.v1.DataFormat.UNRECOGNIZED : result; } /** - * - * *
      * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
      * supported.
      * 
* - * - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The dataFormat to set. * @return This builder for chaining. */ @@ -5214,17 +4571,12 @@ public Builder setDataFormat(com.google.cloud.bigquery.storage.v1.DataFormat val return this; } /** - * - * *
      * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
      * supported.
      * 
* - * - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearDataFormat() { @@ -5235,21 +4587,13 @@ public Builder clearDataFormat() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSchema, - com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> - avroSchemaBuilder_; + com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> avroSchemaBuilder_; /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -5257,16 +4601,11 @@ public boolean hasAvroSchema() { return schemaCase_ == 4; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ @java.lang.Override @@ -5284,15 +4623,11 @@ public com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema() { } } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema value) { if (avroSchemaBuilder_ == null) { @@ -5308,15 +4643,11 @@ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema val return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAvroSchema( com.google.cloud.bigquery.storage.v1.AvroSchema.Builder builderForValue) { @@ -5330,25 +4661,18 @@ public Builder setAvroSchema( return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema value) { if (avroSchemaBuilder_ == null) { - if (schemaCase_ == 4 - && schema_ != com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.bigquery.storage.v1.AvroSchema.newBuilder( - (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 4 && + schema_ != com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) { + schema_ = com.google.cloud.bigquery.storage.v1.AvroSchema.newBuilder((com.google.cloud.bigquery.storage.v1.AvroSchema) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -5364,15 +4688,11 @@ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema v return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAvroSchema() { if (avroSchemaBuilder_ == null) { @@ -5391,29 +4711,21 @@ public Builder clearAvroSchema() { return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1.AvroSchema.Builder getAvroSchemaBuilder() { return getAvroSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { @@ -5427,30 +4739,21 @@ public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrB } } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSchema, - com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> getAvroSchemaFieldBuilder() { if (avroSchemaBuilder_ == null) { if (!(schemaCase_ == 4)) { schema_ = com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } - avroSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSchema, - com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder>( + avroSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_, getParentForChildren(), isClean()); @@ -5462,21 +4765,13 @@ public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, - com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> - arrowSchemaBuilder_; + com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> arrowSchemaBuilder_; /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -5484,16 +4779,11 @@ public boolean hasArrowSchema() { return schemaCase_ == 5; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ @java.lang.Override @@ -5511,15 +4801,11 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema() { } } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { @@ -5535,15 +4821,11 @@ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema v return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setArrowSchema( com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder builderForValue) { @@ -5557,25 +4839,18 @@ public Builder setArrowSchema( return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { - if (schemaCase_ == 5 - && schema_ != com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.bigquery.storage.v1.ArrowSchema.newBuilder( - (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 5 && + schema_ != com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance()) { + schema_ = com.google.cloud.bigquery.storage.v1.ArrowSchema.newBuilder((com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -5591,15 +4866,11 @@ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearArrowSchema() { if (arrowSchemaBuilder_ == null) { @@ -5618,29 +4889,21 @@ public Builder clearArrowSchema() { return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder getArrowSchemaBuilder() { return getArrowSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { @@ -5654,30 +4917,21 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaO } } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, - com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> getArrowSchemaFieldBuilder() { if (arrowSchemaBuilder_ == null) { if (!(schemaCase_ == 5)) { schema_ = com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } - arrowSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, - com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder>( + arrowSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_, getParentForChildren(), isClean()); @@ -5690,23 +4944,19 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaO private java.lang.Object table_ = ""; /** - * - * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
      * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -5715,24 +4965,21 @@ public java.lang.String getTable() { } } /** - * - * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
      * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -5740,41 +4987,30 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
      * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
      * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTable() { @@ -5784,24 +5020,18 @@ public Builder clearTable() { return this; } /** - * - * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
      * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000020; @@ -5811,64 +5041,44 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers tableModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder> - tableModifiersBuilder_; + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder> tableModifiersBuilder_; /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the tableModifiers field is set. */ public boolean hasTableModifiers() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The tableModifiers. */ public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getTableModifiers() { if (tableModifiersBuilder_ == null) { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() - : tableModifiers_; + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; } else { return tableModifiersBuilder_.getMessage(); } } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setTableModifiers( - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers value) { + public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers value) { if (tableModifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5882,16 +5092,12 @@ public Builder setTableModifiers( return this; } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTableModifiers( com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder builderForValue) { @@ -5905,25 +5111,18 @@ public Builder setTableModifiers( return this; } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeTableModifiers( - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers value) { + public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers value) { if (tableModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && tableModifiers_ != null - && tableModifiers_ - != com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + tableModifiers_ != null && + tableModifiers_ != com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance()) { getTableModifiersBuilder().mergeFrom(value); } else { tableModifiers_ = value; @@ -5936,16 +5135,12 @@ public Builder mergeTableModifiers( return this; } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTableModifiers() { bitField0_ = (bitField0_ & ~0x00000040); @@ -5958,69 +5153,51 @@ public Builder clearTableModifiers() { return this; } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder - getTableModifiersBuilder() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder getTableModifiersBuilder() { bitField0_ |= 0x00000040; onChanged(); return getTableModifiersFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder - getTableModifiersOrBuilder() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder() { if (tableModifiersBuilder_ != null) { return tableModifiersBuilder_.getMessageOrBuilder(); } else { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() - : tableModifiers_; + return tableModifiers_ == null ? + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; } } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder> + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder> getTableModifiersFieldBuilder() { if (tableModifiersBuilder_ == null) { - tableModifiersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder>( - getTableModifiers(), getParentForChildren(), isClean()); + tableModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder>( + getTableModifiers(), + getParentForChildren(), + isClean()); tableModifiers_ = null; } return tableModifiersBuilder_; @@ -6028,61 +5205,41 @@ public Builder clearTableModifiers() { private com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions readOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder> - readOptionsBuilder_; + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder> readOptionsBuilder_; /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readOptions field is set. */ public boolean hasReadOptions() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readOptions. */ public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getReadOptions() { if (readOptionsBuilder_ == null) { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() - : readOptions_; + return readOptions_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; } else { return readOptionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setReadOptions( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions value) { + public Builder setReadOptions(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions value) { if (readOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6096,15 +5253,11 @@ public Builder setReadOptions( return this; } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReadOptions( com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder builderForValue) { @@ -6118,24 +5271,17 @@ public Builder setReadOptions( return this; } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeReadOptions( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions value) { + public Builder mergeReadOptions(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions value) { if (readOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && readOptions_ != null - && readOptions_ - != com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + readOptions_ != null && + readOptions_ != com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance()) { getReadOptionsBuilder().mergeFrom(value); } else { readOptions_ = value; @@ -6148,15 +5294,11 @@ public Builder mergeReadOptions( return this; } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReadOptions() { bitField0_ = (bitField0_ & ~0x00000080); @@ -6169,91 +5311,66 @@ public Builder clearReadOptions() { return this; } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder - getReadOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder getReadOptionsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getReadOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder - getReadOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { if (readOptionsBuilder_ != null) { return readOptionsBuilder_.getMessageOrBuilder(); } else { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() - : readOptions_; + return readOptions_ == null ? + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; } } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder> getReadOptionsFieldBuilder() { if (readOptionsBuilder_ == null) { - readOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder>( - getReadOptions(), getParentForChildren(), isClean()); + readOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder>( + getReadOptions(), + getParentForChildren(), + isClean()); readOptions_ = null; } return readOptionsBuilder_; } private java.util.List streams_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - streams_ = - new java.util.ArrayList(streams_); + streams_ = new java.util.ArrayList(streams_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadStream, - com.google.cloud.bigquery.storage.v1.ReadStream.Builder, - com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> - streamsBuilder_; + com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> streamsBuilder_; /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6262,9 +5379,7 @@ private void ensureStreamsIsMutable() {
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getStreamsList() { if (streamsBuilder_ == null) { @@ -6274,8 +5389,6 @@ public java.util.List getStream } } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6284,9 +5397,7 @@ public java.util.List getStream
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getStreamsCount() { if (streamsBuilder_ == null) { @@ -6296,8 +5407,6 @@ public int getStreamsCount() { } } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6306,9 +5415,7 @@ public int getStreamsCount() {
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index) { if (streamsBuilder_ == null) { @@ -6318,8 +5425,6 @@ public com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index) { } } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6328,11 +5433,10 @@ public com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index) {
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setStreams(int index, com.google.cloud.bigquery.storage.v1.ReadStream value) { + public Builder setStreams( + int index, com.google.cloud.bigquery.storage.v1.ReadStream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6346,8 +5450,6 @@ public Builder setStreams(int index, com.google.cloud.bigquery.storage.v1.ReadSt return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6356,9 +5458,7 @@ public Builder setStreams(int index, com.google.cloud.bigquery.storage.v1.ReadSt
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStreams( int index, com.google.cloud.bigquery.storage.v1.ReadStream.Builder builderForValue) { @@ -6372,8 +5472,6 @@ public Builder setStreams( return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6382,9 +5480,7 @@ public Builder setStreams(
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStreams(com.google.cloud.bigquery.storage.v1.ReadStream value) { if (streamsBuilder_ == null) { @@ -6400,8 +5496,6 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1.ReadStream value) return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6410,11 +5504,10 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1.ReadStream value)
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addStreams(int index, com.google.cloud.bigquery.storage.v1.ReadStream value) { + public Builder addStreams( + int index, com.google.cloud.bigquery.storage.v1.ReadStream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6428,8 +5521,6 @@ public Builder addStreams(int index, com.google.cloud.bigquery.storage.v1.ReadSt return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6438,9 +5529,7 @@ public Builder addStreams(int index, com.google.cloud.bigquery.storage.v1.ReadSt
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStreams( com.google.cloud.bigquery.storage.v1.ReadStream.Builder builderForValue) { @@ -6454,8 +5543,6 @@ public Builder addStreams( return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6464,9 +5551,7 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStreams( int index, com.google.cloud.bigquery.storage.v1.ReadStream.Builder builderForValue) { @@ -6480,8 +5565,6 @@ public Builder addStreams( return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6490,15 +5573,14 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllStreams( java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -6506,8 +5588,6 @@ public Builder addAllStreams( return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6516,9 +5596,7 @@ public Builder addAllStreams(
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStreams() { if (streamsBuilder_ == null) { @@ -6531,8 +5609,6 @@ public Builder clearStreams() { return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6541,9 +5617,7 @@ public Builder clearStreams() {
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeStreams(int index) { if (streamsBuilder_ == null) { @@ -6556,8 +5630,6 @@ public Builder removeStreams(int index) { return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6566,16 +5638,13 @@ public Builder removeStreams(int index) {
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.storage.v1.ReadStream.Builder getStreamsBuilder(int index) { + public com.google.cloud.bigquery.storage.v1.ReadStream.Builder getStreamsBuilder( + int index) { return getStreamsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6584,20 +5653,16 @@ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder getStreamsBuilder
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder(int index) { + public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder( + int index) { if (streamsBuilder_ == null) { - return streams_.get(index); - } else { + return streams_.get(index); } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6606,12 +5671,10 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuil
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -6619,8 +5682,6 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuil } } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6629,17 +5690,13 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuil
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder() - .addBuilder(com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()); + return getStreamsFieldBuilder().addBuilder( + com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()); } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6648,17 +5705,14 @@ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder addStreamsBuilder
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.storage.v1.ReadStream.Builder addStreamsBuilder(int index) { - return getStreamsFieldBuilder() - .addBuilder(index, com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()); + public com.google.cloud.bigquery.storage.v1.ReadStream.Builder addStreamsBuilder( + int index) { + return getStreamsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()); } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -6667,45 +5721,36 @@ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder addStreamsBuilder
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadStream, - com.google.cloud.bigquery.storage.v1.ReadStream.Builder, - com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> + com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadStream, - com.google.cloud.bigquery.storage.v1.ReadStream.Builder, - com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>( - streams_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>( + streams_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); streams_ = null; } return streamsBuilder_; } - private long estimatedTotalBytesScanned_; + private long estimatedTotalBytesScanned_ ; /** - * - * *
      * Output only. An estimate on the number of bytes this session will scan when
      * all streams are completely consumed. This estimate is based on
      * metadata from the table which might be incomplete or stale.
      * 
* - * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The estimatedTotalBytesScanned. */ @java.lang.Override @@ -6713,39 +5758,31 @@ public long getEstimatedTotalBytesScanned() { return estimatedTotalBytesScanned_; } /** - * - * *
      * Output only. An estimate on the number of bytes this session will scan when
      * all streams are completely consumed. This estimate is based on
      * metadata from the table which might be incomplete or stale.
      * 
* - * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The estimatedTotalBytesScanned to set. * @return This builder for chaining. */ public Builder setEstimatedTotalBytesScanned(long value) { - + estimatedTotalBytesScanned_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** - * - * *
      * Output only. An estimate on the number of bytes this session will scan when
      * all streams are completely consumed. This estimate is based on
      * metadata from the table which might be incomplete or stale.
      * 
* - * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearEstimatedTotalBytesScanned() { @@ -6755,10 +5792,8 @@ public Builder clearEstimatedTotalBytesScanned() { return this; } - private long estimatedRowCount_; + private long estimatedRowCount_ ; /** - * - * *
      * Output only. An estimate on the number of rows present in this session's
      * streams. This estimate is based on metadata from the table which might be
@@ -6766,7 +5801,6 @@ public Builder clearEstimatedTotalBytesScanned() {
      * 
* * int64 estimated_row_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The estimatedRowCount. */ @java.lang.Override @@ -6774,8 +5808,6 @@ public long getEstimatedRowCount() { return estimatedRowCount_; } /** - * - * *
      * Output only. An estimate on the number of rows present in this session's
      * streams. This estimate is based on metadata from the table which might be
@@ -6783,20 +5815,17 @@ public long getEstimatedRowCount() {
      * 
* * int64 estimated_row_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The estimatedRowCount to set. * @return This builder for chaining. */ public Builder setEstimatedRowCount(long value) { - + estimatedRowCount_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** - * - * *
      * Output only. An estimate on the number of rows present in this session's
      * streams. This estimate is based on metadata from the table which might be
@@ -6804,7 +5833,6 @@ public Builder setEstimatedRowCount(long value) {
      * 
* * int64 estimated_row_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearEstimatedRowCount() { @@ -6816,8 +5844,6 @@ public Builder clearEstimatedRowCount() { private java.lang.Object traceId_ = ""; /** - * - * *
      * Optional. ID set by client to annotate a session identity.  This does not
      * need to be strictly unique, but instead the same ID should be used to group
@@ -6827,13 +5853,13 @@ public Builder clearEstimatedRowCount() {
      * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The traceId. */ public java.lang.String getTraceId() { java.lang.Object ref = traceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; @@ -6842,8 +5868,6 @@ public java.lang.String getTraceId() { } } /** - * - * *
      * Optional. ID set by client to annotate a session identity.  This does not
      * need to be strictly unique, but instead the same ID should be used to group
@@ -6853,14 +5877,15 @@ public java.lang.String getTraceId() {
      * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for traceId. */ - public com.google.protobuf.ByteString getTraceIdBytes() { + public com.google.protobuf.ByteString + getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); traceId_ = b; return b; } else { @@ -6868,8 +5893,6 @@ public com.google.protobuf.ByteString getTraceIdBytes() { } } /** - * - * *
      * Optional. ID set by client to annotate a session identity.  This does not
      * need to be strictly unique, but instead the same ID should be used to group
@@ -6879,22 +5902,18 @@ public com.google.protobuf.ByteString getTraceIdBytes() {
      * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The traceId to set. * @return This builder for chaining. */ - public Builder setTraceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTraceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } traceId_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Optional. ID set by client to annotate a session identity.  This does not
      * need to be strictly unique, but instead the same ID should be used to group
@@ -6904,7 +5923,6 @@ public Builder setTraceId(java.lang.String value) {
      * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTraceId() { @@ -6914,8 +5932,6 @@ public Builder clearTraceId() { return this; } /** - * - * *
      * Optional. ID set by client to annotate a session identity.  This does not
      * need to be strictly unique, but instead the same ID should be used to group
@@ -6925,23 +5941,21 @@ public Builder clearTraceId() {
      * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for traceId to set. * @return This builder for chaining. */ - public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTraceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); traceId_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6951,12 +5965,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadSession) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadSession) private static final com.google.cloud.bigquery.storage.v1.ReadSession DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadSession(); } @@ -6965,27 +5979,27 @@ public static com.google.cloud.bigquery.storage.v1.ReadSession getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadSession parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7000,4 +6014,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ReadSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java similarity index 67% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java index dcc3148bb5..f42578c2fe 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; -public interface ReadSessionOrBuilder - extends +public interface ReadSessionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadSession) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -60,15 +37,11 @@ public interface ReadSessionOrBuilder
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -76,15 +49,11 @@ public interface ReadSessionOrBuilder
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -92,245 +61,165 @@ public interface ReadSessionOrBuilder
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
    * supported.
    * 
* - * - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for dataFormat. */ int getDataFormatValue(); /** - * - * *
    * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
    * supported.
    * 
* - * - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The dataFormat. */ com.google.cloud.bigquery.storage.v1.DataFormat getDataFormat(); /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ boolean hasAvroSchema(); /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema(); /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ boolean hasArrowSchema(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder(); /** - * - * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
    * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The table. */ java.lang.String getTable(); /** - * - * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
    * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the tableModifiers field is set. */ boolean hasTableModifiers(); /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The tableModifiers. */ com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getTableModifiers(); /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder - getTableModifiersOrBuilder(); + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder(); /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readOptions field is set. */ boolean hasReadOptions(); /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readOptions. */ com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getReadOptions(); /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder - getReadOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder(); /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -339,14 +228,11 @@ public interface ReadSessionOrBuilder
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getStreamsList(); + java.util.List + getStreamsList(); /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -355,14 +241,10 @@ public interface ReadSessionOrBuilder
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index); /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -371,14 +253,10 @@ public interface ReadSessionOrBuilder
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getStreamsCount(); /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -387,15 +265,11 @@ public interface ReadSessionOrBuilder
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -404,31 +278,24 @@ public interface ReadSessionOrBuilder
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder(int index); + com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder( + int index); /** - * - * *
    * Output only. An estimate on the number of bytes this session will scan when
    * all streams are completely consumed. This estimate is based on
    * metadata from the table which might be incomplete or stale.
    * 
* - * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The estimatedTotalBytesScanned. */ long getEstimatedTotalBytesScanned(); /** - * - * *
    * Output only. An estimate on the number of rows present in this session's
    * streams. This estimate is based on metadata from the table which might be
@@ -436,14 +303,11 @@ public interface ReadSessionOrBuilder
    * 
* * int64 estimated_row_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The estimatedRowCount. */ long getEstimatedRowCount(); /** - * - * *
    * Optional. ID set by client to annotate a session identity.  This does not
    * need to be strictly unique, but instead the same ID should be used to group
@@ -453,13 +317,10 @@ public interface ReadSessionOrBuilder
    * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The traceId. */ java.lang.String getTraceId(); /** - * - * *
    * Optional. ID set by client to annotate a session identity.  This does not
    * need to be strictly unique, but instead the same ID should be used to group
@@ -469,10 +330,10 @@ public interface ReadSessionOrBuilder
    * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for traceId. */ - com.google.protobuf.ByteString getTraceIdBytes(); + com.google.protobuf.ByteString + getTraceIdBytes(); public com.google.cloud.bigquery.storage.v1.ReadSession.SchemaCase getSchemaCase(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java similarity index 66% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java index 7e30032b1c..fa2172e193 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Information about a single stream that gets data out of the storage system.
  * Most of the information about `ReadStream` instances is aggregated, making
@@ -29,60 +12,54 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadStream}
  */
-public final class ReadStream extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReadStream extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadStream)
     ReadStreamOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReadStream.newBuilder() to construct.
   private ReadStream(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ReadStream() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReadStream();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.StreamProto
-        .internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.StreamProto
-        .internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.ReadStream.class,
-            com.google.cloud.bigquery.storage.v1.ReadStream.Builder.class);
+            com.google.cloud.bigquery.storage.v1.ReadStream.class, com.google.cloud.bigquery.storage.v1.ReadStream.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -91,30 +68,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +100,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +111,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +136,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadStream)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadStream other = - (com.google.cloud.bigquery.storage.v1.ReadStream) obj; + com.google.cloud.bigquery.storage.v1.ReadStream other = (com.google.cloud.bigquery.storage.v1.ReadStream) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,104 +163,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ReadStream parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ReadStream parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadStream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about a single stream that gets data out of the storage system.
    * Most of the information about `ReadStream` instances is aggregated, making
@@ -292,32 +262,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadStream}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadStream)
       com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.StreamProto
-          .internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.StreamProto
-          .internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.ReadStream.class,
-              com.google.cloud.bigquery.storage.v1.ReadStream.Builder.class);
+              com.google.cloud.bigquery.storage.v1.ReadStream.class, com.google.cloud.bigquery.storage.v1.ReadStream.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.ReadStream.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +298,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.StreamProto
-          .internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
     }
 
     @java.lang.Override
@@ -348,11 +319,8 @@ public com.google.cloud.bigquery.storage.v1.ReadStream build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.ReadStream buildPartial() {
-      com.google.cloud.bigquery.storage.v1.ReadStream result =
-          new com.google.cloud.bigquery.storage.v1.ReadStream(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.storage.v1.ReadStream result = new com.google.cloud.bigquery.storage.v1.ReadStream(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -368,39 +336,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadStream resul
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.ReadStream) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadStream) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadStream)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -408,8 +375,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadStream other) {
-      if (other == com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -441,19 +407,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -463,26 +427,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,22 +452,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,37 +474,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -554,31 +507,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -588,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadStream) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadStream) private static final com.google.cloud.bigquery.storage.v1.ReadStream DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadStream(); } @@ -602,27 +551,27 @@ public static com.google.cloud.bigquery.storage.v1.ReadStream getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ReadStream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java similarity index 100% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java similarity index 55% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java index ded71e14ee..7d23a8f1fe 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; -public interface ReadStreamOrBuilder - extends +public interface ReadStreamOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadStream) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java similarity index 68% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java index 9157400c4c..3ee4cc9ae8 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * The message that presents row level error info in a request.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.RowError} */ -public final class RowError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RowError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.RowError) RowErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RowError.newBuilder() to construct. private RowError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RowError() { code_ = 0; message_ = ""; @@ -44,43 +26,39 @@ private RowError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RowError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.RowError.class, - com.google.cloud.bigquery.storage.v1.RowError.Builder.class); + com.google.cloud.bigquery.storage.v1.RowError.class, com.google.cloud.bigquery.storage.v1.RowError.Builder.class); } /** - * - * *
    * Error code for `RowError`.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1.RowError.RowErrorCode} */ - public enum RowErrorCode implements com.google.protobuf.ProtocolMessageEnum { + public enum RowErrorCode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default error.
      * 
@@ -89,8 +67,6 @@ public enum RowErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ ROW_ERROR_CODE_UNSPECIFIED(0), /** - * - * *
      * One or more fields in the row has errors.
      * 
@@ -102,8 +78,6 @@ public enum RowErrorCode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default error.
      * 
@@ -112,8 +86,6 @@ public enum RowErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ROW_ERROR_CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * One or more fields in the row has errors.
      * 
@@ -122,6 +94,7 @@ public enum RowErrorCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FIELDS_ERROR_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -146,47 +119,48 @@ public static RowErrorCode valueOf(int value) { */ public static RowErrorCode forNumber(int value) { switch (value) { - case 0: - return ROW_ERROR_CODE_UNSPECIFIED; - case 1: - return FIELDS_ERROR; - default: - return null; + case 0: return ROW_ERROR_CODE_UNSPECIFIED; + case 1: return FIELDS_ERROR; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + RowErrorCode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RowErrorCode findValueByNumber(int number) { + return RowErrorCode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RowErrorCode findValueByNumber(int number) { - return RowErrorCode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.bigquery.storage.v1.RowError.getDescriptor().getEnumTypes().get(0); } private static final RowErrorCode[] VALUES = values(); - public static RowErrorCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RowErrorCode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -206,14 +180,11 @@ private RowErrorCode(int value) { public static final int INDEX_FIELD_NUMBER = 1; private long index_ = 0L; /** - * - * *
    * Index of the malformed row in the request.
    * 
* * int64 index = 1; - * * @return The index. */ @java.lang.Override @@ -224,53 +195,38 @@ public long getIndex() { public static final int CODE_FIELD_NUMBER = 2; private int code_ = 0; /** - * - * *
    * Structured error reason for a row error.
    * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Structured error reason for a row error.
    * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode getCode() { - com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode result = - com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.forNumber(code_); - return result == null - ? com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode getCode() { + com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode result = com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.forNumber(code_); + return result == null ? com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** - * - * *
    * Description of the issue encountered when processing the row.
    * 
* * string message = 3; - * * @return The message. */ @java.lang.Override @@ -279,29 +235,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
    * Description of the issue encountered when processing the row.
    * 
* * string message = 3; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -310,7 +266,6 @@ public com.google.protobuf.ByteString getMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,13 +277,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (index_ != 0L) { output.writeInt64(1, index_); } - if (code_ - != com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.ROW_ERROR_CODE_UNSPECIFIED - .getNumber()) { + if (code_ != com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.ROW_ERROR_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(2, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { @@ -344,12 +298,12 @@ public int getSerializedSize() { size = 0; if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, index_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, index_); } - if (code_ - != com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.ROW_ERROR_CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, code_); + if (code_ != com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.ROW_ERROR_CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); @@ -362,17 +316,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.RowError)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.RowError other = - (com.google.cloud.bigquery.storage.v1.RowError) obj; + com.google.cloud.bigquery.storage.v1.RowError other = (com.google.cloud.bigquery.storage.v1.RowError) obj; - if (getIndex() != other.getIndex()) return false; + if (getIndex() + != other.getIndex()) return false; if (code_ != other.code_) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -385,7 +340,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIndex()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getIndex()); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; @@ -395,136 +351,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.RowError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.RowError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.RowError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.RowError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The message that presents row level error info in a request.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.RowError} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.RowError) com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.RowError.class, - com.google.cloud.bigquery.storage.v1.RowError.Builder.class); + com.google.cloud.bigquery.storage.v1.RowError.class, com.google.cloud.bigquery.storage.v1.RowError.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.RowError.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; } @java.lang.Override @@ -557,11 +507,8 @@ public com.google.cloud.bigquery.storage.v1.RowError build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.RowError buildPartial() { - com.google.cloud.bigquery.storage.v1.RowError result = - new com.google.cloud.bigquery.storage.v1.RowError(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.RowError result = new com.google.cloud.bigquery.storage.v1.RowError(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -583,39 +530,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.RowError result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.RowError) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.RowError) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.RowError)other); } else { super.mergeFrom(other); return this; @@ -661,31 +607,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - index_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - code_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + index_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + code_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -695,19 +637,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long index_; + private long index_ ; /** - * - * *
      * Index of the malformed row in the request.
      * 
* * int64 index = 1; - * * @return The index. */ @java.lang.Override @@ -715,33 +653,27 @@ public long getIndex() { return index_; } /** - * - * *
      * Index of the malformed row in the request.
      * 
* * int64 index = 1; - * * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(long value) { - + index_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Index of the malformed row in the request.
      * 
* * int64 index = 1; - * * @return This builder for chaining. */ public Builder clearIndex() { @@ -753,29 +685,22 @@ public Builder clearIndex() { private int code_ = 0; /** - * - * *
      * Structured error reason for a row error.
      * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Structured error reason for a row error.
      * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -786,33 +711,24 @@ public Builder setCodeValue(int value) { return this; } /** - * - * *
      * Structured error reason for a row error.
      * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; - * * @return The code. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode getCode() { - com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode result = - com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.forNumber(code_); - return result == null - ? com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode result = com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.forNumber(code_); + return result == null ? com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.UNRECOGNIZED : result; } /** - * - * *
      * Structured error reason for a row error.
      * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; - * * @param value The code to set. * @return This builder for chaining. */ @@ -826,14 +742,11 @@ public Builder setCode(com.google.cloud.bigquery.storage.v1.RowError.RowErrorCod return this; } /** - * - * *
      * Structured error reason for a row error.
      * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -845,20 +758,18 @@ public Builder clearCode() { private java.lang.Object message_ = ""; /** - * - * *
      * Description of the issue encountered when processing the row.
      * 
* * string message = 3; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -867,21 +778,20 @@ public java.lang.String getMessage() { } } /** - * - * *
      * Description of the issue encountered when processing the row.
      * 
* * string message = 3; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -889,35 +799,28 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
      * Description of the issue encountered when processing the row.
      * 
* * string message = 3; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Description of the issue encountered when processing the row.
      * 
* * string message = 3; - * * @return This builder for chaining. */ public Builder clearMessage() { @@ -927,30 +830,26 @@ public Builder clearMessage() { return this; } /** - * - * *
      * Description of the issue encountered when processing the row.
      * 
* * string message = 3; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -960,12 +859,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.RowError) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.RowError) private static final com.google.cloud.bigquery.storage.v1.RowError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.RowError(); } @@ -974,27 +873,27 @@ public static com.google.cloud.bigquery.storage.v1.RowError getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RowError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RowError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1009,4 +908,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.RowError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java similarity index 64% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java index 107ef08f15..6246b23c39 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java @@ -1,88 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface RowErrorOrBuilder - extends +public interface RowErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.RowError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Index of the malformed row in the request.
    * 
* * int64 index = 1; - * * @return The index. */ long getIndex(); /** - * - * *
    * Structured error reason for a row error.
    * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Structured error reason for a row error.
    * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; - * * @return The code. */ com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode getCode(); /** - * - * *
    * Description of the issue encountered when processing the row.
    * 
* * string message = 3; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
    * Description of the issue encountered when processing the row.
    * 
* * string message = 3; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java index 9af974a7e1..e64b55be9a 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Request message for `SplitReadStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.SplitReadStreamRequest} */ -public final class SplitReadStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SplitReadStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.SplitReadStreamRequest) SplitReadStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SplitReadStreamRequest.newBuilder() to construct. private SplitReadStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SplitReadStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SplitReadStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.class, - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the stream to split.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the stream to split.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,8 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FRACTION_FIELD_NUMBER = 2; private double fraction_ = 0D; /** - * - * *
    * A value in the range (0.0, 1.0) that specifies the fractional point at
    * which the original stream should be split. The actual split point is
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * double fraction = 2; - * * @return The fraction. */ @java.lang.Override @@ -147,7 +117,6 @@ public double getFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,7 +128,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -179,7 +149,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (java.lang.Double.doubleToRawLongBits(fraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, fraction_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, fraction_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -189,17 +160,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest other = - (com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) obj; + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest other = (com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (java.lang.Double.doubleToLongBits(getFraction()) - != java.lang.Double.doubleToLongBits(other.getFraction())) return false; + != java.lang.Double.doubleToLongBits( + other.getFraction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,146 +186,137 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFraction())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFraction())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `SplitReadStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.SplitReadStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.SplitReadStreamRequest) com.google.cloud.bigquery.storage.v1.SplitReadStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.class, - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -364,9 +327,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; } @java.lang.Override @@ -385,11 +348,8 @@ public com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest result = - new com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest result = new com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -408,39 +368,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.SplitReadStreamR public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -448,8 +407,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -484,25 +442,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: - { - fraction_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + fraction_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -512,27 +467,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the stream to split.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -541,23 +491,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the stream to split.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -565,39 +512,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the stream to split.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the stream to split.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -607,23 +543,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the stream to split.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -631,10 +561,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private double fraction_; + private double fraction_ ; /** - * - * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -646,7 +574,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * double fraction = 2; - * * @return The fraction. */ @java.lang.Override @@ -654,8 +581,6 @@ public double getFraction() { return fraction_; } /** - * - * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -667,20 +592,17 @@ public double getFraction() {
      * 
* * double fraction = 2; - * * @param value The fraction to set. * @return This builder for chaining. */ public Builder setFraction(double value) { - + fraction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -692,7 +614,6 @@ public Builder setFraction(double value) {
      * 
* * double fraction = 2; - * * @return This builder for chaining. */ public Builder clearFraction() { @@ -701,9 +622,9 @@ public Builder clearFraction() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -713,12 +634,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.SplitReadStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.SplitReadStreamRequest) private static final com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest(); } @@ -727,27 +648,27 @@ public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SplitReadStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SplitReadStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -762,4 +683,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java index 9a7e2a7913..66c1eb1354 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface SplitReadStreamRequestOrBuilder - extends +public interface SplitReadStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.SplitReadStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the stream to split.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the stream to split.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A value in the range (0.0, 1.0) that specifies the fractional point at
    * which the original stream should be split. The actual split point is
@@ -66,7 +39,6 @@ public interface SplitReadStreamRequestOrBuilder
    * 
* * double fraction = 2; - * * @return The fraction. */ double getFraction(); diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java similarity index 68% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java index 68c466fe8b..4546ddbd6f 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java @@ -1,75 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Response message for `SplitReadStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.SplitReadStreamResponse} */ -public final class SplitReadStreamResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SplitReadStreamResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.SplitReadStreamResponse) SplitReadStreamResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SplitReadStreamResponse.newBuilder() to construct. private SplitReadStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SplitReadStreamResponse() {} + private SplitReadStreamResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SplitReadStreamResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.class, - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.Builder.class); } public static final int PRIMARY_STREAM_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1.ReadStream primaryStream_; /** - * - * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -77,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; - * * @return Whether the primaryStream field is set. */ @java.lang.Override @@ -85,8 +64,6 @@ public boolean hasPrimaryStream() { return primaryStream_ != null; } /** - * - * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -94,18 +71,13 @@ public boolean hasPrimaryStream() {
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; - * * @return The primaryStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadStream getPrimaryStream() { - return primaryStream_ == null - ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() - : primaryStream_; + return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : primaryStream_; } /** - * - * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -116,23 +88,18 @@ public com.google.cloud.bigquery.storage.v1.ReadStream getPrimaryStream() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getPrimaryStreamOrBuilder() {
-    return primaryStream_ == null
-        ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()
-        : primaryStream_;
+    return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : primaryStream_;
   }
 
   public static final int REMAINDER_STREAM_FIELD_NUMBER = 2;
   private com.google.cloud.bigquery.storage.v1.ReadStream remainderStream_;
   /**
-   *
-   *
    * 
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; - * * @return Whether the remainderStream field is set. */ @java.lang.Override @@ -140,26 +107,19 @@ public boolean hasRemainderStream() { return remainderStream_ != null; } /** - * - * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; - * * @return The remainderStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadStream getRemainderStream() { - return remainderStream_ == null - ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() - : remainderStream_; + return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : remainderStream_; } /** - * - * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
@@ -169,13 +129,10 @@ public com.google.cloud.bigquery.storage.v1.ReadStream getRemainderStream() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getRemainderStreamOrBuilder() {
-    return remainderStream_ == null
-        ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()
-        : remainderStream_;
+    return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : remainderStream_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -187,7 +144,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (primaryStream_ != null) {
       output.writeMessage(1, getPrimaryStream());
     }
@@ -204,10 +162,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (primaryStream_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrimaryStream());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getPrimaryStream());
     }
     if (remainderStream_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRemainderStream());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getRemainderStream());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -217,21 +177,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse other =
-        (com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse) obj;
+    com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse other = (com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse) obj;
 
     if (hasPrimaryStream() != other.hasPrimaryStream()) return false;
     if (hasPrimaryStream()) {
-      if (!getPrimaryStream().equals(other.getPrimaryStream())) return false;
+      if (!getPrimaryStream()
+          .equals(other.getPrimaryStream())) return false;
     }
     if (hasRemainderStream() != other.hasRemainderStream()) return false;
     if (hasRemainderStream()) {
-      if (!getRemainderStream().equals(other.getRemainderStream())) return false;
+      if (!getRemainderStream()
+          .equals(other.getRemainderStream())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -258,136 +219,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response message for `SplitReadStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.SplitReadStreamResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.SplitReadStreamResponse) com.google.cloud.bigquery.storage.v1.SplitReadStreamResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.class, - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -406,14 +360,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.getDefaultInstance(); } @@ -428,25 +381,23 @@ public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse buildPartial() { - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse result = - new com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse result = new com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.primaryStream_ = - primaryStreamBuilder_ == null ? primaryStream_ : primaryStreamBuilder_.build(); + result.primaryStream_ = primaryStreamBuilder_ == null + ? primaryStream_ + : primaryStreamBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.remainderStream_ = - remainderStreamBuilder_ == null ? remainderStream_ : remainderStreamBuilder_.build(); + result.remainderStream_ = remainderStreamBuilder_ == null + ? remainderStream_ + : remainderStreamBuilder_.build(); } } @@ -454,39 +405,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse)other); } else { super.mergeFrom(other); return this; @@ -494,9 +444,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse other) { - if (other - == com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.getDefaultInstance()) return this; if (other.hasPrimaryStream()) { mergePrimaryStream(other.getPrimaryStream()); } @@ -529,25 +477,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPrimaryStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRemainderStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getPrimaryStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getRemainderStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,18 +506,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.bigquery.storage.v1.ReadStream primaryStream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadStream, - com.google.cloud.bigquery.storage.v1.ReadStream.Builder, - com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> - primaryStreamBuilder_; + com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> primaryStreamBuilder_; /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -576,15 +519,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; - * * @return Whether the primaryStream field is set. */ public boolean hasPrimaryStream() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -592,21 +532,16 @@ public boolean hasPrimaryStream() {
      * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; - * * @return The primaryStream. */ public com.google.cloud.bigquery.storage.v1.ReadStream getPrimaryStream() { if (primaryStreamBuilder_ == null) { - return primaryStream_ == null - ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() - : primaryStream_; + return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : primaryStream_; } else { return primaryStreamBuilder_.getMessage(); } } /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -629,8 +564,6 @@ public Builder setPrimaryStream(com.google.cloud.bigquery.storage.v1.ReadStream
       return this;
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -651,8 +584,6 @@ public Builder setPrimaryStream(
       return this;
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -663,10 +594,9 @@ public Builder setPrimaryStream(
      */
     public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1.ReadStream value) {
       if (primaryStreamBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && primaryStream_ != null
-            && primaryStream_
-                != com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          primaryStream_ != null &&
+          primaryStream_ != com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()) {
           getPrimaryStreamBuilder().mergeFrom(value);
         } else {
           primaryStream_ = value;
@@ -679,8 +609,6 @@ public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1.ReadStrea
       return this;
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -700,8 +628,6 @@ public Builder clearPrimaryStream() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -716,8 +642,6 @@ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder getPrimaryStreamB
       return getPrimaryStreamFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -730,14 +654,11 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getPrimaryStream
       if (primaryStreamBuilder_ != null) {
         return primaryStreamBuilder_.getMessageOrBuilder();
       } else {
-        return primaryStream_ == null
-            ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()
-            : primaryStream_;
+        return primaryStream_ == null ?
+            com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : primaryStream_;
       }
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -747,17 +668,14 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getPrimaryStream
      * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.ReadStream,
-            com.google.cloud.bigquery.storage.v1.ReadStream.Builder,
-            com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>
+        com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> 
         getPrimaryStreamFieldBuilder() {
       if (primaryStreamBuilder_ == null) {
-        primaryStreamBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1.ReadStream,
-                com.google.cloud.bigquery.storage.v1.ReadStream.Builder,
-                com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>(
-                getPrimaryStream(), getParentForChildren(), isClean());
+        primaryStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>(
+                getPrimaryStream(),
+                getParentForChildren(),
+                isClean());
         primaryStream_ = null;
       }
       return primaryStreamBuilder_;
@@ -765,49 +683,36 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getPrimaryStream
 
     private com.google.cloud.bigquery.storage.v1.ReadStream remainderStream_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.ReadStream,
-            com.google.cloud.bigquery.storage.v1.ReadStream.Builder,
-            com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>
-        remainderStreamBuilder_;
+        com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> remainderStreamBuilder_;
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; - * * @return Whether the remainderStream field is set. */ public boolean hasRemainderStream() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; - * * @return The remainderStream. */ public com.google.cloud.bigquery.storage.v1.ReadStream getRemainderStream() { if (remainderStreamBuilder_ == null) { - return remainderStream_ == null - ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() - : remainderStream_; + return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : remainderStream_; } else { return remainderStreamBuilder_.getMessage(); } } /** - * - * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -829,8 +734,6 @@ public Builder setRemainderStream(com.google.cloud.bigquery.storage.v1.ReadStrea
       return this;
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -850,8 +753,6 @@ public Builder setRemainderStream(
       return this;
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -861,10 +762,9 @@ public Builder setRemainderStream(
      */
     public Builder mergeRemainderStream(com.google.cloud.bigquery.storage.v1.ReadStream value) {
       if (remainderStreamBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && remainderStream_ != null
-            && remainderStream_
-                != com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          remainderStream_ != null &&
+          remainderStream_ != com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()) {
           getRemainderStreamBuilder().mergeFrom(value);
         } else {
           remainderStream_ = value;
@@ -877,8 +777,6 @@ public Builder mergeRemainderStream(com.google.cloud.bigquery.storage.v1.ReadStr
       return this;
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -897,8 +795,6 @@ public Builder clearRemainderStream() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -912,8 +808,6 @@ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder getRemainderStrea
       return getRemainderStreamFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -925,14 +819,11 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getRemainderStre
       if (remainderStreamBuilder_ != null) {
         return remainderStreamBuilder_.getMessageOrBuilder();
       } else {
-        return remainderStream_ == null
-            ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()
-            : remainderStream_;
+        return remainderStream_ == null ?
+            com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : remainderStream_;
       }
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -941,24 +832,21 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getRemainderStre
      * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.ReadStream,
-            com.google.cloud.bigquery.storage.v1.ReadStream.Builder,
-            com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>
+        com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> 
         getRemainderStreamFieldBuilder() {
       if (remainderStreamBuilder_ == null) {
-        remainderStreamBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1.ReadStream,
-                com.google.cloud.bigquery.storage.v1.ReadStream.Builder,
-                com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>(
-                getRemainderStream(), getParentForChildren(), isClean());
+        remainderStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>(
+                getRemainderStream(),
+                getParentForChildren(),
+                isClean());
         remainderStream_ = null;
       }
       return remainderStreamBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -968,13 +856,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.SplitReadStreamResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.SplitReadStreamResponse)
-  private static final com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse();
   }
@@ -983,27 +870,27 @@ public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SplitReadStreamResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SplitReadStreamResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1018,4 +905,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java
similarity index 77%
rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java
index 282ad5342c..4e152f4f5d 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
-public interface SplitReadStreamResponseOrBuilder
-    extends
+public interface SplitReadStreamResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.SplitReadStreamResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -33,13 +15,10 @@ public interface SplitReadStreamResponseOrBuilder
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; - * * @return Whether the primaryStream field is set. */ boolean hasPrimaryStream(); /** - * - * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -47,13 +26,10 @@ public interface SplitReadStreamResponseOrBuilder
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; - * * @return The primaryStream. */ com.google.cloud.bigquery.storage.v1.ReadStream getPrimaryStream(); /** - * - * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -65,34 +41,26 @@ public interface SplitReadStreamResponseOrBuilder
   com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getPrimaryStreamOrBuilder();
 
   /**
-   *
-   *
    * 
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; - * * @return Whether the remainderStream field is set. */ boolean hasRemainderStream(); /** - * - * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; - * * @return The remainderStream. */ com.google.cloud.bigquery.storage.v1.ReadStream getRemainderStream(); /** - * - * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java
similarity index 69%
rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java
index 5d5ebe5b04..ce5aebf1fe 100644
--- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java
+++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
 /**
- *
- *
  * 
  * Structured custom BigQuery Storage error message. The error can be attached
  * as error details in the returned rpc Status. In particular, the use of error
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.StorageError}
  */
-public final class StorageError extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StorageError extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.StorageError)
     StorageErrorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StorageError.newBuilder() to construct.
   private StorageError(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StorageError() {
     code_ = 0;
     entity_ = "";
@@ -48,43 +30,39 @@ private StorageError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StorageError();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto
-        .internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto
-        .internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.StorageError.class,
-            com.google.cloud.bigquery.storage.v1.StorageError.Builder.class);
+            com.google.cloud.bigquery.storage.v1.StorageError.class, com.google.cloud.bigquery.storage.v1.StorageError.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Error code for `StorageError`.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode} */ - public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageErrorCode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default error.
      * 
@@ -93,8 +71,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ STORAGE_ERROR_CODE_UNSPECIFIED(0), /** - * - * *
      * Table is not found in the system.
      * 
@@ -103,8 +79,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ TABLE_NOT_FOUND(1), /** - * - * *
      * Stream is already committed.
      * 
@@ -113,8 +87,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ STREAM_ALREADY_COMMITTED(2), /** - * - * *
      * Stream is not found.
      * 
@@ -123,8 +95,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ STREAM_NOT_FOUND(3), /** - * - * *
      * Invalid Stream type.
      * For example, you try to commit a stream that is not pending.
@@ -134,8 +104,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum
      */
     INVALID_STREAM_TYPE(4),
     /**
-     *
-     *
      * 
      * Invalid Stream state.
      * For example, you try to commit a stream that is not finalized or is
@@ -146,8 +114,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum
      */
     INVALID_STREAM_STATE(5),
     /**
-     *
-     *
      * 
      * Stream is finalized.
      * 
@@ -156,8 +122,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ STREAM_FINALIZED(6), /** - * - * *
      * There is a schema mismatch and it is caused by user schema has extra
      * field than bigquery schema.
@@ -167,8 +131,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum
      */
     SCHEMA_MISMATCH_EXTRA_FIELDS(7),
     /**
-     *
-     *
      * 
      * Offset already exists.
      * 
@@ -177,8 +139,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ OFFSET_ALREADY_EXISTS(8), /** - * - * *
      * Offset out of range.
      * 
@@ -190,8 +150,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Default error.
      * 
@@ -200,8 +158,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int STORAGE_ERROR_CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Table is not found in the system.
      * 
@@ -210,8 +166,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int TABLE_NOT_FOUND_VALUE = 1; /** - * - * *
      * Stream is already committed.
      * 
@@ -220,8 +174,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int STREAM_ALREADY_COMMITTED_VALUE = 2; /** - * - * *
      * Stream is not found.
      * 
@@ -230,8 +182,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int STREAM_NOT_FOUND_VALUE = 3; /** - * - * *
      * Invalid Stream type.
      * For example, you try to commit a stream that is not pending.
@@ -241,8 +191,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int INVALID_STREAM_TYPE_VALUE = 4;
     /**
-     *
-     *
      * 
      * Invalid Stream state.
      * For example, you try to commit a stream that is not finalized or is
@@ -253,8 +201,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int INVALID_STREAM_STATE_VALUE = 5;
     /**
-     *
-     *
      * 
      * Stream is finalized.
      * 
@@ -263,8 +209,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int STREAM_FINALIZED_VALUE = 6; /** - * - * *
      * There is a schema mismatch and it is caused by user schema has extra
      * field than bigquery schema.
@@ -274,8 +218,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int SCHEMA_MISMATCH_EXTRA_FIELDS_VALUE = 7;
     /**
-     *
-     *
      * 
      * Offset already exists.
      * 
@@ -284,8 +226,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int OFFSET_ALREADY_EXISTS_VALUE = 8; /** - * - * *
      * Offset out of range.
      * 
@@ -294,6 +234,7 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int OFFSET_OUT_OF_RANGE_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -318,59 +259,47 @@ public static StorageErrorCode valueOf(int value) { */ public static StorageErrorCode forNumber(int value) { switch (value) { - case 0: - return STORAGE_ERROR_CODE_UNSPECIFIED; - case 1: - return TABLE_NOT_FOUND; - case 2: - return STREAM_ALREADY_COMMITTED; - case 3: - return STREAM_NOT_FOUND; - case 4: - return INVALID_STREAM_TYPE; - case 5: - return INVALID_STREAM_STATE; - case 6: - return STREAM_FINALIZED; - case 7: - return SCHEMA_MISMATCH_EXTRA_FIELDS; - case 8: - return OFFSET_ALREADY_EXISTS; - case 9: - return OFFSET_OUT_OF_RANGE; - default: - return null; + case 0: return STORAGE_ERROR_CODE_UNSPECIFIED; + case 1: return TABLE_NOT_FOUND; + case 2: return STREAM_ALREADY_COMMITTED; + case 3: return STREAM_NOT_FOUND; + case 4: return INVALID_STREAM_TYPE; + case 5: return INVALID_STREAM_STATE; + case 6: return STREAM_FINALIZED; + case 7: return SCHEMA_MISMATCH_EXTRA_FIELDS; + case 8: return OFFSET_ALREADY_EXISTS; + case 9: return OFFSET_OUT_OF_RANGE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageErrorCode findValueByNumber(int number) { - return StorageErrorCode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + StorageErrorCode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageErrorCode findValueByNumber(int number) { + return StorageErrorCode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageError.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageError.getDescriptor().getEnumTypes().get(0); } private static final StorageErrorCode[] VALUES = values(); @@ -378,7 +307,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static StorageErrorCode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -398,53 +328,38 @@ private StorageErrorCode(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_ = 0; /** - * - * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode getCode() { - com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode result = - com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.forNumber(code_); - return result == null - ? com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode getCode() { + com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode result = com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.forNumber(code_); + return result == null ? com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.UNRECOGNIZED : result; } public static final int ENTITY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** - * - * *
    * Name of the failed entity.
    * 
* * string entity = 2; - * * @return The entity. */ @java.lang.Override @@ -453,29 +368,29 @@ public java.lang.String getEntity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; } } /** - * - * *
    * Name of the failed entity.
    * 
* * string entity = 2; - * * @return The bytes for entity. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityBytes() { + public com.google.protobuf.ByteString + getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entity_ = b; return b; } else { @@ -484,18 +399,14 @@ public com.google.protobuf.ByteString getEntityBytes() { } public static final int ERROR_MESSAGE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** - * - * *
    * Message that describes the error.
    * 
* * string error_message = 3; - * * @return The errorMessage. */ @java.lang.Override @@ -504,29 +415,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * Message that describes the error.
    * 
* * string error_message = 3; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -535,7 +446,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -547,11 +457,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode - .STORAGE_ERROR_CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.STORAGE_ERROR_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { @@ -569,11 +477,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode - .STORAGE_ERROR_CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.STORAGE_ERROR_CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entity_); @@ -589,17 +495,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.StorageError)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.StorageError other = - (com.google.cloud.bigquery.storage.v1.StorageError) obj; + com.google.cloud.bigquery.storage.v1.StorageError other = (com.google.cloud.bigquery.storage.v1.StorageError) obj; if (code_ != other.code_) return false; - if (!getEntity().equals(other.getEntity())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getEntity() + .equals(other.getEntity())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -623,103 +530,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.StorageError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.StorageError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.StorageError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Structured custom BigQuery Storage error message. The error can be attached
    * as error details in the returned rpc Status. In particular, the use of error
@@ -729,32 +629,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.StorageError}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.StorageError)
       com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.StorageError.class,
-              com.google.cloud.bigquery.storage.v1.StorageError.Builder.class);
+              com.google.cloud.bigquery.storage.v1.StorageError.class, com.google.cloud.bigquery.storage.v1.StorageError.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.StorageError.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -766,9 +667,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
     }
 
     @java.lang.Override
@@ -787,11 +688,8 @@ public com.google.cloud.bigquery.storage.v1.StorageError build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.StorageError buildPartial() {
-      com.google.cloud.bigquery.storage.v1.StorageError result =
-          new com.google.cloud.bigquery.storage.v1.StorageError(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.storage.v1.StorageError result = new com.google.cloud.bigquery.storage.v1.StorageError(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -813,39 +711,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.StorageError res
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.StorageError) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.StorageError) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.StorageError)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -853,8 +750,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.StorageError other) {
-      if (other == com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -894,31 +790,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                code_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                entity_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                errorMessage_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              code_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              entity_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              errorMessage_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -928,34 +820,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -966,38 +850,28 @@ public Builder setCodeValue(int value) { return this; } /** - * - * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode getCode() { - com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode result = - com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.forNumber(code_); - return result == null - ? com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode result = com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.forNumber(code_); + return result == null ? com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.UNRECOGNIZED : result; } /** - * - * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode value) { + public Builder setCode(com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode value) { if (value == null) { throw new NullPointerException(); } @@ -1007,14 +881,11 @@ public Builder setCode( return this; } /** - * - * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -1026,20 +897,18 @@ public Builder clearCode() { private java.lang.Object entity_ = ""; /** - * - * *
      * Name of the failed entity.
      * 
* * string entity = 2; - * * @return The entity. */ public java.lang.String getEntity() { java.lang.Object ref = entity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; @@ -1048,21 +917,20 @@ public java.lang.String getEntity() { } } /** - * - * *
      * Name of the failed entity.
      * 
* * string entity = 2; - * * @return The bytes for entity. */ - public com.google.protobuf.ByteString getEntityBytes() { + public com.google.protobuf.ByteString + getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entity_ = b; return b; } else { @@ -1070,35 +938,28 @@ public com.google.protobuf.ByteString getEntityBytes() { } } /** - * - * *
      * Name of the failed entity.
      * 
* * string entity = 2; - * * @param value The entity to set. * @return This builder for chaining. */ - public Builder setEntity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entity_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Name of the failed entity.
      * 
* * string entity = 2; - * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1108,21 +969,17 @@ public Builder clearEntity() { return this; } /** - * - * *
      * Name of the failed entity.
      * 
* * string entity = 2; - * * @param value The bytes for entity to set. * @return This builder for chaining. */ - public Builder setEntityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entity_ = value; bitField0_ |= 0x00000002; @@ -1132,20 +989,18 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * Message that describes the error.
      * 
* * string error_message = 3; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -1154,21 +1009,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * Message that describes the error.
      * 
* * string error_message = 3; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -1176,35 +1030,28 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * Message that describes the error.
      * 
* * string error_message = 3; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } errorMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Message that describes the error.
      * 
* * string error_message = 3; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -1214,30 +1061,26 @@ public Builder clearErrorMessage() { return this; } /** - * - * *
      * Message that describes the error.
      * 
* * string error_message = 3; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1247,12 +1090,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.StorageError) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.StorageError) private static final com.google.cloud.bigquery.storage.v1.StorageError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.StorageError(); } @@ -1261,27 +1104,27 @@ public static com.google.cloud.bigquery.storage.v1.StorageError getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1296,4 +1139,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.StorageError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java similarity index 64% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java index c483c0fda6..fe2c703ae8 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java @@ -1,100 +1,68 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface StorageErrorOrBuilder - extends +public interface StorageErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.StorageError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; - * * @return The code. */ com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode getCode(); /** - * - * *
    * Name of the failed entity.
    * 
* * string entity = 2; - * * @return The entity. */ java.lang.String getEntity(); /** - * - * *
    * Name of the failed entity.
    * 
* * string entity = 2; - * * @return The bytes for entity. */ - com.google.protobuf.ByteString getEntityBytes(); + com.google.protobuf.ByteString + getEntityBytes(); /** - * - * *
    * Message that describes the error.
    * 
* * string error_message = 3; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * Message that describes the error.
    * 
* * string error_message = 3; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java new file mode 100644 index 0000000000..524e1286e8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java @@ -0,0 +1,499 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class StorageProto { + private StorageProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/bigquery/storage/v1/stora" + + "ge.proto\022 google.cloud.bigquery.storage." + + "v1\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032,g" + + "oogle/cloud/bigquery/storage/v1/arrow.pr" + + "oto\032+google/cloud/bigquery/storage/v1/av" + + "ro.proto\032/google/cloud/bigquery/storage/" + + "v1/protobuf.proto\032-google/cloud/bigquery" + + "/storage/v1/stream.proto\032,google/cloud/b" + + "igquery/storage/v1/table.proto\032\037google/p" + + "rotobuf/timestamp.proto\032\036google/protobuf" + + "/wrappers.proto\032\027google/rpc/status.proto" + + "\"\347\001\n\030CreateReadSessionRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022H\n\014read_session\030\002 \001(\013" + + "2-.google.cloud.bigquery.storage.v1.Read" + + "SessionB\003\340A\002\022\030\n\020max_stream_count\030\003 \001(\005\022\"" + + "\n\032preferred_min_stream_count\030\004 \001(\005\"i\n\017Re" + + "adRowsRequest\022F\n\013read_stream\030\001 \001(\tB1\340A\002\372" + + "A+\n)bigquerystorage.googleapis.com/ReadS" + + "tream\022\016\n\006offset\030\002 \001(\003\")\n\rThrottleState\022\030" + + "\n\020throttle_percent\030\001 \001(\005\"\227\001\n\013StreamStats" + + "\022H\n\010progress\030\002 \001(\01326.google.cloud.bigque" + + "ry.storage.v1.StreamStats.Progress\032>\n\010Pr" + + "ogress\022\031\n\021at_response_start\030\001 \001(\001\022\027\n\017at_" + + "response_end\030\002 \001(\001\"\347\003\n\020ReadRowsResponse\022" + + "?\n\tavro_rows\030\003 \001(\0132*.google.cloud.bigque" + + "ry.storage.v1.AvroRowsH\000\022P\n\022arrow_record" + + "_batch\030\004 \001(\01322.google.cloud.bigquery.sto" + + "rage.v1.ArrowRecordBatchH\000\022\021\n\trow_count\030" + + "\006 \001(\003\022<\n\005stats\030\002 \001(\0132-.google.cloud.bigq" + + "uery.storage.v1.StreamStats\022G\n\016throttle_" + + "state\030\005 \001(\0132/.google.cloud.bigquery.stor" + + "age.v1.ThrottleState\022H\n\013avro_schema\030\007 \001(" + + "\0132,.google.cloud.bigquery.storage.v1.Avr" + + "oSchemaB\003\340A\003H\001\022J\n\014arrow_schema\030\010 \001(\0132-.g" + + "oogle.cloud.bigquery.storage.v1.ArrowSch" + + "emaB\003\340A\003H\001B\006\n\004rowsB\010\n\006schema\"k\n\026SplitRea" + + "dStreamRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)bi" + + "gquerystorage.googleapis.com/ReadStream\022" + + "\020\n\010fraction\030\002 \001(\001\"\247\001\n\027SplitReadStreamRes" + + "ponse\022D\n\016primary_stream\030\001 \001(\0132,.google.c" + + "loud.bigquery.storage.v1.ReadStream\022F\n\020r" + + "emainder_stream\030\002 \001(\0132,.google.cloud.big" + + "query.storage.v1.ReadStream\"\233\001\n\030CreateWr" + + "iteStreamRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" + + "\n\035bigquery.googleapis.com/Table\022H\n\014write" + + "_stream\030\002 \001(\0132-.google.cloud.bigquery.st" + + "orage.v1.WriteStreamB\003\340A\002\"\211\006\n\021AppendRows" + + "Request\022H\n\014write_stream\030\001 \001(\tB2\340A\002\372A,\n*b" + + "igquerystorage.googleapis.com/WriteStrea" + + "m\022+\n\006offset\030\002 \001(\0132\033.google.protobuf.Int6" + + "4Value\022S\n\nproto_rows\030\004 \001(\0132=.google.clou" + + "d.bigquery.storage.v1.AppendRowsRequest." + + "ProtoDataH\000\022\020\n\010trace_id\030\006 \001(\t\022{\n\035missing" + + "_value_interpretations\030\007 \003(\0132T.google.cl" + + "oud.bigquery.storage.v1.AppendRowsReques" + + "t.MissingValueInterpretationsEntry\032\214\001\n\tP" + + "rotoData\022D\n\rwriter_schema\030\001 \001(\0132-.google" + + ".cloud.bigquery.storage.v1.ProtoSchema\0229" + + "\n\004rows\030\002 \001(\0132+.google.cloud.bigquery.sto" + + "rage.v1.ProtoRows\032\222\001\n MissingValueInterp" + + "retationsEntry\022\013\n\003key\030\001 \001(\t\022]\n\005value\030\002 \001" + + "(\0162N.google.cloud.bigquery.storage.v1.Ap" + + "pendRowsRequest.MissingValueInterpretati" + + "on:\0028\001\"m\n\032MissingValueInterpretation\022,\n(" + + "MISSING_VALUE_INTERPRETATION_UNSPECIFIED" + + "\020\000\022\016\n\nNULL_VALUE\020\001\022\021\n\rDEFAULT_VALUE\020\002B\006\n" + + "\004rows\"\373\002\n\022AppendRowsResponse\022Z\n\rappend_r" + + "esult\030\001 \001(\0132A.google.cloud.bigquery.stor" + + "age.v1.AppendRowsResponse.AppendResultH\000" + + "\022#\n\005error\030\002 \001(\0132\022.google.rpc.StatusH\000\022E\n" + + "\016updated_schema\030\003 \001(\0132-.google.cloud.big" + + "query.storage.v1.TableSchema\022>\n\nrow_erro" + + "rs\030\004 \003(\0132*.google.cloud.bigquery.storage" + + ".v1.RowError\022\024\n\014write_stream\030\005 \001(\t\032;\n\014Ap" + + "pendResult\022+\n\006offset\030\001 \001(\0132\033.google.prot" + + "obuf.Int64ValueB\n\n\010response\"\232\001\n\025GetWrite" + + "StreamRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*big" + + "querystorage.googleapis.com/WriteStream\022" + + "?\n\004view\030\003 \001(\01621.google.cloud.bigquery.st" + + "orage.v1.WriteStreamView\"s\n\036BatchCommitW" + + "riteStreamsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372" + + "A\037\n\035bigquery.googleapis.com/Table\022\032\n\rwri" + + "te_streams\030\002 \003(\tB\003\340A\002\"\231\001\n\037BatchCommitWri" + + "teStreamsResponse\022/\n\013commit_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022E\n\rstream_err" + + "ors\030\002 \003(\0132..google.cloud.bigquery.storag" + + "e.v1.StorageError\"^\n\032FinalizeWriteStream" + + "Request\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquerys" + + "torage.googleapis.com/WriteStream\"0\n\033Fin" + + "alizeWriteStreamResponse\022\021\n\trow_count\030\001 " + + "\001(\003\"\211\001\n\020FlushRowsRequest\022H\n\014write_stream" + + "\030\001 \001(\tB2\340A\002\372A,\n*bigquerystorage.googleap" + + "is.com/WriteStream\022+\n\006offset\030\002 \001(\0132\033.goo" + + "gle.protobuf.Int64Value\"#\n\021FlushRowsResp" + + "onse\022\016\n\006offset\030\001 \001(\003\"\245\003\n\014StorageError\022M\n" + + "\004code\030\001 \001(\0162?.google.cloud.bigquery.stor" + + "age.v1.StorageError.StorageErrorCode\022\016\n\006" + + "entity\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\"\236\002\n\020" + + "StorageErrorCode\022\"\n\036STORAGE_ERROR_CODE_U" + + "NSPECIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STR" + + "EAM_ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FO" + + "UND\020\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALI" + + "D_STREAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\006\022 " + + "\n\034SCHEMA_MISMATCH_EXTRA_FIELDS\020\007\022\031\n\025OFFS" + + "ET_ALREADY_EXISTS\020\010\022\027\n\023OFFSET_OUT_OF_RAN" + + "GE\020\t\"\263\001\n\010RowError\022\r\n\005index\030\001 \001(\003\022E\n\004code" + + "\030\002 \001(\01627.google.cloud.bigquery.storage.v" + + "1.RowError.RowErrorCode\022\017\n\007message\030\003 \001(\t" + + "\"@\n\014RowErrorCode\022\036\n\032ROW_ERROR_CODE_UNSPE" + + "CIFIED\020\000\022\020\n\014FIELDS_ERROR\020\0012\222\006\n\014BigQueryR" + + "ead\022\351\001\n\021CreateReadSession\022:.google.cloud" + + ".bigquery.storage.v1.CreateReadSessionRe" + + "quest\032-.google.cloud.bigquery.storage.v1" + + ".ReadSession\"i\202\323\344\223\002<\"7/v1/{read_session." + + "table=projects/*/datasets/*/tables/*}:\001*" + + "\332A$parent,read_session,max_stream_count\022" + + "\317\001\n\010ReadRows\0221.google.cloud.bigquery.sto" + + "rage.v1.ReadRowsRequest\0322.google.cloud.b" + + "igquery.storage.v1.ReadRowsResponse\"Z\202\323\344" + + "\223\002?\022=/v1/{read_stream=projects/*/locatio" + + "ns/*/sessions/*/streams/*}\332A\022read_stream" + + ",offset0\001\022\306\001\n\017SplitReadStream\0228.google.c" + + "loud.bigquery.storage.v1.SplitReadStream" + + "Request\0329.google.cloud.bigquery.storage." + + "v1.SplitReadStreamResponse\">\202\323\344\223\0028\0226/v1/" + + "{name=projects/*/locations/*/sessions/*/" + + "streams/*}\032{\312A\036bigquerystorage.googleapi" + + "s.com\322AWhttps://www.googleapis.com/auth/" + + "bigquery,https://www.googleapis.com/auth" + + "/cloud-platform2\274\013\n\rBigQueryWrite\022\327\001\n\021Cr" + + "eateWriteStream\022:.google.cloud.bigquery." + + "storage.v1.CreateWriteStreamRequest\032-.go" + + "ogle.cloud.bigquery.storage.v1.WriteStre" + + "am\"W\202\323\344\223\002;\"+/v1/{parent=projects/*/datas" + + "ets/*/tables/*}:\014write_stream\332A\023parent,w" + + "rite_stream\022\322\001\n\nAppendRows\0223.google.clou" + + "d.bigquery.storage.v1.AppendRowsRequest\032" + + "4.google.cloud.bigquery.storage.v1.Appen" + + "dRowsResponse\"U\202\323\344\223\002@\";/v1/{write_stream" + + "=projects/*/datasets/*/tables/*/streams/" + + "*}:\001*\332A\014write_stream(\0010\001\022\277\001\n\016GetWriteStr" + + "eam\0227.google.cloud.bigquery.storage.v1.G" + + "etWriteStreamRequest\032-.google.cloud.bigq" + + "uery.storage.v1.WriteStream\"E\202\323\344\223\0028\"3/v1" + + "/{name=projects/*/datasets/*/tables/*/st" + + "reams/*}:\001*\332A\004name\022\331\001\n\023FinalizeWriteStre" + + "am\022<.google.cloud.bigquery.storage.v1.Fi" + + "nalizeWriteStreamRequest\032=.google.cloud." + + "bigquery.storage.v1.FinalizeWriteStreamR" + + "esponse\"E\202\323\344\223\0028\"3/v1/{name=projects/*/da" + + "tasets/*/tables/*/streams/*}:\001*\332A\004name\022\334" + + "\001\n\027BatchCommitWriteStreams\022@.google.clou" + + "d.bigquery.storage.v1.BatchCommitWriteSt" + + "reamsRequest\032A.google.cloud.bigquery.sto" + + "rage.v1.BatchCommitWriteStreamsResponse\"" + + "<\202\323\344\223\002-\022+/v1/{parent=projects/*/datasets" + + "/*/tables/*}\332A\006parent\022\313\001\n\tFlushRows\0222.go" + + "ogle.cloud.bigquery.storage.v1.FlushRows" + + "Request\0323.google.cloud.bigquery.storage." + + "v1.FlushRowsResponse\"U\202\323\344\223\002@\";/v1/{write" + + "_stream=projects/*/datasets/*/tables/*/s" + + "treams/*}:\001*\332A\014write_stream\032\260\001\312A\036bigquer" + + "ystorage.googleapis.com\322A\213\001https://www.g" + + "oogleapis.com/auth/bigquery,https://www." + + "googleapis.com/auth/bigquery.insertdata," + + "https://www.googleapis.com/auth/cloud-pl" + + "atformB\224\002\n$com.google.cloud.bigquery.sto" + + "rage.v1B\014StorageProtoP\001Z>cloud.google.co" + + "m/go/bigquery/storage/apiv1/storagepb;st" + + "oragepb\252\002 Google.Cloud.BigQuery.Storage." + + "V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1\352AU" + + "\n\035bigquery.googleapis.com/Table\0224project" + + "s/{project}/datasets/{dataset}/tables/{t" + + "able}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.ProtoBufProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor, + new java.lang.String[] { "Parent", "ReadSession", "MaxStreamCount", "PreferredMinStreamCount", }); + internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor, + new java.lang.String[] { "ReadStream", "Offset", }); + internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor, + new java.lang.String[] { "ThrottlePercent", }); + internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor, + new java.lang.String[] { "Progress", }); + internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor = + internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor, + new java.lang.String[] { "AtResponseStart", "AtResponseEnd", }); + internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor, + new java.lang.String[] { "AvroRows", "ArrowRecordBatch", "RowCount", "Stats", "ThrottleState", "AvroSchema", "ArrowSchema", "Rows", "Schema", }); + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor, + new java.lang.String[] { "Name", "Fraction", }); + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor, + new java.lang.String[] { "PrimaryStream", "RemainderStream", }); + internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor, + new java.lang.String[] { "Parent", "WriteStream", }); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor, + new java.lang.String[] { "WriteStream", "Offset", "ProtoRows", "TraceId", "MissingValueInterpretations", "Rows", }); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor = + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor, + new java.lang.String[] { "WriterSchema", "Rows", }); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor = + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor, + new java.lang.String[] { "AppendResult", "Error", "UpdatedSchema", "RowErrors", "WriteStream", "Response", }); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor = + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor, + new java.lang.String[] { "Offset", }); + internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor, + new java.lang.String[] { "Name", "View", }); + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor, + new java.lang.String[] { "Parent", "WriteStreams", }); + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor, + new java.lang.String[] { "CommitTime", "StreamErrors", }); + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor, + new java.lang.String[] { "RowCount", }); + internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor, + new java.lang.String[] { "WriteStream", "Offset", }); + internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor, + new java.lang.String[] { "Offset", }); + internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor, + new java.lang.String[] { "Code", "Entity", "ErrorMessage", }); + internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor, + new java.lang.String[] { "Index", "Code", "Message", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.ProtoBufProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java new file mode 100644 index 0000000000..0955002e8f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java @@ -0,0 +1,175 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/stream.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class StreamProto { + private StreamProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/bigquery/storage/v1/strea" + + "m.proto\022 google.cloud.bigquery.storage.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032,google/cloud/bigq" + + "uery/storage/v1/arrow.proto\032+google/clou" + + "d/bigquery/storage/v1/avro.proto\032,google" + + "/cloud/bigquery/storage/v1/table.proto\032\037" + + "google/protobuf/timestamp.proto\"\304\t\n\013Read" + + "Session\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013expire_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022F\n\013data_format\030\003 \001(\0162,.google.cloud.big" + + "query.storage.v1.DataFormatB\003\340A\005\022H\n\013avro" + + "_schema\030\004 \001(\0132,.google.cloud.bigquery.st" + + "orage.v1.AvroSchemaB\003\340A\003H\000\022J\n\014arrow_sche" + + "ma\030\005 \001(\0132-.google.cloud.bigquery.storage" + + ".v1.ArrowSchemaB\003\340A\003H\000\0224\n\005table\030\006 \001(\tB%\340" + + "A\005\372A\037\n\035bigquery.googleapis.com/Table\022Z\n\017" + + "table_modifiers\030\007 \001(\0132<.google.cloud.big" + + "query.storage.v1.ReadSession.TableModifi" + + "ersB\003\340A\001\022Y\n\014read_options\030\010 \001(\0132>.google." + + "cloud.bigquery.storage.v1.ReadSession.Ta" + + "bleReadOptionsB\003\340A\001\022B\n\007streams\030\n \003(\0132,.g" + + "oogle.cloud.bigquery.storage.v1.ReadStre" + + "amB\003\340A\003\022*\n\035estimated_total_bytes_scanned" + + "\030\014 \001(\003B\003\340A\003\022 \n\023estimated_row_count\030\016 \001(\003" + + "B\003\340A\003\022\025\n\010trace_id\030\r \001(\tB\003\340A\001\032C\n\016TableMod" + + "ifiers\0221\n\rsnapshot_time\030\001 \001(\0132\032.google.p" + + "rotobuf.Timestamp\032\273\002\n\020TableReadOptions\022\027" + + "\n\017selected_fields\030\001 \003(\t\022\027\n\017row_restricti" + + "on\030\002 \001(\t\022g\n\033arrow_serialization_options\030" + + "\003 \001(\0132;.google.cloud.bigquery.storage.v1" + + ".ArrowSerializationOptionsB\003\340A\001H\000\022e\n\032avr" + + "o_serialization_options\030\004 \001(\0132:.google.c" + + "loud.bigquery.storage.v1.AvroSerializati" + + "onOptionsB\003\340A\001H\000B%\n#output_format_serial" + + "ization_options:k\352Ah\n*bigquerystorage.go" + + "ogleapis.com/ReadSession\022:projects/{proj" + + "ect}/locations/{location}/sessions/{sess" + + "ion}B\010\n\006schema\"\234\001\n\nReadStream\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003:{\352Ax\n)bigquerystorage.googleapi" + + "s.com/ReadStream\022Kprojects/{project}/loc" + + "ations/{location}/sessions/{session}/str" + + "eams/{stream}\"\373\004\n\013WriteStream\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003\022E\n\004type\030\002 \001(\01622.google.cloud.bi" + + "gquery.storage.v1.WriteStream.TypeB\003\340A\005\022" + + "4\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013commit_time\030\004 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022H\n\014table_sch" + + "ema\030\005 \001(\0132-.google.cloud.bigquery.storag" + + "e.v1.TableSchemaB\003\340A\003\022P\n\nwrite_mode\030\007 \001(" + + "\01627.google.cloud.bigquery.storage.v1.Wri" + + "teStream.WriteModeB\003\340A\005\022\025\n\010location\030\010 \001(" + + "\tB\003\340A\005\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\t" + + "COMMITTED\020\001\022\013\n\007PENDING\020\002\022\014\n\010BUFFERED\020\003\"3" + + "\n\tWriteMode\022\032\n\026WRITE_MODE_UNSPECIFIED\020\000\022" + + "\n\n\006INSERT\020\001:v\352As\n*bigquerystorage.google" + + "apis.com/WriteStream\022Eprojects/{project}" + + "/datasets/{dataset}/tables/{table}/strea" + + "ms/{stream}*>\n\nDataFormat\022\033\n\027DATA_FORMAT" + + "_UNSPECIFIED\020\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\002*I\n\017W" + + "riteStreamView\022!\n\035WRITE_STREAM_VIEW_UNSP" + + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002B\273\001\n$com.g" + + "oogle.cloud.bigquery.storage.v1B\013StreamP" + + "rotoP\001Z>cloud.google.com/go/bigquery/sto" + + "rage/apiv1/storagepb;storagepb\252\002 Google." + + "Cloud.BigQuery.Storage.V1\312\002 Google\\Cloud" + + "\\BigQuery\\Storage\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor, + new java.lang.String[] { "Name", "ExpireTime", "DataFormat", "AvroSchema", "ArrowSchema", "Table", "TableModifiers", "ReadOptions", "Streams", "EstimatedTotalBytesScanned", "EstimatedRowCount", "TraceId", "Schema", }); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor = + internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor, + new java.lang.String[] { "SnapshotTime", }); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor = + internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor, + new java.lang.String[] { "SelectedFields", "RowRestriction", "ArrowSerializationOptions", "AvroSerializationOptions", "OutputFormatSerializationOptions", }); + internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor, + new java.lang.String[] { "Name", "Type", "CreateTime", "CommitTime", "TableSchema", "WriteMode", "Location", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java similarity index 70% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java index 7193f96a84..4dc9f1998a 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java @@ -1,78 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Estimated stream statistics for a given read Stream.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats} */ -public final class StreamStats extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamStats extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.StreamStats) StreamStatsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamStats.newBuilder() to construct. private StreamStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamStats() {} + private StreamStats() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.StreamStats.class, - com.google.cloud.bigquery.storage.v1.StreamStats.Builder.class); + com.google.cloud.bigquery.storage.v1.StreamStats.class, com.google.cloud.bigquery.storage.v1.StreamStats.Builder.class); } - public interface ProgressOrBuilder - extends + public interface ProgressOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.StreamStats.Progress) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The fraction of rows assigned to the stream that have been processed by
      * the server so far, not including the rows in the current response
@@ -87,69 +66,64 @@ public interface ProgressOrBuilder
      * 
* * double at_response_start = 1; - * * @return The atResponseStart. */ double getAtResponseStart(); /** - * - * *
      * Similar to `at_response_start`, except that this value includes the
      * rows in the current response.
      * 
* * double at_response_end = 2; - * * @return The atResponseEnd. */ double getAtResponseEnd(); } - /** Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats.Progress} */ - public static final class Progress extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats.Progress} + */ + public static final class Progress extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.StreamStats.Progress) ProgressOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Progress.newBuilder() to construct. private Progress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Progress() {} + private Progress() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Progress(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.StreamStats.Progress.class, - com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1.StreamStats.Progress.class, com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder.class); } public static final int AT_RESPONSE_START_FIELD_NUMBER = 1; private double atResponseStart_ = 0D; /** - * - * *
      * The fraction of rows assigned to the stream that have been processed by
      * the server so far, not including the rows in the current response
@@ -164,7 +138,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * double at_response_start = 1; - * * @return The atResponseStart. */ @java.lang.Override @@ -175,15 +148,12 @@ public double getAtResponseStart() { public static final int AT_RESPONSE_END_FIELD_NUMBER = 2; private double atResponseEnd_ = 0D; /** - * - * *
      * Similar to `at_response_start`, except that this value includes the
      * rows in the current response.
      * 
* * double at_response_end = 2; - * * @return The atResponseEnd. */ @java.lang.Override @@ -192,7 +162,6 @@ public double getAtResponseEnd() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(atResponseStart_) != 0) { output.writeDouble(1, atResponseStart_); } @@ -221,10 +191,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(atResponseStart_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, atResponseStart_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, atResponseStart_); } if (java.lang.Double.doubleToRawLongBits(atResponseEnd_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, atResponseEnd_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, atResponseEnd_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,18 +206,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.StreamStats.Progress)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.StreamStats.Progress other = - (com.google.cloud.bigquery.storage.v1.StreamStats.Progress) obj; + com.google.cloud.bigquery.storage.v1.StreamStats.Progress other = (com.google.cloud.bigquery.storage.v1.StreamStats.Progress) obj; if (java.lang.Double.doubleToLongBits(getAtResponseStart()) - != java.lang.Double.doubleToLongBits(other.getAtResponseStart())) return false; + != java.lang.Double.doubleToLongBits( + other.getAtResponseStart())) return false; if (java.lang.Double.doubleToLongBits(getAtResponseEnd()) - != java.lang.Double.doubleToLongBits(other.getAtResponseEnd())) return false; + != java.lang.Double.doubleToLongBits( + other.getAtResponseEnd())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,109 +231,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AT_RESPONSE_START_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getAtResponseStart())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAtResponseStart())); hash = (37 * hash) + AT_RESPONSE_END_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getAtResponseEnd())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAtResponseEnd())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.StreamStats.Progress prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.StreamStats.Progress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -369,34 +331,36 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats.Progress} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats.Progress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.StreamStats.Progress) com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.StreamStats.Progress.class, - com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1.StreamStats.Progress.class, com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.StreamStats.Progress.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; } @java.lang.Override @@ -428,11 +392,8 @@ public com.google.cloud.bigquery.storage.v1.StreamStats.Progress build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStats.Progress buildPartial() { - com.google.cloud.bigquery.storage.v1.StreamStats.Progress result = - new com.google.cloud.bigquery.storage.v1.StreamStats.Progress(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.StreamStats.Progress result = new com.google.cloud.bigquery.storage.v1.StreamStats.Progress(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -451,41 +412,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.StreamStats.Prog public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.StreamStats.Progress) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.StreamStats.Progress) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.StreamStats.Progress)other); } else { super.mergeFrom(other); return this; @@ -493,8 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.StreamStats.Progress other) { - if (other == com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance()) return this; if (other.getAtResponseStart() != 0D) { setAtResponseStart(other.getAtResponseStart()); } @@ -527,25 +484,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: - { - atResponseStart_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: - { - atResponseEnd_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: { + atResponseStart_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + atResponseEnd_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,13 +509,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private double atResponseStart_; + private double atResponseStart_ ; /** - * - * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -576,7 +527,6 @@ public Builder mergeFrom(
        * 
* * double at_response_start = 1; - * * @return The atResponseStart. */ @java.lang.Override @@ -584,8 +534,6 @@ public double getAtResponseStart() { return atResponseStart_; } /** - * - * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -600,20 +548,17 @@ public double getAtResponseStart() {
        * 
* * double at_response_start = 1; - * * @param value The atResponseStart to set. * @return This builder for chaining. */ public Builder setAtResponseStart(double value) { - + atResponseStart_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -628,7 +573,6 @@ public Builder setAtResponseStart(double value) {
        * 
* * double at_response_start = 1; - * * @return This builder for chaining. */ public Builder clearAtResponseStart() { @@ -638,17 +582,14 @@ public Builder clearAtResponseStart() { return this; } - private double atResponseEnd_; + private double atResponseEnd_ ; /** - * - * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; - * * @return The atResponseEnd. */ @java.lang.Override @@ -656,35 +597,29 @@ public double getAtResponseEnd() { return atResponseEnd_; } /** - * - * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; - * * @param value The atResponseEnd to set. * @return This builder for chaining. */ public Builder setAtResponseEnd(double value) { - + atResponseEnd_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; - * * @return This builder for chaining. */ public Builder clearAtResponseEnd() { @@ -693,7 +628,6 @@ public Builder clearAtResponseEnd() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -706,12 +640,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.StreamStats.Progress) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.StreamStats.Progress) private static final com.google.cloud.bigquery.storage.v1.StreamStats.Progress DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.StreamStats.Progress(); } @@ -720,28 +654,27 @@ public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Progress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,19 +689,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.StreamStats.Progress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PROGRESS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1.StreamStats.Progress progress_; /** - * - * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; - * * @return Whether the progress field is set. */ @java.lang.Override @@ -776,25 +707,18 @@ public boolean hasProgress() { return progress_ != null; } /** - * - * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; - * * @return The progress. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStats.Progress getProgress() { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() : progress_; } /** - * - * *
    * Represents the progress of the current stream.
    * 
@@ -803,13 +727,10 @@ public com.google.cloud.bigquery.storage.v1.StreamStats.Progress getProgress() { */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder getProgressOrBuilder() { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() : progress_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -821,7 +742,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (progress_ != null) { output.writeMessage(2, getProgress()); } @@ -835,7 +757,8 @@ public int getSerializedSize() { size = 0; if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProgress()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -845,17 +768,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.StreamStats)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.StreamStats other = - (com.google.cloud.bigquery.storage.v1.StreamStats) obj; + com.google.cloud.bigquery.storage.v1.StreamStats other = (com.google.cloud.bigquery.storage.v1.StreamStats) obj; if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; + if (!getProgress() + .equals(other.getProgress())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -877,136 +800,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.StreamStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.StreamStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.StreamStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Estimated stream statistics for a given read Stream.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.StreamStats) com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.StreamStats.class, - com.google.cloud.bigquery.storage.v1.StreamStats.Builder.class); + com.google.cloud.bigquery.storage.v1.StreamStats.class, com.google.cloud.bigquery.storage.v1.StreamStats.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.StreamStats.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1020,9 +937,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; } @java.lang.Override @@ -1041,11 +958,8 @@ public com.google.cloud.bigquery.storage.v1.StreamStats build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStats buildPartial() { - com.google.cloud.bigquery.storage.v1.StreamStats result = - new com.google.cloud.bigquery.storage.v1.StreamStats(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.StreamStats result = new com.google.cloud.bigquery.storage.v1.StreamStats(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1053,7 +967,9 @@ public com.google.cloud.bigquery.storage.v1.StreamStats buildPartial() { private void buildPartial0(com.google.cloud.bigquery.storage.v1.StreamStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); } } @@ -1061,39 +977,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.StreamStats resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.StreamStats) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.StreamStats) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.StreamStats)other); } else { super.mergeFrom(other); return this; @@ -1101,8 +1016,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.StreamStats other) { - if (other == com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance()) return this; if (other.hasProgress()) { mergeProgress(other.getProgress()); } @@ -1132,19 +1046,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1154,52 +1068,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.bigquery.storage.v1.StreamStats.Progress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats.Progress, - com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, - com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder> - progressBuilder_; + com.google.cloud.bigquery.storage.v1.StreamStats.Progress, com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder> progressBuilder_; /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; - * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; - * * @return The progress. */ public com.google.cloud.bigquery.storage.v1.StreamStats.Progress getProgress() { if (progressBuilder_ == null) { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -1220,8 +1120,6 @@ public Builder setProgress(com.google.cloud.bigquery.storage.v1.StreamStats.Prog return this; } /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -1240,8 +1138,6 @@ public Builder setProgress( return this; } /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -1250,10 +1146,9 @@ public Builder setProgress( */ public Builder mergeProgress(com.google.cloud.bigquery.storage.v1.StreamStats.Progress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && progress_ != null - && progress_ - != com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + progress_ != null && + progress_ != com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -1266,8 +1161,6 @@ public Builder mergeProgress(com.google.cloud.bigquery.storage.v1.StreamStats.Pr return this; } /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -1285,8 +1178,6 @@ public Builder clearProgress() { return this; } /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -1299,27 +1190,21 @@ public com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder getProg return getProgressFieldBuilder().getBuilder(); } /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; */ - public com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder - getProgressOrBuilder() { + public com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder getProgressOrBuilder() { if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() - : progress_; + return progress_ == null ? + com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() : progress_; } } /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -1327,24 +1212,21 @@ public com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder getProg * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats.Progress, - com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, - com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder> + com.google.cloud.bigquery.storage.v1.StreamStats.Progress, com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats.Progress, - com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, - com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.StreamStats.Progress, com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1354,12 +1236,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.StreamStats) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.StreamStats) private static final com.google.cloud.bigquery.storage.v1.StreamStats DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.StreamStats(); } @@ -1368,27 +1250,27 @@ public static com.google.cloud.bigquery.storage.v1.StreamStats getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1403,4 +1285,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.StreamStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java similarity index 61% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java index aeaa0d4f33..04200f489f 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface StreamStatsOrBuilder - extends +public interface StreamStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.StreamStats) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; - * * @return Whether the progress field is set. */ boolean hasProgress(); /** - * - * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; - * * @return The progress. */ com.google.cloud.bigquery.storage.v1.StreamStats.Progress getProgress(); /** - * - * *
    * Represents the progress of the current stream.
    * 
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java similarity index 70% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java index ce3a4143f4..f41c3d72cd 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * TableFieldSchema defines a single field/column within a table schema.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.TableFieldSchema} */ -public final class TableFieldSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TableFieldSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.TableFieldSchema) TableFieldSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TableFieldSchema.newBuilder() to construct. private TableFieldSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableFieldSchema() { name_ = ""; type_ = 0; @@ -48,35 +30,35 @@ private TableFieldSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableFieldSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.TableProto - .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.TableProto - .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.TableFieldSchema.class, - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.TableFieldSchema.class, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder.class); } - /** Protobuf enum {@code google.cloud.bigquery.storage.v1.TableFieldSchema.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * Protobuf enum {@code google.cloud.bigquery.storage.v1.TableFieldSchema.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Illegal value
      * 
@@ -85,8 +67,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * 64K, UTF8
      * 
@@ -95,8 +75,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ STRING(1), /** - * - * *
      * 64-bit signed
      * 
@@ -105,8 +83,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ INT64(2), /** - * - * *
      * 64-bit IEEE floating point
      * 
@@ -115,8 +91,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ DOUBLE(3), /** - * - * *
      * Aggregate type
      * 
@@ -125,8 +99,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ STRUCT(4), /** - * - * *
      * 64K, Binary
      * 
@@ -135,8 +107,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ BYTES(5), /** - * - * *
      * 2-valued
      * 
@@ -145,8 +115,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ BOOL(6), /** - * - * *
      * 64-bit signed usec since UTC epoch
      * 
@@ -155,8 +123,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TIMESTAMP(7), /** - * - * *
      * Civil date - Year, Month, Day
      * 
@@ -165,8 +131,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ DATE(8), /** - * - * *
      * Civil time - Hour, Minute, Second, Microseconds
      * 
@@ -175,8 +139,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TIME(9), /** - * - * *
      * Combination of civil date and civil time
      * 
@@ -185,8 +147,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ DATETIME(10), /** - * - * *
      * Geography object
      * 
@@ -195,8 +155,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ GEOGRAPHY(11), /** - * - * *
      * Numeric value
      * 
@@ -205,8 +163,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NUMERIC(12), /** - * - * *
      * BigNumeric value
      * 
@@ -215,8 +171,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ BIGNUMERIC(13), /** - * - * *
      * Interval
      * 
@@ -225,8 +179,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ INTERVAL(14), /** - * - * *
      * JSON, String
      * 
@@ -238,8 +190,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Illegal value
      * 
@@ -248,8 +198,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * 64K, UTF8
      * 
@@ -258,8 +206,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STRING_VALUE = 1; /** - * - * *
      * 64-bit signed
      * 
@@ -268,8 +214,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INT64_VALUE = 2; /** - * - * *
      * 64-bit IEEE floating point
      * 
@@ -278,8 +222,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DOUBLE_VALUE = 3; /** - * - * *
      * Aggregate type
      * 
@@ -288,8 +230,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STRUCT_VALUE = 4; /** - * - * *
      * 64K, Binary
      * 
@@ -298,8 +238,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BYTES_VALUE = 5; /** - * - * *
      * 2-valued
      * 
@@ -308,8 +246,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BOOL_VALUE = 6; /** - * - * *
      * 64-bit signed usec since UTC epoch
      * 
@@ -318,8 +254,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIMESTAMP_VALUE = 7; /** - * - * *
      * Civil date - Year, Month, Day
      * 
@@ -328,8 +262,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATE_VALUE = 8; /** - * - * *
      * Civil time - Hour, Minute, Second, Microseconds
      * 
@@ -338,8 +270,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIME_VALUE = 9; /** - * - * *
      * Combination of civil date and civil time
      * 
@@ -348,8 +278,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATETIME_VALUE = 10; /** - * - * *
      * Geography object
      * 
@@ -358,8 +286,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GEOGRAPHY_VALUE = 11; /** - * - * *
      * Numeric value
      * 
@@ -368,8 +294,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NUMERIC_VALUE = 12; /** - * - * *
      * BigNumeric value
      * 
@@ -378,8 +302,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BIGNUMERIC_VALUE = 13; /** - * - * *
      * Interval
      * 
@@ -388,8 +310,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERVAL_VALUE = 14; /** - * - * *
      * JSON, String
      * 
@@ -398,6 +318,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JSON_VALUE = 15; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -422,77 +343,62 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return STRING; - case 2: - return INT64; - case 3: - return DOUBLE; - case 4: - return STRUCT; - case 5: - return BYTES; - case 6: - return BOOL; - case 7: - return TIMESTAMP; - case 8: - return DATE; - case 9: - return TIME; - case 10: - return DATETIME; - case 11: - return GEOGRAPHY; - case 12: - return NUMERIC; - case 13: - return BIGNUMERIC; - case 14: - return INTERVAL; - case 15: - return JSON; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return STRING; + case 2: return INT64; + case 3: return DOUBLE; + case 4: return STRUCT; + case 5: return BYTES; + case 6: return BOOL; + case 7: return TIMESTAMP; + case 8: return DATE; + case 9: return TIME; + case 10: return DATETIME; + case 11: return GEOGRAPHY; + case 12: return NUMERIC; + case 13: return BIGNUMERIC; + case 14: return INTERVAL; + case 15: return JSON; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -509,11 +415,12 @@ private Type(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1.TableFieldSchema.Type) } - /** Protobuf enum {@code google.cloud.bigquery.storage.v1.TableFieldSchema.Mode} */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * Protobuf enum {@code google.cloud.bigquery.storage.v1.TableFieldSchema.Mode} + */ + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Illegal value
      * 
@@ -521,18 +428,22 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * MODE_UNSPECIFIED = 0; */ MODE_UNSPECIFIED(0), - /** NULLABLE = 1; */ + /** + * NULLABLE = 1; + */ NULLABLE(1), - /** REQUIRED = 2; */ + /** + * REQUIRED = 2; + */ REQUIRED(2), - /** REPEATED = 3; */ + /** + * REPEATED = 3; + */ REPEATED(3), UNRECOGNIZED(-1), ; /** - * - * *
      * Illegal value
      * 
@@ -540,13 +451,20 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * MODE_UNSPECIFIED = 0; */ public static final int MODE_UNSPECIFIED_VALUE = 0; - /** NULLABLE = 1; */ + /** + * NULLABLE = 1; + */ public static final int NULLABLE_VALUE = 1; - /** REQUIRED = 2; */ + /** + * REQUIRED = 2; + */ public static final int REQUIRED_VALUE = 2; - /** REPEATED = 3; */ + /** + * REPEATED = 3; + */ public static final int REPEATED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -571,53 +489,50 @@ public static Mode valueOf(int value) { */ public static Mode forNumber(int value) { switch (value) { - case 0: - return MODE_UNSPECIFIED; - case 1: - return NULLABLE; - case 2: - return REQUIRED; - case 3: - return REPEATED; - default: - return null; + case 0: return MODE_UNSPECIFIED; + case 1: return NULLABLE; + case 2: return REQUIRED; + case 3: return REPEATED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDescriptor().getEnumTypes().get(1); } private static final Mode[] VALUES = values(); - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -635,12 +550,9 @@ private Mode(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -648,7 +560,6 @@ private Mode(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -657,15 +568,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -673,15 +583,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -692,165 +603,114 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** - * - * *
    * Required. The field data type.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Required. The field data type.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType() { - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type result = - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType() { + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type result = com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.forNumber(type_); + return result == null ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.UNRECOGNIZED : result; } public static final int MODE_FIELD_NUMBER = 3; private int mode_ = 0; /** - * - * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The mode. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode getMode() { - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode result = - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.forNumber(mode_); - return result == null - ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode getMode() { + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode result = com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.forNumber(mode_); + return result == null ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.UNRECOGNIZED : result; } public static final int FIELDS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List fields_; /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List + public java.util.List getFieldsOrBuilderList() { return fields_; } /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index) { return fields_.get(index); } /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( @@ -859,18 +719,14 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsO } public static final int DESCRIPTION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -879,29 +735,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -912,8 +768,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int MAX_LENGTH_FIELD_NUMBER = 7; private long maxLength_ = 0L; /** - * - * *
    * Optional. Maximum length of values of this field for STRINGS or BYTES.
    * If max_length is not specified, no maximum length constraint is imposed
@@ -926,7 +780,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The maxLength. */ @java.lang.Override @@ -937,8 +790,6 @@ public long getMaxLength() { public static final int PRECISION_FIELD_NUMBER = 8; private long precision_ = 0L; /** - * - * *
    * Optional. Precision (maximum number of total digits in base 10) and scale
    * (maximum number of digits in the fractional part in base 10) constraints
@@ -966,7 +817,6 @@ public long getMaxLength() {
    * 
* * int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The precision. */ @java.lang.Override @@ -977,14 +827,11 @@ public long getPrecision() { public static final int SCALE_FIELD_NUMBER = 9; private long scale_ = 0L; /** - * - * *
    * Optional. See documentation for precision.
    * 
* * int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The scale. */ @java.lang.Override @@ -993,19 +840,15 @@ public long getScale() { } public static final int DEFAULT_VALUE_EXPRESSION_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object defaultValueExpression_ = ""; /** - * - * *
    * Optional. A SQL expression to specify the [default value]
    * (https://cloud.google.com/bigquery/docs/default-values) for this field.
    * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The defaultValueExpression. */ @java.lang.Override @@ -1014,30 +857,30 @@ public java.lang.String getDefaultValueExpression() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultValueExpression_ = s; return s; } } /** - * - * *
    * Optional. A SQL expression to specify the [default value]
    * (https://cloud.google.com/bigquery/docs/default-values) for this field.
    * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for defaultValueExpression. */ @java.lang.Override - public com.google.protobuf.ByteString getDefaultValueExpressionBytes() { + public com.google.protobuf.ByteString + getDefaultValueExpressionBytes() { java.lang.Object ref = defaultValueExpression_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultValueExpression_ = b; return b; } else { @@ -1046,7 +889,6 @@ public com.google.protobuf.ByteString getDefaultValueExpressionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1058,18 +900,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ - != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } - if (mode_ - != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.MODE_UNSPECIFIED - .getNumber()) { + if (mode_ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, mode_); } for (int i = 0; i < fields_.size(); i++) { @@ -1102,30 +941,32 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ - != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } - if (mode_ - != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, mode_); + if (mode_ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, mode_); } for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, fields_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } if (maxLength_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxLength_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, maxLength_); } if (precision_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, precision_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, precision_); } if (scale_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, scale_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValueExpression_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, defaultValueExpression_); @@ -1138,23 +979,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.TableFieldSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.TableFieldSchema other = - (com.google.cloud.bigquery.storage.v1.TableFieldSchema) obj; + com.google.cloud.bigquery.storage.v1.TableFieldSchema other = (com.google.cloud.bigquery.storage.v1.TableFieldSchema) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (type_ != other.type_) return false; if (mode_ != other.mode_) return false; - if (!getFieldsList().equals(other.getFieldsList())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getMaxLength() != other.getMaxLength()) return false; - if (getPrecision() != other.getPrecision()) return false; - if (getScale() != other.getScale()) return false; - if (!getDefaultValueExpression().equals(other.getDefaultValueExpression())) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (getMaxLength() + != other.getMaxLength()) return false; + if (getPrecision() + != other.getPrecision()) return false; + if (getScale() + != other.getScale()) return false; + if (!getDefaultValueExpression() + .equals(other.getDefaultValueExpression())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1179,11 +1026,14 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + MAX_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxLength()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getMaxLength()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPrecision()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPrecision()); hash = (37 * hash) + SCALE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getScale()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getScale()); hash = (37 * hash) + DEFAULT_VALUE_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getDefaultValueExpression().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1192,136 +1042,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1.TableFieldSchema prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.TableFieldSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TableFieldSchema defines a single field/column within a table schema.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.TableFieldSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.TableFieldSchema) com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.TableProto - .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.TableProto - .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.TableFieldSchema.class, - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.TableFieldSchema.class, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.TableFieldSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1345,9 +1188,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.TableProto - .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; } @java.lang.Override @@ -1366,18 +1209,14 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema buildPartial() { - com.google.cloud.bigquery.storage.v1.TableFieldSchema result = - new com.google.cloud.bigquery.storage.v1.TableFieldSchema(this); + com.google.cloud.bigquery.storage.v1.TableFieldSchema result = new com.google.cloud.bigquery.storage.v1.TableFieldSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1.TableFieldSchema result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.TableFieldSchema result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); @@ -1421,39 +1260,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.TableFieldSchema public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.TableFieldSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.TableFieldSchema) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.TableFieldSchema)other); } else { super.mergeFrom(other); return this; @@ -1461,8 +1299,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.TableFieldSchema other) { - if (other == com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1492,10 +1329,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.TableFieldSchema o fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000008); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFieldsFieldBuilder() - : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -1546,75 +1382,65 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - com.google.cloud.bigquery.storage.v1.TableFieldSchema m = - input.readMessage( - com.google.cloud.bigquery.storage.v1.TableFieldSchema.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 34 - case 50: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: - { - maxLength_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 64: - { - precision_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 72: - { - scale_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: - { - defaultValueExpression_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + com.google.cloud.bigquery.storage.v1.TableFieldSchema m = + input.readMessage( + com.google.cloud.bigquery.storage.v1.TableFieldSchema.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 34 + case 50: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: { + maxLength_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: { + precision_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: { + scale_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: { + defaultValueExpression_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1624,13 +1450,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1638,13 +1461,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1653,8 +1476,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1662,14 +1483,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1677,8 +1499,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1686,22 +1506,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1709,7 +1525,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1719,8 +1534,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1728,14 +1541,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1745,33 +1556,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * Required. The field data type.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Required. The field data type.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1782,37 +1582,24 @@ public Builder setTypeValue(int value) { return this; } /** - * - * *
      * Required. The field data type.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType() { - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type result = - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type result = com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.forNumber(type_); + return result == null ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.UNRECOGNIZED : result; } /** - * - * *
      * Required. The field data type.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The type to set. * @return This builder for chaining. */ @@ -1826,16 +1613,11 @@ public Builder setType(com.google.cloud.bigquery.storage.v1.TableFieldSchema.Typ return this; } /** - * - * *
      * Required. The field data type.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearType() { @@ -1847,33 +1629,22 @@ public Builder clearType() { private int mode_ = 0; /** - * - * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ @@ -1884,37 +1655,24 @@ public Builder setModeValue(int value) { return this; } /** - * - * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The mode. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode getMode() { - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode result = - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.forNumber(mode_); - return result == null - ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode result = com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.forNumber(mode_); + return result == null ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The mode to set. * @return This builder for chaining. */ @@ -1928,16 +1686,11 @@ public Builder setMode(com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mod return this; } /** - * - * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearMode() { @@ -1948,33 +1701,24 @@ public Builder clearMode() { } private java.util.List fields_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - fields_ = - new java.util.ArrayList(fields_); + fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableFieldSchema, - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> - fieldsBuilder_; + com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> fieldsBuilder_; /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { @@ -1984,16 +1728,12 @@ public java.util.List get } } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { @@ -2003,16 +1743,12 @@ public int getFieldsCount() { } } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index) { if (fieldsBuilder_ == null) { @@ -2022,16 +1758,12 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index } } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFields( int index, com.google.cloud.bigquery.storage.v1.TableFieldSchema value) { @@ -2048,16 +1780,12 @@ public Builder setFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFields( int index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder builderForValue) { @@ -2071,16 +1799,12 @@ public Builder setFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFields(com.google.cloud.bigquery.storage.v1.TableFieldSchema value) { if (fieldsBuilder_ == null) { @@ -2096,16 +1820,12 @@ public Builder addFields(com.google.cloud.bigquery.storage.v1.TableFieldSchema v return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFields( int index, com.google.cloud.bigquery.storage.v1.TableFieldSchema value) { @@ -2122,16 +1842,12 @@ public Builder addFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFields( com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder builderForValue) { @@ -2145,16 +1861,12 @@ public Builder addFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFields( int index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder builderForValue) { @@ -2168,23 +1880,19 @@ public Builder addFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllFields( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -2192,16 +1900,12 @@ public Builder addAllFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearFields() { if (fieldsBuilder_ == null) { @@ -2214,16 +1918,12 @@ public Builder clearFields() { return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { @@ -2236,55 +1936,42 @@ public Builder removeFields(int index) { return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { + return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getFieldsOrBuilderList() { + public java.util.List + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -2292,68 +1979,52 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsO } } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBuilder() { - return getFieldsFieldBuilder() - .addBuilder(com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder().addBuilder( + com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBuilder( int index) { - return getFieldsFieldBuilder() - .addBuilder( - index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableFieldSchema, - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableFieldSchema, - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>( - fields_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>( + fields_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); fields_ = null; } return fieldsBuilder_; @@ -2361,20 +2032,18 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBu private java.lang.Object description_ = ""; /** - * - * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2383,21 +2052,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2405,35 +2073,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2443,21 +2104,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -2465,10 +2122,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { return this; } - private long maxLength_; + private long maxLength_ ; /** - * - * *
      * Optional. Maximum length of values of this field for STRINGS or BYTES.
      * If max_length is not specified, no maximum length constraint is imposed
@@ -2481,7 +2136,6 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The maxLength. */ @java.lang.Override @@ -2489,8 +2143,6 @@ public long getMaxLength() { return maxLength_; } /** - * - * *
      * Optional. Maximum length of values of this field for STRINGS or BYTES.
      * If max_length is not specified, no maximum length constraint is imposed
@@ -2503,20 +2155,17 @@ public long getMaxLength() {
      * 
* * int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The maxLength to set. * @return This builder for chaining. */ public Builder setMaxLength(long value) { - + maxLength_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. Maximum length of values of this field for STRINGS or BYTES.
      * If max_length is not specified, no maximum length constraint is imposed
@@ -2529,7 +2178,6 @@ public Builder setMaxLength(long value) {
      * 
* * int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearMaxLength() { @@ -2539,10 +2187,8 @@ public Builder clearMaxLength() { return this; } - private long precision_; + private long precision_ ; /** - * - * *
      * Optional. Precision (maximum number of total digits in base 10) and scale
      * (maximum number of digits in the fractional part in base 10) constraints
@@ -2570,7 +2216,6 @@ public Builder clearMaxLength() {
      * 
* * int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The precision. */ @java.lang.Override @@ -2578,8 +2223,6 @@ public long getPrecision() { return precision_; } /** - * - * *
      * Optional. Precision (maximum number of total digits in base 10) and scale
      * (maximum number of digits in the fractional part in base 10) constraints
@@ -2607,20 +2250,17 @@ public long getPrecision() {
      * 
* * int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(long value) { - + precision_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Optional. Precision (maximum number of total digits in base 10) and scale
      * (maximum number of digits in the fractional part in base 10) constraints
@@ -2648,7 +2288,6 @@ public Builder setPrecision(long value) {
      * 
* * int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPrecision() { @@ -2658,16 +2297,13 @@ public Builder clearPrecision() { return this; } - private long scale_; + private long scale_ ; /** - * - * *
      * Optional. See documentation for precision.
      * 
* * int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The scale. */ @java.lang.Override @@ -2675,33 +2311,27 @@ public long getScale() { return scale_; } /** - * - * *
      * Optional. See documentation for precision.
      * 
* * int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(long value) { - + scale_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Optional. See documentation for precision.
      * 
* * int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearScale() { @@ -2713,21 +2343,19 @@ public Builder clearScale() { private java.lang.Object defaultValueExpression_ = ""; /** - * - * *
      * Optional. A SQL expression to specify the [default value]
      * (https://cloud.google.com/bigquery/docs/default-values) for this field.
      * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The defaultValueExpression. */ public java.lang.String getDefaultValueExpression() { java.lang.Object ref = defaultValueExpression_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultValueExpression_ = s; return s; @@ -2736,22 +2364,21 @@ public java.lang.String getDefaultValueExpression() { } } /** - * - * *
      * Optional. A SQL expression to specify the [default value]
      * (https://cloud.google.com/bigquery/docs/default-values) for this field.
      * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for defaultValueExpression. */ - public com.google.protobuf.ByteString getDefaultValueExpressionBytes() { + public com.google.protobuf.ByteString + getDefaultValueExpressionBytes() { java.lang.Object ref = defaultValueExpression_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); defaultValueExpression_ = b; return b; } else { @@ -2759,37 +2386,30 @@ public com.google.protobuf.ByteString getDefaultValueExpressionBytes() { } } /** - * - * *
      * Optional. A SQL expression to specify the [default value]
      * (https://cloud.google.com/bigquery/docs/default-values) for this field.
      * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The defaultValueExpression to set. * @return This builder for chaining. */ - public Builder setDefaultValueExpression(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDefaultValueExpression( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } defaultValueExpression_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * Optional. A SQL expression to specify the [default value]
      * (https://cloud.google.com/bigquery/docs/default-values) for this field.
      * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDefaultValueExpression() { @@ -2799,31 +2419,27 @@ public Builder clearDefaultValueExpression() { return this; } /** - * - * *
      * Optional. A SQL expression to specify the [default value]
      * (https://cloud.google.com/bigquery/docs/default-values) for this field.
      * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for defaultValueExpression to set. * @return This builder for chaining. */ - public Builder setDefaultValueExpressionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDefaultValueExpressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); defaultValueExpression_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2833,12 +2449,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.TableFieldSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.TableFieldSchema) private static final com.google.cloud.bigquery.storage.v1.TableFieldSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.TableFieldSchema(); } @@ -2847,27 +2463,27 @@ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableFieldSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableFieldSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2882,4 +2498,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.TableFieldSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java similarity index 72% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java index 69a51f61a0..3f7613add8 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto package com.google.cloud.bigquery.storage.v1; -public interface TableFieldSchemaOrBuilder - extends +public interface TableFieldSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.TableFieldSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -33,13 +15,10 @@ public interface TableFieldSchemaOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -47,164 +26,119 @@ public interface TableFieldSchemaOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The field data type.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Required. The field data type.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType(); /** - * - * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** - * - * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The mode. */ com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode getMode(); /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index); /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getFieldsCount(); /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index); + com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( + int index); /** - * - * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. Maximum length of values of this field for STRINGS or BYTES.
    * If max_length is not specified, no maximum length constraint is imposed
@@ -217,14 +151,11 @@ public interface TableFieldSchemaOrBuilder
    * 
* * int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The maxLength. */ long getMaxLength(); /** - * - * *
    * Optional. Precision (maximum number of total digits in base 10) and scale
    * (maximum number of digits in the fractional part in base 10) constraints
@@ -252,48 +183,39 @@ public interface TableFieldSchemaOrBuilder
    * 
* * int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The precision. */ long getPrecision(); /** - * - * *
    * Optional. See documentation for precision.
    * 
* * int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The scale. */ long getScale(); /** - * - * *
    * Optional. A SQL expression to specify the [default value]
    * (https://cloud.google.com/bigquery/docs/default-values) for this field.
    * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The defaultValueExpression. */ java.lang.String getDefaultValueExpression(); /** - * - * *
    * Optional. A SQL expression to specify the [default value]
    * (https://cloud.google.com/bigquery/docs/default-values) for this field.
    * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for defaultValueExpression. */ - com.google.protobuf.ByteString getDefaultValueExpressionBytes(); + com.google.protobuf.ByteString + getDefaultValueExpressionBytes(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java similarity index 100% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java new file mode 100644 index 0000000000..5c3f51e9e9 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java @@ -0,0 +1,90 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/table.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class TableProto { + private TableProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/bigquery/storage/v1/table" + + ".proto\022 google.cloud.bigquery.storage.v1" + + "\032\037google/api/field_behavior.proto\"Q\n\013Tab" + + "leSchema\022B\n\006fields\030\001 \003(\01322.google.cloud." + + "bigquery.storage.v1.TableFieldSchema\"\254\005\n" + + "\020TableFieldSchema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022J\n\004" + + "type\030\002 \001(\01627.google.cloud.bigquery.stora" + + "ge.v1.TableFieldSchema.TypeB\003\340A\002\022J\n\004mode" + + "\030\003 \001(\01627.google.cloud.bigquery.storage.v" + + "1.TableFieldSchema.ModeB\003\340A\001\022G\n\006fields\030\004" + + " \003(\01322.google.cloud.bigquery.storage.v1." + + "TableFieldSchemaB\003\340A\001\022\030\n\013description\030\006 \001" + + "(\tB\003\340A\001\022\027\n\nmax_length\030\007 \001(\003B\003\340A\001\022\026\n\tprec" + + "ision\030\010 \001(\003B\003\340A\001\022\022\n\005scale\030\t \001(\003B\003\340A\001\022%\n\030" + + "default_value_expression\030\n \001(\tB\003\340A\001\"\325\001\n\004" + + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\t" + + "\n\005INT64\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRUCT\020\004\022\t\n\005BYT" + + "ES\020\005\022\010\n\004BOOL\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020\010\022" + + "\010\n\004TIME\020\t\022\014\n\010DATETIME\020\n\022\r\n\tGEOGRAPHY\020\013\022\013" + + "\n\007NUMERIC\020\014\022\016\n\nBIGNUMERIC\020\r\022\014\n\010INTERVAL\020" + + "\016\022\010\n\004JSON\020\017\"F\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" + + "\000\022\014\n\010NULLABLE\020\001\022\014\n\010REQUIRED\020\002\022\014\n\010REPEATE" + + "D\020\003B\272\001\n$com.google.cloud.bigquery.storag" + + "e.v1B\nTableProtoP\001Z>cloud.google.com/go/" + + "bigquery/storage/apiv1/storagepb;storage" + + "pb\252\002 Google.Cloud.BigQuery.Storage.V1\312\002 " + + "Google\\Cloud\\BigQuery\\Storage\\V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor, + new java.lang.String[] { "Fields", }); + internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor, + new java.lang.String[] { "Name", "Type", "Mode", "Fields", "Description", "MaxLength", "Precision", "Scale", "DefaultValueExpression", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java similarity index 71% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java index 46f703afbf..01a4c8a7e9 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Schema of a table. This schema is a subset of
  * google.cloud.bigquery.v2.TableSchema containing information necessary to
@@ -29,53 +12,48 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.TableSchema}
  */
-public final class TableSchema extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TableSchema extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.TableSchema)
     TableSchemaOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TableSchema.newBuilder() to construct.
   private TableSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TableSchema() {
     fields_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TableSchema();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.TableProto
-        .internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.TableProto
-        .internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.TableSchema.class,
-            com.google.cloud.bigquery.storage.v1.TableSchema.Builder.class);
+            com.google.cloud.bigquery.storage.v1.TableSchema.class, com.google.cloud.bigquery.storage.v1.TableSchema.Builder.class);
   }
 
   public static final int FIELDS_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private java.util.List fields_;
   /**
-   *
-   *
    * 
    * Describes the fields in a table.
    * 
@@ -87,8 +65,6 @@ public java.util.List get return fields_; } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -96,13 +72,11 @@ public java.util.List get * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFieldsOrBuilderList() { return fields_; } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -114,8 +88,6 @@ public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index return fields_.get(index); } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -142,7 +112,6 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,7 +123,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } @@ -168,7 +138,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fields_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,15 +149,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.TableSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.TableSchema other = - (com.google.cloud.bigquery.storage.v1.TableSchema) obj; + com.google.cloud.bigquery.storage.v1.TableSchema other = (com.google.cloud.bigquery.storage.v1.TableSchema) obj; - if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -207,104 +178,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.TableSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.TableSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.TableSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Schema of a table. This schema is a subset of
    * google.cloud.bigquery.v2.TableSchema containing information necessary to
@@ -313,32 +277,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.TableSchema}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.TableSchema)
       com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.TableProto
-          .internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.TableProto
-          .internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.TableSchema.class,
-              com.google.cloud.bigquery.storage.v1.TableSchema.Builder.class);
+              com.google.cloud.bigquery.storage.v1.TableSchema.class, com.google.cloud.bigquery.storage.v1.TableSchema.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.TableSchema.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -354,9 +319,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.TableProto
-          .internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
     }
 
     @java.lang.Override
@@ -375,18 +340,14 @@ public com.google.cloud.bigquery.storage.v1.TableSchema build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.TableSchema buildPartial() {
-      com.google.cloud.bigquery.storage.v1.TableSchema result =
-          new com.google.cloud.bigquery.storage.v1.TableSchema(this);
+      com.google.cloud.bigquery.storage.v1.TableSchema result = new com.google.cloud.bigquery.storage.v1.TableSchema(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.bigquery.storage.v1.TableSchema result) {
+    private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.TableSchema result) {
       if (fieldsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           fields_ = java.util.Collections.unmodifiableList(fields_);
@@ -406,39 +367,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.TableSchema resu
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.TableSchema) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.TableSchema) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.TableSchema)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -446,8 +406,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.TableSchema other) {
-      if (other == com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()) return this;
       if (fieldsBuilder_ == null) {
         if (!other.fields_.isEmpty()) {
           if (fields_.isEmpty()) {
@@ -466,10 +425,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.TableSchema other)
             fieldsBuilder_ = null;
             fields_ = other.fields_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            fieldsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getFieldsFieldBuilder()
-                    : null;
+            fieldsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getFieldsFieldBuilder() : null;
           } else {
             fieldsBuilder_.addAllMessages(other.fields_);
           }
@@ -501,27 +459,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.bigquery.storage.v1.TableFieldSchema m =
-                    input.readMessage(
-                        com.google.cloud.bigquery.storage.v1.TableFieldSchema.parser(),
-                        extensionRegistry);
-                if (fieldsBuilder_ == null) {
-                  ensureFieldsIsMutable();
-                  fields_.add(m);
-                } else {
-                  fieldsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              com.google.cloud.bigquery.storage.v1.TableFieldSchema m =
+                  input.readMessage(
+                      com.google.cloud.bigquery.storage.v1.TableFieldSchema.parser(),
+                      extensionRegistry);
+              if (fieldsBuilder_ == null) {
+                ensureFieldsIsMutable();
+                fields_.add(m);
+              } else {
+                fieldsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -531,29 +487,21 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List fields_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureFieldsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        fields_ =
-            new java.util.ArrayList(fields_);
+        fields_ = new java.util.ArrayList(fields_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.TableFieldSchema,
-            com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder,
-            com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>
-        fieldsBuilder_;
+        com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> fieldsBuilder_;
 
     /**
-     *
-     *
      * 
      * Describes the fields in a table.
      * 
@@ -568,8 +516,6 @@ public java.util.List get } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -584,8 +530,6 @@ public int getFieldsCount() { } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -600,8 +544,6 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -623,8 +565,6 @@ public Builder setFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -643,8 +583,6 @@ public Builder setFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -665,8 +603,6 @@ public Builder addFields(com.google.cloud.bigquery.storage.v1.TableFieldSchema v return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -688,8 +624,6 @@ public Builder addFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -708,8 +642,6 @@ public Builder addFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -728,8 +660,6 @@ public Builder addFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -737,11 +667,11 @@ public Builder addFields( * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ public Builder addAllFields( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -749,8 +679,6 @@ public Builder addAllFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -768,8 +696,6 @@ public Builder clearFields() { return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -787,8 +713,6 @@ public Builder removeFields(int index) { return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -800,8 +724,6 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder getFieldsBu return getFieldsFieldBuilder().getBuilder(index); } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -811,22 +733,19 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder getFieldsBu public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { + return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Describes the fields in a table.
      * 
* * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsOrBuilderList() { + public java.util.List + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -834,8 +753,6 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsO } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -843,12 +760,10 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsO * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBuilder() { - return getFieldsFieldBuilder() - .addBuilder(com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder().addBuilder( + com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -857,43 +772,37 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBu */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBuilder( int index) { - return getFieldsFieldBuilder() - .addBuilder( - index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); } /** - * - * *
      * Describes the fields in a table.
      * 
* * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableFieldSchema, - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableFieldSchema, - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>( - fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>( + fields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); fields_ = null; } return fieldsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -903,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.TableSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.TableSchema) private static final com.google.cloud.bigquery.storage.v1.TableSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.TableSchema(); } @@ -917,27 +826,27 @@ public static com.google.cloud.bigquery.storage.v1.TableSchema getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,4 +861,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.TableSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java index fff23ddb63..c709d5b562 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto package com.google.cloud.bigquery.storage.v1; -public interface TableSchemaOrBuilder - extends +public interface TableSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.TableSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
    * Describes the fields in a table.
    * 
@@ -44,8 +25,6 @@ public interface TableSchemaOrBuilder */ com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index); /** - * - * *
    * Describes the fields in a table.
    * 
@@ -54,24 +33,21 @@ public interface TableSchemaOrBuilder */ int getFieldsCount(); /** - * - * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** - * - * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ - com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index); + com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( + int index); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java similarity index 64% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java index 4e10be31ab..8923664b46 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java @@ -1,82 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Information on if the current connection is being throttled.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ThrottleState} */ -public final class ThrottleState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ThrottleState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ThrottleState) ThrottleStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ThrottleState.newBuilder() to construct. private ThrottleState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ThrottleState() {} + private ThrottleState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ThrottleState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ThrottleState.class, - com.google.cloud.bigquery.storage.v1.ThrottleState.Builder.class); + com.google.cloud.bigquery.storage.v1.ThrottleState.class, com.google.cloud.bigquery.storage.v1.ThrottleState.Builder.class); } public static final int THROTTLE_PERCENT_FIELD_NUMBER = 1; private int throttlePercent_ = 0; /** - * - * *
    * How much this connection is being throttled. Zero means no throttling,
    * 100 means fully throttled.
    * 
* * int32 throttle_percent = 1; - * * @return The throttlePercent. */ @java.lang.Override @@ -85,7 +64,6 @@ public int getThrottlePercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,7 +75,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (throttlePercent_ != 0) { output.writeInt32(1, throttlePercent_); } @@ -111,7 +90,8 @@ public int getSerializedSize() { size = 0; if (throttlePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, throttlePercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, throttlePercent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -121,15 +101,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ThrottleState)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ThrottleState other = - (com.google.cloud.bigquery.storage.v1.ThrottleState) obj; + com.google.cloud.bigquery.storage.v1.ThrottleState other = (com.google.cloud.bigquery.storage.v1.ThrottleState) obj; - if (getThrottlePercent() != other.getThrottlePercent()) return false; + if (getThrottlePercent() + != other.getThrottlePercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -149,135 +129,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ThrottleState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information on if the current connection is being throttled.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ThrottleState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ThrottleState) com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ThrottleState.class, - com.google.cloud.bigquery.storage.v1.ThrottleState.Builder.class); + com.google.cloud.bigquery.storage.v1.ThrottleState.class, com.google.cloud.bigquery.storage.v1.ThrottleState.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ThrottleState.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -287,9 +261,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto - .internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; } @java.lang.Override @@ -308,11 +282,8 @@ public com.google.cloud.bigquery.storage.v1.ThrottleState build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ThrottleState buildPartial() { - com.google.cloud.bigquery.storage.v1.ThrottleState result = - new com.google.cloud.bigquery.storage.v1.ThrottleState(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.ThrottleState result = new com.google.cloud.bigquery.storage.v1.ThrottleState(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -328,39 +299,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ThrottleState re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ThrottleState) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ThrottleState) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ThrottleState)other); } else { super.mergeFrom(other); return this; @@ -368,8 +338,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ThrottleState other) { - if (other == com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()) return this; if (other.getThrottlePercent() != 0) { setThrottlePercent(other.getThrottlePercent()); } @@ -399,19 +368,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - throttlePercent_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + throttlePercent_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,20 +388,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int throttlePercent_; + private int throttlePercent_ ; /** - * - * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; - * * @return The throttlePercent. */ @java.lang.Override @@ -442,35 +405,29 @@ public int getThrottlePercent() { return throttlePercent_; } /** - * - * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; - * * @param value The throttlePercent to set. * @return This builder for chaining. */ public Builder setThrottlePercent(int value) { - + throttlePercent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; - * * @return This builder for chaining. */ public Builder clearThrottlePercent() { @@ -479,9 +436,9 @@ public Builder clearThrottlePercent() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -491,12 +448,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ThrottleState) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ThrottleState) private static final com.google.cloud.bigquery.storage.v1.ThrottleState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ThrottleState(); } @@ -505,27 +462,27 @@ public static com.google.cloud.bigquery.storage.v1.ThrottleState getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThrottleState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThrottleState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -540,4 +497,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ThrottleState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java new file mode 100644 index 0000000000..ed4dfcf538 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface ThrottleStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ThrottleState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * How much this connection is being throttled. Zero means no throttling,
+   * 100 means fully throttled.
+   * 
+ * + * int32 throttle_percent = 1; + * @return The throttlePercent. + */ + int getThrottlePercent(); +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java similarity index 67% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java index f788332701..76f0e81612 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * Information about a single stream that gets data inside the storage system.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.WriteStream} */ -public final class WriteStream extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteStream extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.WriteStream) WriteStreamOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteStream.newBuilder() to construct. private WriteStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WriteStream() { name_ = ""; type_ = 0; @@ -46,43 +28,39 @@ private WriteStream() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteStream(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.WriteStream.class, - com.google.cloud.bigquery.storage.v1.WriteStream.Builder.class); + com.google.cloud.bigquery.storage.v1.WriteStream.class, com.google.cloud.bigquery.storage.v1.WriteStream.Builder.class); } /** - * - * *
    * Type enum of the stream.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1.WriteStream.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown type.
      * 
@@ -91,8 +69,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Data will commit automatically and appear as soon as the write is
      * acknowledged.
@@ -102,8 +78,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     COMMITTED(1),
     /**
-     *
-     *
      * 
      * Data is invisible until the stream is committed.
      * 
@@ -112,8 +86,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(2), /** - * - * *
      * Data is only visible up to the offset to which it was flushed.
      * 
@@ -125,8 +97,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown type.
      * 
@@ -135,8 +105,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Data will commit automatically and appear as soon as the write is
      * acknowledged.
@@ -146,8 +114,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMMITTED_VALUE = 1;
     /**
-     *
-     *
      * 
      * Data is invisible until the stream is committed.
      * 
@@ -156,8 +122,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 2; /** - * - * *
      * Data is only visible up to the offset to which it was flushed.
      * 
@@ -166,6 +130,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BUFFERED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -190,51 +155,50 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return COMMITTED; - case 2: - return PENDING; - case 3: - return BUFFERED; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return COMMITTED; + case 2: return PENDING; + case 3: return BUFFERED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.bigquery.storage.v1.WriteStream.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -252,18 +216,15 @@ private Type(int value) { } /** - * - * *
    * Mode enum of the stream.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1.WriteStream.WriteMode} */ - public enum WriteMode implements com.google.protobuf.ProtocolMessageEnum { + public enum WriteMode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown type.
      * 
@@ -272,8 +233,6 @@ public enum WriteMode implements com.google.protobuf.ProtocolMessageEnum { */ WRITE_MODE_UNSPECIFIED(0), /** - * - * *
      * Insert new records into the table.
      * It is the default value if customers do not specify it.
@@ -286,8 +245,6 @@ public enum WriteMode implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unknown type.
      * 
@@ -296,8 +253,6 @@ public enum WriteMode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WRITE_MODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Insert new records into the table.
      * It is the default value if customers do not specify it.
@@ -307,6 +262,7 @@ public enum WriteMode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INSERT_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -331,47 +287,48 @@ public static WriteMode valueOf(int value) {
      */
     public static WriteMode forNumber(int value) {
       switch (value) {
-        case 0:
-          return WRITE_MODE_UNSPECIFIED;
-        case 1:
-          return INSERT;
-        default:
-          return null;
+        case 0: return WRITE_MODE_UNSPECIFIED;
+        case 1: return INSERT;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        WriteMode> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public WriteMode findValueByNumber(int number) {
+              return WriteMode.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public WriteMode findValueByNumber(int number) {
-            return WriteMode.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.bigquery.storage.v1.WriteStream.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final WriteMode[] VALUES = values();
 
-    public static WriteMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static WriteMode valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -389,19 +346,15 @@ private WriteMode(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -410,30 +363,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -444,57 +397,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** - * - * *
    * Immutable. Type of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Immutable. Type of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1.WriteStream.Type getType() { - com.google.cloud.bigquery.storage.v1.WriteStream.Type result = - com.google.cloud.bigquery.storage.v1.WriteStream.Type.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.storage.v1.WriteStream.Type.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream.Type getType() { + com.google.cloud.bigquery.storage.v1.WriteStream.Type result = com.google.cloud.bigquery.storage.v1.WriteStream.Type.forNumber(type_); + return result == null ? com.google.cloud.bigquery.storage.v1.WriteStream.Type.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -502,16 +436,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -519,15 +449,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -537,8 +464,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int COMMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp commitTime_; /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -546,9 +471,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the commitTime field is set. */ @java.lang.Override @@ -556,8 +479,6 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -565,9 +486,7 @@ public boolean hasCommitTime() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The commitTime. */ @java.lang.Override @@ -575,8 +494,6 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -584,8 +501,7 @@ public com.google.protobuf.Timestamp getCommitTime() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { @@ -595,8 +511,6 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { public static final int TABLE_SCHEMA_FIELD_NUMBER = 5; private com.google.cloud.bigquery.storage.v1.TableSchema tableSchema_; /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -604,10 +518,7 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tableSchema field is set. */ @java.lang.Override @@ -615,8 +526,6 @@ public boolean hasTableSchema() { return tableSchema_ != null; } /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -624,21 +533,14 @@ public boolean hasTableSchema() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tableSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableSchema getTableSchema() { - return tableSchema_ == null - ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() - : tableSchema_; + return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : tableSchema_; } /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -646,65 +548,43 @@ public com.google.cloud.bigquery.storage.v1.TableSchema getTableSchema() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaOrBuilder() { - return tableSchema_ == null - ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() - : tableSchema_; + return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : tableSchema_; } public static final int WRITE_MODE_FIELD_NUMBER = 7; private int writeMode_ = 0; /** - * - * *
    * Immutable. Mode of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for writeMode. */ - @java.lang.Override - public int getWriteModeValue() { + @java.lang.Override public int getWriteModeValue() { return writeMode_; } /** - * - * *
    * Immutable. Mode of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The writeMode. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode getWriteMode() { - com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode result = - com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.forNumber(writeMode_); - return result == null - ? com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode getWriteMode() { + com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode result = com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.forNumber(writeMode_); + return result == null ? com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.UNRECOGNIZED : result; } public static final int LOCATION_FIELD_NUMBER = 8; - @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** - * - * *
    * Immutable. The geographic location where the stream's dataset resides. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -712,7 +592,6 @@ public com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode getWriteMode()
    * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The location. */ @java.lang.Override @@ -721,15 +600,14 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
    * Immutable. The geographic location where the stream's dataset resides. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -737,15 +615,16 @@ public java.lang.String getLocation() {
    * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -754,7 +633,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -766,12 +644,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ - != com.google.cloud.bigquery.storage.v1.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ != com.google.cloud.bigquery.storage.v1.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (createTime_ != null) { @@ -783,9 +661,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tableSchema_ != null) { output.writeMessage(5, getTableSchema()); } - if (writeMode_ - != com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.WRITE_MODE_UNSPECIFIED - .getNumber()) { + if (writeMode_ != com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.WRITE_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(7, writeMode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { @@ -803,23 +679,25 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ - != com.google.cloud.bigquery.storage.v1.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.bigquery.storage.v1.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (commitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCommitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCommitTime()); } if (tableSchema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTableSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getTableSchema()); } - if (writeMode_ - != com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.WRITE_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, writeMode_); + if (writeMode_ != com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.WRITE_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, writeMode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, location_); @@ -832,30 +710,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.WriteStream)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.WriteStream other = - (com.google.cloud.bigquery.storage.v1.WriteStream) obj; + com.google.cloud.bigquery.storage.v1.WriteStream other = (com.google.cloud.bigquery.storage.v1.WriteStream) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (type_ != other.type_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasCommitTime() != other.hasCommitTime()) return false; if (hasCommitTime()) { - if (!getCommitTime().equals(other.getCommitTime())) return false; + if (!getCommitTime() + .equals(other.getCommitTime())) return false; } if (hasTableSchema() != other.hasTableSchema()) return false; if (hasTableSchema()) { - if (!getTableSchema().equals(other.getTableSchema())) return false; + if (!getTableSchema() + .equals(other.getTableSchema())) return false; } if (writeMode_ != other.writeMode_) return false; - if (!getLocation().equals(other.getLocation())) return false; + if (!getLocation() + .equals(other.getLocation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -892,136 +774,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1.WriteStream parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1.WriteStream parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.WriteStream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about a single stream that gets data inside the storage system.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.WriteStream} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.WriteStream) com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.WriteStream.class, - com.google.cloud.bigquery.storage.v1.WriteStream.Builder.class); + com.google.cloud.bigquery.storage.v1.WriteStream.class, com.google.cloud.bigquery.storage.v1.WriteStream.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.WriteStream.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1049,9 +925,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StreamProto - .internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; } @java.lang.Override @@ -1070,11 +946,8 @@ public com.google.cloud.bigquery.storage.v1.WriteStream build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream buildPartial() { - com.google.cloud.bigquery.storage.v1.WriteStream result = - new com.google.cloud.bigquery.storage.v1.WriteStream(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1.WriteStream result = new com.google.cloud.bigquery.storage.v1.WriteStream(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1088,14 +961,19 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.WriteStream resu result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); + result.commitTime_ = commitTimeBuilder_ == null + ? commitTime_ + : commitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.tableSchema_ = - tableSchemaBuilder_ == null ? tableSchema_ : tableSchemaBuilder_.build(); + result.tableSchema_ = tableSchemaBuilder_ == null + ? tableSchema_ + : tableSchemaBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.writeMode_ = writeMode_; @@ -1109,39 +987,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.WriteStream resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.WriteStream) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.WriteStream) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.WriteStream)other); } else { super.mergeFrom(other); return this; @@ -1149,8 +1026,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.WriteStream other) { - if (other == com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1202,55 +1078,53 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getTableSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 56: - { - writeMode_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 66: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCommitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getTableSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 56: { + writeMode_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1260,26 +1134,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1288,22 +1159,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1311,37 +1181,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1351,22 +1214,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1376,33 +1235,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * Immutable. Type of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Immutable. Type of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1413,37 +1261,24 @@ public Builder setTypeValue(int value) { return this; } /** - * - * *
      * Immutable. Type of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream.Type getType() { - com.google.cloud.bigquery.storage.v1.WriteStream.Type result = - com.google.cloud.bigquery.storage.v1.WriteStream.Type.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.storage.v1.WriteStream.Type.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1.WriteStream.Type result = com.google.cloud.bigquery.storage.v1.WriteStream.Type.forNumber(type_); + return result == null ? com.google.cloud.bigquery.storage.v1.WriteStream.Type.UNRECOGNIZED : result; } /** - * - * *
      * Immutable. Type of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The type to set. * @return This builder for chaining. */ @@ -1457,16 +1292,11 @@ public Builder setType(com.google.cloud.bigquery.storage.v1.WriteStream.Type val return this; } /** - * - * *
      * Immutable. Type of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearType() { @@ -1478,61 +1308,42 @@ public Builder clearType() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1548,18 +1359,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1570,22 +1378,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1598,16 +1402,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1620,16 +1420,12 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1637,50 +1433,38 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1688,13 +1472,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - commitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1702,18 +1481,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1721,24 +1495,17 @@ public boolean hasCommitTime() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1746,9 +1513,7 @@ public com.google.protobuf.Timestamp getCommitTime() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { @@ -1764,8 +1529,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1773,11 +1536,10 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCommitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimeBuilder_ == null) { commitTime_ = builderForValue.build(); } else { @@ -1788,8 +1550,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1797,15 +1557,13 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && commitTime_ != null - && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + commitTime_ != null && + commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCommitTimeBuilder().mergeFrom(value); } else { commitTime_ = value; @@ -1818,8 +1576,6 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1827,9 +1583,7 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCommitTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1842,8 +1596,6 @@ public Builder clearCommitTime() { return this; } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1851,9 +1603,7 @@ public Builder clearCommitTime() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { bitField0_ |= 0x00000008; @@ -1861,8 +1611,6 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { return getCommitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1870,22 +1618,17 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { if (commitTimeBuilder_ != null) { return commitTimeBuilder_.getMessageOrBuilder(); } else { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1893,22 +1636,17 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCommitTimeFieldBuilder() { if (commitTimeBuilder_ == null) { - commitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCommitTime(), getParentForChildren(), isClean()); + commitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCommitTime(), + getParentForChildren(), + isClean()); commitTime_ = null; } return commitTimeBuilder_; @@ -1916,13 +1654,8 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { private com.google.cloud.bigquery.storage.v1.TableSchema tableSchema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableSchema, - com.google.cloud.bigquery.storage.v1.TableSchema.Builder, - com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> - tableSchemaBuilder_; + com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> tableSchemaBuilder_; /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1930,18 +1663,13 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tableSchema field is set. */ public boolean hasTableSchema() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1949,24 +1677,17 @@ public boolean hasTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tableSchema. */ public com.google.cloud.bigquery.storage.v1.TableSchema getTableSchema() { if (tableSchemaBuilder_ == null) { - return tableSchema_ == null - ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() - : tableSchema_; + return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : tableSchema_; } else { return tableSchemaBuilder_.getMessage(); } } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1974,9 +1695,7 @@ public com.google.cloud.bigquery.storage.v1.TableSchema getTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema value) { if (tableSchemaBuilder_ == null) { @@ -1992,8 +1711,6 @@ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema v return this; } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -2001,9 +1718,7 @@ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema v
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTableSchema( com.google.cloud.bigquery.storage.v1.TableSchema.Builder builderForValue) { @@ -2017,8 +1732,6 @@ public Builder setTableSchema( return this; } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -2026,16 +1739,13 @@ public Builder setTableSchema(
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema value) { if (tableSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && tableSchema_ != null - && tableSchema_ - != com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + tableSchema_ != null && + tableSchema_ != com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()) { getTableSchemaBuilder().mergeFrom(value); } else { tableSchema_ = value; @@ -2048,8 +1758,6 @@ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema return this; } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -2057,9 +1765,7 @@ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTableSchema() { bitField0_ = (bitField0_ & ~0x00000010); @@ -2072,8 +1778,6 @@ public Builder clearTableSchema() { return this; } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -2081,9 +1785,7 @@ public Builder clearTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1.TableSchema.Builder getTableSchemaBuilder() { bitField0_ |= 0x00000010; @@ -2091,8 +1793,6 @@ public com.google.cloud.bigquery.storage.v1.TableSchema.Builder getTableSchemaBu return getTableSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -2100,22 +1800,17 @@ public com.google.cloud.bigquery.storage.v1.TableSchema.Builder getTableSchemaBu
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaOrBuilder() { if (tableSchemaBuilder_ != null) { return tableSchemaBuilder_.getMessageOrBuilder(); } else { - return tableSchema_ == null - ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() - : tableSchema_; + return tableSchema_ == null ? + com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : tableSchema_; } } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -2123,22 +1818,17 @@ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaO
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableSchema, - com.google.cloud.bigquery.storage.v1.TableSchema.Builder, - com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> getTableSchemaFieldBuilder() { if (tableSchemaBuilder_ == null) { - tableSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableSchema, - com.google.cloud.bigquery.storage.v1.TableSchema.Builder, - com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>( - getTableSchema(), getParentForChildren(), isClean()); + tableSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>( + getTableSchema(), + getParentForChildren(), + isClean()); tableSchema_ = null; } return tableSchemaBuilder_; @@ -2146,33 +1836,22 @@ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaO private int writeMode_ = 0; /** - * - * *
      * Immutable. Mode of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for writeMode. */ - @java.lang.Override - public int getWriteModeValue() { + @java.lang.Override public int getWriteModeValue() { return writeMode_; } /** - * - * *
      * Immutable. Mode of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for writeMode to set. * @return This builder for chaining. */ @@ -2183,37 +1862,24 @@ public Builder setWriteModeValue(int value) { return this; } /** - * - * *
      * Immutable. Mode of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The writeMode. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode getWriteMode() { - com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode result = - com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.forNumber(writeMode_); - return result == null - ? com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode result = com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.forNumber(writeMode_); + return result == null ? com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.UNRECOGNIZED : result; } /** - * - * *
      * Immutable. Mode of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The writeMode to set. * @return This builder for chaining. */ @@ -2227,16 +1893,11 @@ public Builder setWriteMode(com.google.cloud.bigquery.storage.v1.WriteStream.Wri return this; } /** - * - * *
      * Immutable. Mode of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearWriteMode() { @@ -2248,8 +1909,6 @@ public Builder clearWriteMode() { private java.lang.Object location_ = ""; /** - * - * *
      * Immutable. The geographic location where the stream's dataset resides. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -2257,13 +1916,13 @@ public Builder clearWriteMode() {
      * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -2272,8 +1931,6 @@ public java.lang.String getLocation() { } } /** - * - * *
      * Immutable. The geographic location where the stream's dataset resides. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -2281,14 +1938,15 @@ public java.lang.String getLocation() {
      * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -2296,8 +1954,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
      * Immutable. The geographic location where the stream's dataset resides. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -2305,22 +1961,18 @@ public com.google.protobuf.ByteString getLocationBytes() {
      * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Immutable. The geographic location where the stream's dataset resides. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -2328,7 +1980,6 @@ public Builder setLocation(java.lang.String value) {
      * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -2338,8 +1989,6 @@ public Builder clearLocation() { return this; } /** - * - * *
      * Immutable. The geographic location where the stream's dataset resides. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -2347,23 +1996,21 @@ public Builder clearLocation() {
      * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2373,12 +2020,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.WriteStream) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.WriteStream) private static final com.google.cloud.bigquery.storage.v1.WriteStream DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.WriteStream(); } @@ -2387,27 +2034,27 @@ public static com.google.cloud.bigquery.storage.v1.WriteStream getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2422,4 +2069,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.WriteStream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java similarity index 100% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java similarity index 71% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java index dcffa68a6f..e9255cbb96 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java @@ -1,128 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; -public interface WriteStreamOrBuilder - extends +public interface WriteStreamOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.WriteStream) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Immutable. Type of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Immutable. Type of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ com.google.cloud.bigquery.storage.v1.WriteStream.Type getType(); /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -130,15 +86,11 @@ public interface WriteStreamOrBuilder
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -146,15 +98,11 @@ public interface WriteStreamOrBuilder
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -162,14 +110,11 @@ public interface WriteStreamOrBuilder
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder(); /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -177,16 +122,11 @@ public interface WriteStreamOrBuilder
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tableSchema field is set. */ boolean hasTableSchema(); /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -194,16 +134,11 @@ public interface WriteStreamOrBuilder
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tableSchema. */ com.google.cloud.bigquery.storage.v1.TableSchema getTableSchema(); /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -211,44 +146,30 @@ public interface WriteStreamOrBuilder
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaOrBuilder(); /** - * - * *
    * Immutable. Mode of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for writeMode. */ int getWriteModeValue(); /** - * - * *
    * Immutable. Mode of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; * @return The writeMode. */ com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode getWriteMode(); /** - * - * *
    * Immutable. The geographic location where the stream's dataset resides. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -256,13 +177,10 @@ public interface WriteStreamOrBuilder
    * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
    * Immutable. The geographic location where the stream's dataset resides. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -270,8 +188,8 @@ public interface WriteStreamOrBuilder
    * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java similarity index 70% rename from proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java index 7382e19730..ff4682ff27 100644 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java +++ b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; /** - * - * *
  * WriteStreamView is a view enum that controls what details about a write
  * stream should be returned.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.bigquery.storage.v1.WriteStreamView}
  */
-public enum WriteStreamView implements com.google.protobuf.ProtocolMessageEnum {
+public enum WriteStreamView
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * The default / unset value.
    * 
@@ -40,8 +22,6 @@ public enum WriteStreamView implements com.google.protobuf.ProtocolMessageEnum { */ WRITE_STREAM_VIEW_UNSPECIFIED(0), /** - * - * *
    * The BASIC projection returns basic metadata about a write stream.  The
    * basic view does not include schema information.  This is the default view
@@ -52,8 +32,6 @@ public enum WriteStreamView implements com.google.protobuf.ProtocolMessageEnum {
    */
   BASIC(1),
   /**
-   *
-   *
    * 
    * The FULL projection returns all available write stream metadata, including
    * the schema.  CreateWriteStream returns the full projection of write stream
@@ -67,8 +45,6 @@ public enum WriteStreamView implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * The default / unset value.
    * 
@@ -77,8 +53,6 @@ public enum WriteStreamView implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WRITE_STREAM_VIEW_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The BASIC projection returns basic metadata about a write stream.  The
    * basic view does not include schema information.  This is the default view
@@ -89,8 +63,6 @@ public enum WriteStreamView implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int BASIC_VALUE = 1;
   /**
-   *
-   *
    * 
    * The FULL projection returns all available write stream metadata, including
    * the schema.  CreateWriteStream returns the full projection of write stream
@@ -101,6 +73,7 @@ public enum WriteStreamView implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int FULL_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -125,49 +98,49 @@ public static WriteStreamView valueOf(int value) {
    */
   public static WriteStreamView forNumber(int value) {
     switch (value) {
-      case 0:
-        return WRITE_STREAM_VIEW_UNSPECIFIED;
-      case 1:
-        return BASIC;
-      case 2:
-        return FULL;
-      default:
-        return null;
+      case 0: return WRITE_STREAM_VIEW_UNSPECIFIED;
+      case 1: return BASIC;
+      case 2: return FULL;
+      default: return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap
+      internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public WriteStreamView findValueByNumber(int number) {
-          return WriteStreamView.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      WriteStreamView> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public WriteStreamView findValueByNumber(int number) {
+            return WriteStreamView.forNumber(number);
+          }
+        };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
     return com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final WriteStreamView[] VALUES = values();
 
-  public static WriteStreamView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static WriteStreamView valueOf(
+      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -183,3 +156,4 @@ private WriteStreamView(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1.WriteStreamView)
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto
similarity index 100%
rename from proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto
similarity index 100%
rename from proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto
similarity index 100%
rename from proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto
similarity index 100%
rename from proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto
similarity index 100%
rename from proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto
similarity index 100%
rename from proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto
diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto
similarity index 100%
rename from proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto
rename to owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto
diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java
similarity index 100%
rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java
rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java
diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java
similarity index 99%
rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java
rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java
index 4df22dfce9..fe2861429c 100644
--- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java
+++ b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java
@@ -25,6 +25,7 @@
 import com.google.api.gax.rpc.ClientContext;
 import com.google.api.gax.rpc.ClientSettings;
 import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.StubSettings;
 import com.google.api.gax.rpc.TransportChannelProvider;
 import com.google.api.gax.rpc.UnaryCallSettings;
 import com.google.cloud.bigquery.storage.v1beta1.stub.BigQueryStorageStubSettings;
diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json
similarity index 100%
rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json
rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json
diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java
similarity index 94%
rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java
rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java
index 8a620b33aa..6c2325ad6d 100644
--- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java
+++ b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java
@@ -15,7 +15,9 @@
  */
 
 /**
- * The interfaces provided are listed below, along with usage samples.
+ * A client to BigQuery Storage API
+ *
+ * 

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

======================= BaseBigQueryStorageClient ======================= * diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStub.java b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStub.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStub.java rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStub.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageCallableFactory.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageCallableFactory.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java similarity index 99% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java index 5dffc4e674..9b0bb75b67 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java @@ -31,6 +31,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClientTest.java b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClientTest.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClientTest.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorageImpl.java b/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorageImpl.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorageImpl.java rename to owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorageImpl.java diff --git a/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java similarity index 51% rename from grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java rename to owl-bot-staging/v1beta1/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java index cf52d1ae7f..f0b5ae2d78 100644 --- a/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.bigquery.storage.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * BigQuery storage API.
  * The BigQuery storage API can be used to read data stored in BigQuery.
@@ -36,307 +19,214 @@ private BigQueryStorageGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1beta1.BigQueryStorage";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest,
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>
-      getCreateReadSessionMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateReadSessionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReadSession",
-      requestType =
-          com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class,
+      requestType = com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest,
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>
-      getCreateReadSessionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest,
-            com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>
-        getCreateReadSessionMethod;
+  public static io.grpc.MethodDescriptor getCreateReadSessionMethod() {
+    io.grpc.MethodDescriptor getCreateReadSessionMethod;
     if ((getCreateReadSessionMethod = BigQueryStorageGrpc.getCreateReadSessionMethod) == null) {
       synchronized (BigQueryStorageGrpc.class) {
         if ((getCreateReadSessionMethod = BigQueryStorageGrpc.getCreateReadSessionMethod) == null) {
-          BigQueryStorageGrpc.getCreateReadSessionMethod =
-              getCreateReadSessionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta1.Storage
-                                  .CreateReadSessionRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BigQueryStorageMethodDescriptorSupplier("CreateReadSession"))
-                      .build();
+          BigQueryStorageGrpc.getCreateReadSessionMethod = getCreateReadSessionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("CreateReadSession"))
+              .build();
         }
       }
     }
     return getCreateReadSessionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest,
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>
-      getReadRowsMethod;
+  private static volatile io.grpc.MethodDescriptor getReadRowsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ReadRows",
       requestType = com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest,
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>
-      getReadRowsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest,
-            com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>
-        getReadRowsMethod;
+  public static io.grpc.MethodDescriptor getReadRowsMethod() {
+    io.grpc.MethodDescriptor getReadRowsMethod;
     if ((getReadRowsMethod = BigQueryStorageGrpc.getReadRowsMethod) == null) {
       synchronized (BigQueryStorageGrpc.class) {
         if ((getReadRowsMethod = BigQueryStorageGrpc.getReadRowsMethod) == null) {
-          BigQueryStorageGrpc.getReadRowsMethod =
-              getReadRowsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("ReadRows"))
-                      .build();
+          BigQueryStorageGrpc.getReadRowsMethod = getReadRowsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("ReadRows"))
+              .build();
         }
       }
     }
     return getReadRowsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest,
-          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse>
-      getBatchCreateReadSessionStreamsMethod;
+  private static volatile io.grpc.MethodDescriptor getBatchCreateReadSessionStreamsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchCreateReadSessionStreams",
-      requestType =
-          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest
-              .class,
-      responseType =
-          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse
-              .class,
+      requestType = com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.class,
+      responseType = com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest,
-          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse>
-      getBatchCreateReadSessionStreamsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest,
-            com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse>
-        getBatchCreateReadSessionStreamsMethod;
-    if ((getBatchCreateReadSessionStreamsMethod =
-            BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getBatchCreateReadSessionStreamsMethod() {
+    io.grpc.MethodDescriptor getBatchCreateReadSessionStreamsMethod;
+    if ((getBatchCreateReadSessionStreamsMethod = BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod) == null) {
       synchronized (BigQueryStorageGrpc.class) {
-        if ((getBatchCreateReadSessionStreamsMethod =
-                BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod)
-            == null) {
-          BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod =
-              getBatchCreateReadSessionStreamsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "BatchCreateReadSessionStreams"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta1.Storage
-                                  .BatchCreateReadSessionStreamsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta1.Storage
-                                  .BatchCreateReadSessionStreamsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BigQueryStorageMethodDescriptorSupplier(
-                              "BatchCreateReadSessionStreams"))
-                      .build();
+        if ((getBatchCreateReadSessionStreamsMethod = BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod) == null) {
+          BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod = getBatchCreateReadSessionStreamsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCreateReadSessionStreams"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("BatchCreateReadSessionStreams"))
+              .build();
         }
       }
     }
     return getBatchCreateReadSessionStreamsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest,
-          com.google.protobuf.Empty>
-      getFinalizeStreamMethod;
+  private static volatile io.grpc.MethodDescriptor getFinalizeStreamMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "FinalizeStream",
       requestType = com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest,
-          com.google.protobuf.Empty>
-      getFinalizeStreamMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest,
-            com.google.protobuf.Empty>
-        getFinalizeStreamMethod;
+  public static io.grpc.MethodDescriptor getFinalizeStreamMethod() {
+    io.grpc.MethodDescriptor getFinalizeStreamMethod;
     if ((getFinalizeStreamMethod = BigQueryStorageGrpc.getFinalizeStreamMethod) == null) {
       synchronized (BigQueryStorageGrpc.class) {
         if ((getFinalizeStreamMethod = BigQueryStorageGrpc.getFinalizeStreamMethod) == null) {
-          BigQueryStorageGrpc.getFinalizeStreamMethod =
-              getFinalizeStreamMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FinalizeStream"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta1.Storage
-                                  .FinalizeStreamRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.protobuf.Empty.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BigQueryStorageMethodDescriptorSupplier("FinalizeStream"))
-                      .build();
+          BigQueryStorageGrpc.getFinalizeStreamMethod = getFinalizeStreamMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FinalizeStream"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.protobuf.Empty.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("FinalizeStream"))
+              .build();
         }
       }
     }
     return getFinalizeStreamMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest,
-          com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>
-      getSplitReadStreamMethod;
+  private static volatile io.grpc.MethodDescriptor getSplitReadStreamMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "SplitReadStream",
       requestType = com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.class,
-      responseType =
-          com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class,
+      responseType = com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest,
-          com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>
-      getSplitReadStreamMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest,
-            com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>
-        getSplitReadStreamMethod;
+  public static io.grpc.MethodDescriptor getSplitReadStreamMethod() {
+    io.grpc.MethodDescriptor getSplitReadStreamMethod;
     if ((getSplitReadStreamMethod = BigQueryStorageGrpc.getSplitReadStreamMethod) == null) {
       synchronized (BigQueryStorageGrpc.class) {
         if ((getSplitReadStreamMethod = BigQueryStorageGrpc.getSplitReadStreamMethod) == null) {
-          BigQueryStorageGrpc.getSplitReadStreamMethod =
-              getSplitReadStreamMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta1.Storage
-                                  .SplitReadStreamRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta1.Storage
-                                  .SplitReadStreamResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BigQueryStorageMethodDescriptorSupplier("SplitReadStream"))
-                      .build();
+          BigQueryStorageGrpc.getSplitReadStreamMethod = getSplitReadStreamMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("SplitReadStream"))
+              .build();
         }
       }
     }
     return getSplitReadStreamMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static BigQueryStorageStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BigQueryStorageStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BigQueryStorageStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BigQueryStorageStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BigQueryStorageStub(channel, callOptions);
+        }
+      };
     return BigQueryStorageStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BigQueryStorageBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static BigQueryStorageBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BigQueryStorageBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BigQueryStorageBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BigQueryStorageBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BigQueryStorageBlockingStub(channel, callOptions);
+        }
+      };
     return BigQueryStorageBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static BigQueryStorageFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static BigQueryStorageFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BigQueryStorageFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BigQueryStorageFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BigQueryStorageFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BigQueryStorageFutureStub(channel, callOptions);
+        }
+      };
     return BigQueryStorageFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * BigQuery storage API.
    * The BigQuery storage API can be used to read data stored in BigQuery.
    * 
*/ - public abstract static class BigQueryStorageImplBase implements io.grpc.BindableService { + public static abstract class BigQueryStorageImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -350,17 +240,12 @@ public abstract static class BigQueryStorageImplBase implements io.grpc.Bindable
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession( - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateReadSessionMethod(), responseObserver); + public void createReadSession(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReadSessionMethod(), responseObserver); } /** - * - * *
      * Reads rows from the table in the format prescribed by the read session.
      * Each response contains one or more table rows, up to a maximum of 10 MiB
@@ -372,37 +257,24 @@ public void createReadSession(
      * session, and may change as other streams continue to read data.
      * 
*/ - public void readRows( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse> - responseObserver) { + public void readRows(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadRowsMethod(), responseObserver); } /** - * - * *
      * Creates additional streams for a ReadSession. This API can be used to
      * dynamically adjust the parallelism of a batch processing task upwards by
      * adding additional workers.
      * 
*/ - public void batchCreateReadSessionStreams( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchCreateReadSessionStreamsMethod(), responseObserver); + public void batchCreateReadSessionStreams(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchCreateReadSessionStreamsMethod(), responseObserver); } /** - * - * *
      * Triggers the graceful termination of a single stream in a ReadSession. This
      * API can be used to dynamically adjust the parallelism of a batch processing
@@ -418,16 +290,12 @@ public void batchCreateReadSessionStreams(
      * Stream.
      * 
*/ - public void finalizeStream( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request, + public void finalizeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFinalizeStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFinalizeStreamMethod(), responseObserver); } /** - * - * *
      * Splits a given read stream into two Streams. These streams are referred to
      * as the primary and the residual of the split. The original stream can still
@@ -442,80 +310,71 @@ public void finalizeStream(
      * This method is guaranteed to be idempotent.
      * 
*/ - public void splitReadStream( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSplitReadStreamMethod(), responseObserver); + public void splitReadStream(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSplitReadStreamMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateReadSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>( - this, METHODID_CREATE_READ_SESSION))) + getCreateReadSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>( + this, METHODID_CREATE_READ_SESSION))) .addMethod( - getReadRowsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>( - this, METHODID_READ_ROWS))) + getReadRowsMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>( + this, METHODID_READ_ROWS))) .addMethod( - getBatchCreateReadSessionStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse>( - this, METHODID_BATCH_CREATE_READ_SESSION_STREAMS))) + getBatchCreateReadSessionStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest, + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse>( + this, METHODID_BATCH_CREATE_READ_SESSION_STREAMS))) .addMethod( - getFinalizeStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest, - com.google.protobuf.Empty>(this, METHODID_FINALIZE_STREAM))) + getFinalizeStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest, + com.google.protobuf.Empty>( + this, METHODID_FINALIZE_STREAM))) .addMethod( - getSplitReadStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>( - this, METHODID_SPLIT_READ_STREAM))) + getSplitReadStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest, + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>( + this, METHODID_SPLIT_READ_STREAM))) .build(); } } /** - * - * *
    * BigQuery storage API.
    * The BigQuery storage API can be used to read data stored in BigQuery.
    * 
*/ - public static final class BigQueryStorageStub - extends io.grpc.stub.AbstractAsyncStub { - private BigQueryStorageStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryStorageStub extends io.grpc.stub.AbstractAsyncStub { + private BigQueryStorageStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected BigQueryStorageStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected BigQueryStorageStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BigQueryStorageStub(channel, callOptions); } /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -529,19 +388,13 @@ protected BigQueryStorageStub build(io.grpc.Channel channel, io.grpc.CallOptions
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession( - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createReadSession(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Reads rows from the table in the format prescribed by the read session.
      * Each response contains one or more table rows, up to a maximum of 10 MiB
@@ -553,40 +406,26 @@ public void createReadSession(
      * session, and may change as other streams continue to read data.
      * 
*/ - public void readRows( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse> - responseObserver) { + public void readRows(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getReadRowsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Creates additional streams for a ReadSession. This API can be used to
      * dynamically adjust the parallelism of a batch processing task upwards by
      * adding additional workers.
      * 
*/ - public void batchCreateReadSessionStreams( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse> - responseObserver) { + public void batchCreateReadSessionStreams(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCreateReadSessionStreamsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getBatchCreateReadSessionStreamsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Triggers the graceful termination of a single stream in a ReadSession. This
      * API can be used to dynamically adjust the parallelism of a batch processing
@@ -602,18 +441,13 @@ public void batchCreateReadSessionStreams(
      * Stream.
      * 
*/ - public void finalizeStream( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request, + public void finalizeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFinalizeStreamMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getFinalizeStreamMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Splits a given read stream into two Streams. These streams are referred to
      * as the primary and the residual of the split. The original stream can still
@@ -628,29 +462,22 @@ public void finalizeStream(
      * This method is guaranteed to be idempotent.
      * 
*/ - public void splitReadStream( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse> - responseObserver) { + public void splitReadStream(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * BigQuery storage API.
    * The BigQuery storage API can be used to read data stored in BigQuery.
    * 
*/ - public static final class BigQueryStorageBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BigQueryStorageBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryStorageBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BigQueryStorageBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -661,8 +488,6 @@ protected BigQueryStorageBlockingStub build( } /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -676,15 +501,12 @@ protected BigQueryStorageBlockingStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession createReadSession( - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request) { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession createReadSession(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReadSessionMethod(), getCallOptions(), request); } /** - * - * *
      * Reads rows from the table in the format prescribed by the read session.
      * Each response contains one or more table rows, up to a maximum of 10 MiB
@@ -696,32 +518,25 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession createReadS
      * session, and may change as other streams continue to read data.
      * 
*/ - public java.util.Iterator - readRows(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request) { + public java.util.Iterator readRows( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getReadRowsMethod(), getCallOptions(), request); } /** - * - * *
      * Creates additional streams for a ReadSession. This API can be used to
      * dynamically adjust the parallelism of a batch processing task upwards by
      * adding additional workers.
      * 
*/ - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - batchCreateReadSessionStreams( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - request) { + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse batchCreateReadSessionStreams(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchCreateReadSessionStreamsMethod(), getCallOptions(), request); } /** - * - * *
      * Triggers the graceful termination of a single stream in a ReadSession. This
      * API can be used to dynamically adjust the parallelism of a batch processing
@@ -737,15 +552,12 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession createReadS
      * Stream.
      * 
*/ - public com.google.protobuf.Empty finalizeStream( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request) { + public com.google.protobuf.Empty finalizeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFinalizeStreamMethod(), getCallOptions(), request); } /** - * - * *
      * Splits a given read stream into two Streams. These streams are referred to
      * as the primary and the residual of the split. The original stream can still
@@ -760,25 +572,21 @@ public com.google.protobuf.Empty finalizeStream(
      * This method is guaranteed to be idempotent.
      * 
*/ - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse - splitReadStream( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request) { + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse splitReadStream(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSplitReadStreamMethod(), getCallOptions(), request); } } /** - * - * *
    * BigQuery storage API.
    * The BigQuery storage API can be used to read data stored in BigQuery.
    * 
*/ - public static final class BigQueryStorageFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BigQueryStorageFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryStorageFutureStub extends io.grpc.stub.AbstractFutureStub { + private BigQueryStorageFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -789,8 +597,6 @@ protected BigQueryStorageFutureStub build( } /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -804,36 +610,26 @@ protected BigQueryStorageFutureStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession> - createReadSession( - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request) { + public com.google.common.util.concurrent.ListenableFuture createReadSession( + com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request); } /** - * - * *
      * Creates additional streams for a ReadSession. This API can be used to
      * dynamically adjust the parallelism of a batch processing task upwards by
      * adding additional workers.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse> - batchCreateReadSessionStreams( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - request) { + public com.google.common.util.concurrent.ListenableFuture batchCreateReadSessionStreams( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCreateReadSessionStreamsMethod(), getCallOptions()), - request); + getChannel().newCall(getBatchCreateReadSessionStreamsMethod(), getCallOptions()), request); } /** - * - * *
      * Triggers the graceful termination of a single stream in a ReadSession. This
      * API can be used to dynamically adjust the parallelism of a batch processing
@@ -849,16 +645,13 @@ protected BigQueryStorageFutureStub build(
      * Stream.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - finalizeStream( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request) { + public com.google.common.util.concurrent.ListenableFuture finalizeStream( + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFinalizeStreamMethod(), getCallOptions()), request); } /** - * - * *
      * Splits a given read stream into two Streams. These streams are referred to
      * as the primary and the residual of the split. The original stream can still
@@ -873,10 +666,8 @@ protected BigQueryStorageFutureStub build(
      * This method is guaranteed to be idempotent.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse> - splitReadStream( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request) { + public com.google.common.util.concurrent.ListenableFuture splitReadStream( + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request); } @@ -888,11 +679,11 @@ protected BigQueryStorageFutureStub build( private static final int METHODID_FINALIZE_STREAM = 3; private static final int METHODID_SPLIT_READ_STREAM = 4; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final BigQueryStorageImplBase serviceImpl; private final int methodId; @@ -906,40 +697,24 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_READ_SESSION: - serviceImpl.createReadSession( - (com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>) - responseObserver); + serviceImpl.createReadSession((com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_READ_ROWS: - serviceImpl.readRows( - (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>) - responseObserver); + serviceImpl.readRows((com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_BATCH_CREATE_READ_SESSION_STREAMS: - serviceImpl.batchCreateReadSessionStreams( - (com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse>) - responseObserver); + serviceImpl.batchCreateReadSessionStreams((com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_FINALIZE_STREAM: - serviceImpl.finalizeStream( - (com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) request, + serviceImpl.finalizeStream((com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SPLIT_READ_STREAM: - serviceImpl.splitReadStream( - (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>) - responseObserver); + serviceImpl.splitReadStream((com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -957,9 +732,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class BigQueryStorageBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class BigQueryStorageBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { BigQueryStorageBaseDescriptorSupplier() {} @java.lang.Override @@ -1001,16 +775,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BigQueryStorageGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BigQueryStorageFileDescriptorSupplier()) - .addMethod(getCreateReadSessionMethod()) - .addMethod(getReadRowsMethod()) - .addMethod(getBatchCreateReadSessionStreamsMethod()) - .addMethod(getFinalizeStreamMethod()) - .addMethod(getSplitReadStreamMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BigQueryStorageFileDescriptorSupplier()) + .addMethod(getCreateReadSessionMethod()) + .addMethod(getReadRowsMethod()) + .addMethod(getBatchCreateReadSessionStreamsMethod()) + .addMethod(getFinalizeStreamMethod()) + .addMethod(getSplitReadStreamMethod()) + .build(); } } } diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java similarity index 62% rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java index a66c26f895..a90d4fb998 100644 --- a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java @@ -1,18 +1,3 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/arrow.proto @@ -20,91 +5,82 @@ public final class ArrowProto { private ArrowProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { } - public interface ArrowSchemaOrBuilder - extends + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ArrowSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ArrowSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; - * * @return The serializedSchema. */ com.google.protobuf.ByteString getSerializedSchema(); } /** - * - * *
    * Arrow schema.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ArrowSchema} */ - public static final class ArrowSchema extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ArrowSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ArrowSchema) ArrowSchemaOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ArrowSchema.newBuilder() to construct. private ArrowSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ArrowSchema() { serializedSchema_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ArrowSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.class, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.class, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder.class); } public static final int SERIALIZED_SCHEMA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; - * * @return The serializedSchema. */ @java.lang.Override @@ -113,7 +89,6 @@ public com.google.protobuf.ByteString getSerializedSchema() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -125,7 +100,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!serializedSchema_.isEmpty()) { output.writeBytes(1, serializedSchema_); } @@ -139,7 +115,8 @@ public int getSerializedSize() { size = 0; if (!serializedSchema_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedSchema_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serializedSchema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -149,15 +126,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema other = - (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) obj; + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema other = (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) obj; - if (!getSerializedSchema().equals(other.getSerializedSchema())) return false; + if (!getSerializedSchema() + .equals(other.getSerializedSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,95 +154,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -275,42 +244,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Arrow schema.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ArrowSchema} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ArrowSchema) com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.class, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.class, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -320,16 +286,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); } @java.lang.Override @@ -343,17 +307,13 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema build() @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema result = - new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema result = new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.serializedSchema_ = serializedSchema_; @@ -364,53 +324,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance()) return this; if (other.getSerializedSchema() != com.google.protobuf.ByteString.EMPTY) { setSerializedSchema(other.getSerializedSchema()); } @@ -440,19 +393,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - serializedSchema_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + serializedSchema_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,20 +413,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.ByteString serializedSchema_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
        * IPC serialized Arrow schema.
        * 
* * bytes serialized_schema = 1; - * * @return The serializedSchema. */ @java.lang.Override @@ -483,35 +429,27 @@ public com.google.protobuf.ByteString getSerializedSchema() { return serializedSchema_; } /** - * - * *
        * IPC serialized Arrow schema.
        * 
* * bytes serialized_schema = 1; - * * @param value The serializedSchema to set. * @return This builder for chaining. */ public Builder setSerializedSchema(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } serializedSchema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * IPC serialized Arrow schema.
        * 
* * bytes serialized_schema = 1; - * * @return This builder for chaining. */ public Builder clearSerializedSchema() { @@ -520,7 +458,6 @@ public Builder clearSerializedSchema() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -533,44 +470,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ArrowSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ArrowSchema) - private static final com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema(); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,104 +516,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ArrowRecordBatchOrBuilder - extends + public interface ArrowRecordBatchOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * IPC serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; - * * @return The serializedRecordBatch. */ com.google.protobuf.ByteString getSerializedRecordBatch(); /** - * - * *
      * The count of rows in the returning block.
      * 
* * int64 row_count = 2; - * * @return The rowCount. */ long getRowCount(); } /** - * - * *
    * Arrow RecordBatch.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch} */ - public static final class ArrowRecordBatch extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ArrowRecordBatch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch) ArrowRecordBatchOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ArrowRecordBatch.newBuilder() to construct. private ArrowRecordBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ArrowRecordBatch() { serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ArrowRecordBatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.class, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder.class); } public static final int SERIALIZED_RECORD_BATCH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedRecordBatch_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * IPC serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; - * * @return The serializedRecordBatch. */ @java.lang.Override @@ -690,14 +609,11 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { public static final int ROW_COUNT_FIELD_NUMBER = 2; private long rowCount_ = 0L; /** - * - * *
      * The count of rows in the returning block.
      * 
* * int64 row_count = 2; - * * @return The rowCount. */ @java.lang.Override @@ -706,7 +622,6 @@ public long getRowCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -718,7 +633,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!serializedRecordBatch_.isEmpty()) { output.writeBytes(1, serializedRecordBatch_); } @@ -735,10 +651,12 @@ public int getSerializedSize() { size = 0; if (!serializedRecordBatch_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedRecordBatch_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serializedRecordBatch_); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, rowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -748,16 +666,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch other = - (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) obj; + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch other = (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) obj; - if (!getSerializedRecordBatch().equals(other.getSerializedRecordBatch())) return false; - if (getRowCount() != other.getRowCount()) return false; + if (!getSerializedRecordBatch() + .equals(other.getSerializedRecordBatch())) return false; + if (getRowCount() + != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -772,102 +691,95 @@ public int hashCode() { hash = (37 * hash) + SERIALIZED_RECORD_BATCH_FIELD_NUMBER; hash = (53 * hash) + getSerializedRecordBatch().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -877,43 +789,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Arrow RecordBatch.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch) com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.class, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -924,22 +832,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch build() { - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -948,17 +853,13 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch bui @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result = - new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result = new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.serializedRecordBatch_ = serializedRecordBatch_; @@ -972,54 +873,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance()) return this; if (other.getSerializedRecordBatch() != com.google.protobuf.ByteString.EMPTY) { setSerializedRecordBatch(other.getSerializedRecordBatch()); } @@ -1052,25 +945,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - serializedRecordBatch_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + serializedRecordBatch_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1080,20 +970,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.ByteString serializedRecordBatch_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
        * IPC serialized Arrow RecordBatch.
        * 
* * bytes serialized_record_batch = 1; - * * @return The serializedRecordBatch. */ @java.lang.Override @@ -1101,35 +986,27 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { return serializedRecordBatch_; } /** - * - * *
        * IPC serialized Arrow RecordBatch.
        * 
* * bytes serialized_record_batch = 1; - * * @param value The serializedRecordBatch to set. * @return This builder for chaining. */ public Builder setSerializedRecordBatch(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } serializedRecordBatch_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * IPC serialized Arrow RecordBatch.
        * 
* * bytes serialized_record_batch = 1; - * * @return This builder for chaining. */ public Builder clearSerializedRecordBatch() { @@ -1139,16 +1016,13 @@ public Builder clearSerializedRecordBatch() { return this; } - private long rowCount_; + private long rowCount_ ; /** - * - * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; - * * @return The rowCount. */ @java.lang.Override @@ -1156,33 +1030,27 @@ public long getRowCount() { return rowCount_; } /** - * - * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; - * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; - * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -1191,7 +1059,6 @@ public Builder clearRowCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1204,45 +1071,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch) - private static final com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch(); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowRecordBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowRecordBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1254,58 +1117,57 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { - "\n1google/cloud/bigquery/storage/v1beta1/" - + "arrow.proto\022%google.cloud.bigquery.stora" - + "ge.v1beta1\"(\n\013ArrowSchema\022\031\n\021serialized_" - + "schema\030\001 \001(\014\"F\n\020ArrowRecordBatch\022\037\n\027seri" - + "alized_record_batch\030\001 \001(\014\022\021\n\trow_count\030\002" - + " \001(\003B|\n)com.google.cloud.bigquery.storag" - + "e.v1beta1B\nArrowProtoZCcloud.google.com/" - + "go/bigquery/storage/apiv1beta1/storagepb" - + ";storagepbb\006proto3" + "\n1google/cloud/bigquery/storage/v1beta1/" + + "arrow.proto\022%google.cloud.bigquery.stora" + + "ge.v1beta1\"(\n\013ArrowSchema\022\031\n\021serialized_" + + "schema\030\001 \001(\014\"F\n\020ArrowRecordBatch\022\037\n\027seri" + + "alized_record_batch\030\001 \001(\014\022\021\n\trow_count\030\002" + + " \001(\003B|\n)com.google.cloud.bigquery.storag" + + "e.v1beta1B\nArrowProtoZCcloud.google.com/" + + "go/bigquery/storage/apiv1beta1/storagepb" + + ";storagepbb\006proto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor, - new java.lang.String[] { - "SerializedSchema", - }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor, + new java.lang.String[] { "SerializedSchema", }); internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor, - new java.lang.String[] { - "SerializedRecordBatch", "RowCount", - }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor, + new java.lang.String[] { "SerializedRecordBatch", "RowCount", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java index 30181038ab..5133827534 100644 --- a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java @@ -1,18 +1,3 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/avro.proto @@ -20,108 +5,96 @@ public final class AvroProto { private AvroProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { } - public interface AvroSchemaOrBuilder - extends + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface AvroSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.AvroSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html
      * 
* * string schema = 1; - * * @return The schema. */ java.lang.String getSchema(); /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html
      * 
* * string schema = 1; - * * @return The bytes for schema. */ - com.google.protobuf.ByteString getSchemaBytes(); + com.google.protobuf.ByteString + getSchemaBytes(); } /** - * - * *
    * Avro schema.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.AvroSchema} */ - public static final class AvroSchema extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AvroSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.AvroSchema) AvroSchemaOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroSchema.newBuilder() to construct. private AvroSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AvroSchema() { schema_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AvroSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.class, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.class, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html
      * 
* * string schema = 1; - * * @return The schema. */ @java.lang.Override @@ -130,30 +103,30 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html
      * 
* * string schema = 1; - * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -162,7 +135,6 @@ public com.google.protobuf.ByteString getSchemaBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,7 +146,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -198,15 +171,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema other = - (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) obj; + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema other = (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) obj; - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -226,94 +199,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -323,41 +289,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Avro schema.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.AvroSchema} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.AvroSchema) com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.class, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.class, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -367,14 +331,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } @@ -389,17 +352,13 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema result = - new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema result = new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.schema_ = schema_; @@ -410,52 +369,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -487,19 +440,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -509,26 +460,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object schema_ = ""; /** - * - * *
        * Json serialized schema, as described at
        * https://avro.apache.org/docs/1.8.1/spec.html
        * 
* * string schema = 1; - * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -537,22 +485,21 @@ public java.lang.String getSchema() { } } /** - * - * *
        * Json serialized schema, as described at
        * https://avro.apache.org/docs/1.8.1/spec.html
        * 
* * string schema = 1; - * * @return The bytes for schema. */ - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -560,37 +507,30 @@ public com.google.protobuf.ByteString getSchemaBytes() { } } /** - * - * *
        * Json serialized schema, as described at
        * https://avro.apache.org/docs/1.8.1/spec.html
        * 
* * string schema = 1; - * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Json serialized schema, as described at
        * https://avro.apache.org/docs/1.8.1/spec.html
        * 
* * string schema = 1; - * * @return This builder for chaining. */ public Builder clearSchema() { @@ -600,29 +540,24 @@ public Builder clearSchema() { return this; } /** - * - * *
        * Json serialized schema, as described at
        * https://avro.apache.org/docs/1.8.1/spec.html
        * 
* * string schema = 1; - * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -635,44 +570,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.AvroSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.AvroSchema) - private static final com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema(); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -684,104 +616,89 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface AvroRowsOrBuilder - extends + public interface AvroRowsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.AvroRows) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; - * * @return The serializedBinaryRows. */ com.google.protobuf.ByteString getSerializedBinaryRows(); /** - * - * *
      * The count of rows in the returning block.
      * 
* * int64 row_count = 2; - * * @return The rowCount. */ long getRowCount(); } /** - * - * *
    * Avro rows.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.AvroRows} */ - public static final class AvroRows extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AvroRows extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.AvroRows) AvroRowsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroRows.newBuilder() to construct. private AvroRows(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AvroRows() { serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AvroRows(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.class, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.class, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder.class); } public static final int SERIALIZED_BINARY_ROWS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedBinaryRows_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; - * * @return The serializedBinaryRows. */ @java.lang.Override @@ -792,14 +709,11 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { public static final int ROW_COUNT_FIELD_NUMBER = 2; private long rowCount_ = 0L; /** - * - * *
      * The count of rows in the returning block.
      * 
* * int64 row_count = 2; - * * @return The rowCount. */ @java.lang.Override @@ -808,7 +722,6 @@ public long getRowCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -820,7 +733,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!serializedBinaryRows_.isEmpty()) { output.writeBytes(1, serializedBinaryRows_); } @@ -837,10 +751,12 @@ public int getSerializedSize() { size = 0; if (!serializedBinaryRows_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedBinaryRows_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serializedBinaryRows_); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, rowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -850,16 +766,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows other = - (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) obj; + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows other = (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) obj; - if (!getSerializedBinaryRows().equals(other.getSerializedBinaryRows())) return false; - if (getRowCount() != other.getRowCount()) return false; + if (!getSerializedBinaryRows() + .equals(other.getSerializedBinaryRows())) return false; + if (getRowCount() + != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -874,101 +791,95 @@ public int hashCode() { hash = (37 * hash) + SERIALIZED_BINARY_ROWS_FIELD_NUMBER; hash = (53 * hash) + getSerializedBinaryRows().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -978,41 +889,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Avro rows.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.AvroRows} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.AvroRows) com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.class, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.class, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1023,14 +932,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance(); } @@ -1045,17 +953,13 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows result = - new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows result = new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.serializedBinaryRows_ = serializedBinaryRows_; @@ -1069,41 +973,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows)other); } else { super.mergeFrom(other); return this; @@ -1111,9 +1012,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance()) return this; if (other.getSerializedBinaryRows() != com.google.protobuf.ByteString.EMPTY) { setSerializedBinaryRows(other.getSerializedBinaryRows()); } @@ -1146,25 +1045,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - serializedBinaryRows_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + serializedBinaryRows_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1174,20 +1070,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.ByteString serializedBinaryRows_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
        * Binary serialized rows in a block.
        * 
* * bytes serialized_binary_rows = 1; - * * @return The serializedBinaryRows. */ @java.lang.Override @@ -1195,35 +1086,27 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { return serializedBinaryRows_; } /** - * - * *
        * Binary serialized rows in a block.
        * 
* * bytes serialized_binary_rows = 1; - * * @param value The serializedBinaryRows to set. * @return This builder for chaining. */ public Builder setSerializedBinaryRows(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } serializedBinaryRows_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Binary serialized rows in a block.
        * 
* * bytes serialized_binary_rows = 1; - * * @return This builder for chaining. */ public Builder clearSerializedBinaryRows() { @@ -1233,16 +1116,13 @@ public Builder clearSerializedBinaryRows() { return this; } - private long rowCount_; + private long rowCount_ ; /** - * - * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; - * * @return The rowCount. */ @java.lang.Override @@ -1250,33 +1130,27 @@ public long getRowCount() { return rowCount_; } /** - * - * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; - * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; - * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -1285,7 +1159,6 @@ public Builder clearRowCount() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1298,44 +1171,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.AvroRows) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.AvroRows) - private static final com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows(); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroRows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroRows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1347,57 +1217,56 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { - "\n0google/cloud/bigquery/storage/v1beta1/" - + "avro.proto\022%google.cloud.bigquery.storag" - + "e.v1beta1\"\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"" - + "=\n\010AvroRows\022\036\n\026serialized_binary_rows\030\001 " - + "\001(\014\022\021\n\trow_count\030\002 \001(\003B{\n)com.google.clo" - + "ud.bigquery.storage.v1beta1B\tAvroProtoZC" - + "cloud.google.com/go/bigquery/storage/api" - + "v1beta1/storagepb;storagepbb\006proto3" + "\n0google/cloud/bigquery/storage/v1beta1/" + + "avro.proto\022%google.cloud.bigquery.storag" + + "e.v1beta1\"\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"" + + "=\n\010AvroRows\022\036\n\026serialized_binary_rows\030\001 " + + "\001(\014\022\021\n\trow_count\030\002 \001(\003B{\n)com.google.clo" + + "ud.bigquery.storage.v1beta1B\tAvroProtoZC" + + "cloud.google.com/go/bigquery/storage/api" + + "v1beta1/storagepb;storagepbb\006proto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor, - new java.lang.String[] { - "Schema", - }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor, + new java.lang.String[] { "Schema", }); internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor, - new java.lang.String[] { - "SerializedBinaryRows", "RowCount", - }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor, + new java.lang.String[] { "SerializedBinaryRows", "RowCount", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java similarity index 71% rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java index b091d922be..c616d22a9e 100644 --- a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java @@ -1,18 +1,3 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/read_options.proto @@ -20,21 +5,20 @@ public final class ReadOptions { private ReadOptions() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { } - public interface TableReadOptionsOrBuilder - extends + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface TableReadOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.TableReadOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -43,13 +27,11 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @return A list containing the selectedFields. */ - java.util.List getSelectedFieldsList(); + java.util.List + getSelectedFieldsList(); /** - * - * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -58,13 +40,10 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @return The count of selectedFields. */ int getSelectedFieldsCount(); /** - * - * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -73,14 +52,11 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the element to return. * @return The selectedFields at the given index. */ java.lang.String getSelectedFields(int index); /** - * - * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -89,15 +65,13 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - com.google.protobuf.ByteString getSelectedFieldsBytes(int index); + com.google.protobuf.ByteString + getSelectedFieldsBytes(int index); /** - * - * *
      * Optional. SQL text filtering statement, similar to a WHERE clause in
      * a query. Aggregates are not supported.
@@ -109,13 +83,10 @@ public interface TableReadOptionsOrBuilder
      * 
* * string row_restriction = 2; - * * @return The rowRestriction. */ java.lang.String getRowRestriction(); /** - * - * *
      * Optional. SQL text filtering statement, similar to a WHERE clause in
      * a query. Aggregates are not supported.
@@ -127,30 +98,27 @@ public interface TableReadOptionsOrBuilder
      * 
* * string row_restriction = 2; - * * @return The bytes for rowRestriction. */ - com.google.protobuf.ByteString getRowRestrictionBytes(); + com.google.protobuf.ByteString + getRowRestrictionBytes(); } /** - * - * *
    * Options dictating how we read a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableReadOptions} */ - public static final class TableReadOptions extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TableReadOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.TableReadOptions) TableReadOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableReadOptions.newBuilder() to construct. private TableReadOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableReadOptions() { selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; rowRestriction_ = ""; @@ -158,37 +126,33 @@ private TableReadOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableReadOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions - .internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions - .internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.class, - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.class, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder.class); } public static final int SELECTED_FIELDS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList selectedFields_; /** - * - * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -197,15 +161,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string selected_fields = 1; - * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList + getSelectedFieldsList() { return selectedFields_; } /** - * - * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -214,15 +176,12 @@ public com.google.protobuf.ProtocolStringList getSelectedFieldsList() {
      * 
* * repeated string selected_fields = 1; - * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** - * - * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -231,7 +190,6 @@ public int getSelectedFieldsCount() {
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -239,8 +197,6 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** - * - * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -249,21 +205,18 @@ public java.lang.String getSelectedFields(int index) {
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString + getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } public static final int ROW_RESTRICTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object rowRestriction_ = ""; /** - * - * *
      * Optional. SQL text filtering statement, similar to a WHERE clause in
      * a query. Aggregates are not supported.
@@ -275,7 +228,6 @@ public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) {
      * 
* * string row_restriction = 2; - * * @return The rowRestriction. */ @java.lang.Override @@ -284,15 +236,14 @@ public java.lang.String getRowRestriction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; } } /** - * - * *
      * Optional. SQL text filtering statement, similar to a WHERE clause in
      * a query. Aggregates are not supported.
@@ -304,15 +255,16 @@ public java.lang.String getRowRestriction() {
      * 
* * string row_restriction = 2; - * * @return The bytes for rowRestriction. */ @java.lang.Override - public com.google.protobuf.ByteString getRowRestrictionBytes() { + public com.google.protobuf.ByteString + getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -321,7 +273,6 @@ public com.google.protobuf.ByteString getRowRestrictionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,7 +284,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < selectedFields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectedFields_.getRaw(i)); } @@ -368,17 +320,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions)) { + if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions other = - (com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions) obj; + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions other = (com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions) obj; - if (!getSelectedFieldsList().equals(other.getSelectedFieldsList())) return false; - if (!getRowRestriction().equals(other.getRowRestriction())) return false; + if (!getSelectedFieldsList() + .equals(other.getSelectedFieldsList())) return false; + if (!getRowRestriction() + .equals(other.getRowRestriction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -402,95 +354,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -500,43 +444,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Options dictating how we read a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableReadOptions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.TableReadOptions) com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions - .internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions - .internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.class, - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.class, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -548,22 +488,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions - .internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions build() { - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -572,18 +509,14 @@ public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions bu @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result = - new com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions(this); + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result = new com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result) { if (((bitField0_ & 0x00000001) != 0)) { selectedFields_ = selectedFields_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -591,8 +524,7 @@ private void buildPartialRepeatedFields( result.selectedFields_ = selectedFields_; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.rowRestriction_ = rowRestriction_; @@ -603,54 +535,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance()) return this; if (!other.selectedFields_.isEmpty()) { if (selectedFields_.isEmpty()) { selectedFields_ = other.selectedFields_; @@ -692,26 +616,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSelectedFieldsIsMutable(); - selectedFields_.add(s); - break; - } // case 10 - case 18: - { - rowRestriction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSelectedFieldsIsMutable(); + selectedFields_.add(s); + break; + } // case 10 + case 18: { + rowRestriction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -721,21 +642,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList selectedFields_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSelectedFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { selectedFields_ = new com.google.protobuf.LazyStringArrayList(selectedFields_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -744,15 +660,13 @@ private void ensureSelectedFieldsIsMutable() {
        * 
* * repeated string selected_fields = 1; - * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList + getSelectedFieldsList() { return selectedFields_.getUnmodifiableView(); } /** - * - * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -761,15 +675,12 @@ public com.google.protobuf.ProtocolStringList getSelectedFieldsList() {
        * 
* * repeated string selected_fields = 1; - * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** - * - * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -778,7 +689,6 @@ public int getSelectedFieldsCount() {
        * 
* * repeated string selected_fields = 1; - * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -786,8 +696,6 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** - * - * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -796,16 +704,14 @@ public java.lang.String getSelectedFields(int index) {
        * 
* * repeated string selected_fields = 1; - * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString + getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } /** - * - * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -814,23 +720,19 @@ public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) {
        * 
* * repeated string selected_fields = 1; - * * @param index The index to set the value at. * @param value The selectedFields to set. * @return This builder for chaining. */ - public Builder setSelectedFields(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSelectedFields( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSelectedFieldsIsMutable(); selectedFields_.set(index, value); onChanged(); return this; } /** - * - * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -839,22 +741,18 @@ public Builder setSelectedFields(int index, java.lang.String value) {
        * 
* * repeated string selected_fields = 1; - * * @param value The selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFields(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSelectedFields( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSelectedFieldsIsMutable(); selectedFields_.add(value); onChanged(); return this; } /** - * - * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -863,19 +761,18 @@ public Builder addSelectedFields(java.lang.String value) {
        * 
* * repeated string selected_fields = 1; - * * @param values The selectedFields to add. * @return This builder for chaining. */ - public Builder addAllSelectedFields(java.lang.Iterable values) { + public Builder addAllSelectedFields( + java.lang.Iterable values) { ensureSelectedFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectedFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, selectedFields_); onChanged(); return this; } /** - * - * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -884,7 +781,6 @@ public Builder addAllSelectedFields(java.lang.Iterable values)
        * 
* * repeated string selected_fields = 1; - * * @return This builder for chaining. */ public Builder clearSelectedFields() { @@ -894,8 +790,6 @@ public Builder clearSelectedFields() { return this; } /** - * - * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -904,14 +798,12 @@ public Builder clearSelectedFields() {
        * 
* * repeated string selected_fields = 1; - * * @param value The bytes of the selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSelectedFieldsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSelectedFieldsIsMutable(); selectedFields_.add(value); @@ -921,8 +813,6 @@ public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) { private java.lang.Object rowRestriction_ = ""; /** - * - * *
        * Optional. SQL text filtering statement, similar to a WHERE clause in
        * a query. Aggregates are not supported.
@@ -934,13 +824,13 @@ public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) {
        * 
* * string row_restriction = 2; - * * @return The rowRestriction. */ public java.lang.String getRowRestriction() { java.lang.Object ref = rowRestriction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; @@ -949,8 +839,6 @@ public java.lang.String getRowRestriction() { } } /** - * - * *
        * Optional. SQL text filtering statement, similar to a WHERE clause in
        * a query. Aggregates are not supported.
@@ -962,14 +850,15 @@ public java.lang.String getRowRestriction() {
        * 
* * string row_restriction = 2; - * * @return The bytes for rowRestriction. */ - public com.google.protobuf.ByteString getRowRestrictionBytes() { + public com.google.protobuf.ByteString + getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -977,8 +866,6 @@ public com.google.protobuf.ByteString getRowRestrictionBytes() { } } /** - * - * *
        * Optional. SQL text filtering statement, similar to a WHERE clause in
        * a query. Aggregates are not supported.
@@ -990,22 +877,18 @@ public com.google.protobuf.ByteString getRowRestrictionBytes() {
        * 
* * string row_restriction = 2; - * * @param value The rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestriction(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRowRestriction( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rowRestriction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Optional. SQL text filtering statement, similar to a WHERE clause in
        * a query. Aggregates are not supported.
@@ -1017,7 +900,6 @@ public Builder setRowRestriction(java.lang.String value) {
        * 
* * string row_restriction = 2; - * * @return This builder for chaining. */ public Builder clearRowRestriction() { @@ -1027,8 +909,6 @@ public Builder clearRowRestriction() { return this; } /** - * - * *
        * Optional. SQL text filtering statement, similar to a WHERE clause in
        * a query. Aggregates are not supported.
@@ -1040,21 +920,18 @@ public Builder clearRowRestriction() {
        * 
* * string row_restriction = 2; - * * @param value The bytes for rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestrictionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRowRestrictionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rowRestriction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1067,45 +944,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.TableReadOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableReadOptions) - private static final com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions(); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableReadOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableReadOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1117,45 +990,45 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { - "\n8google/cloud/bigquery/storage/v1beta1/" - + "read_options.proto\022%google.cloud.bigquer" - + "y.storage.v1beta1\"D\n\020TableReadOptions\022\027\n" - + "\017selected_fields\030\001 \003(\t\022\027\n\017row_restrictio" - + "n\030\002 \001(\tBp\n)com.google.cloud.bigquery.sto" - + "rage.v1beta1ZCcloud.google.com/go/bigque" - + "ry/storage/apiv1beta1/storagepb;storagep" - + "bb\006proto3" + "\n8google/cloud/bigquery/storage/v1beta1/" + + "read_options.proto\022%google.cloud.bigquer" + + "y.storage.v1beta1\"D\n\020TableReadOptions\022\027\n" + + "\017selected_fields\030\001 \003(\t\022\027\n\017row_restrictio" + + "n\030\002 \001(\tBp\n)com.google.cloud.bigquery.sto" + + "rage.v1beta1ZCcloud.google.com/go/bigque" + + "ry/storage/apiv1beta1/storagepb;storagep" + + "bb\006proto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor, - new java.lang.String[] { - "SelectedFields", "RowRestriction", - }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor, + new java.lang.String[] { "SelectedFields", "RowRestriction", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java index 456f8108d7..0a00b49a0a 100644 --- a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java @@ -1,18 +1,3 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/storage.proto @@ -20,25 +5,25 @@ public final class Storage { private Storage() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); } /** - * - * *
    * Data format for input or output data.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta1.DataFormat} */ - public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { + public enum DataFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Data format is unspecified.
      * 
@@ -47,8 +32,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { */ DATA_FORMAT_UNSPECIFIED(0), /** - * - * *
      * Avro is a standard open source row based file format.
      * See https://avro.apache.org/ for more details.
@@ -57,14 +40,14 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
      * AVRO = 1;
      */
     AVRO(1),
-    /** ARROW = 3; */
+    /**
+     * ARROW = 3;
+     */
     ARROW(3),
     UNRECOGNIZED(-1),
     ;
 
     /**
-     *
-     *
      * 
      * Data format is unspecified.
      * 
@@ -73,8 +56,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Avro is a standard open source row based file format.
      * See https://avro.apache.org/ for more details.
@@ -83,9 +64,12 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
      * AVRO = 1;
      */
     public static final int AVRO_VALUE = 1;
-    /** ARROW = 3; */
+    /**
+     * ARROW = 3;
+     */
     public static final int ARROW_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -110,51 +94,49 @@ public static DataFormat valueOf(int value) {
      */
     public static DataFormat forNumber(int value) {
       switch (value) {
-        case 0:
-          return DATA_FORMAT_UNSPECIFIED;
-        case 1:
-          return AVRO;
-        case 3:
-          return ARROW;
-        default:
-          return null;
+        case 0: return DATA_FORMAT_UNSPECIFIED;
+        case 1: return AVRO;
+        case 3: return ARROW;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        DataFormat> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public DataFormat findValueByNumber(int number) {
+              return DataFormat.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public DataFormat findValueByNumber(int number) {
-            return DataFormat.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta1.Storage.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final DataFormat[] VALUES = values();
 
-    public static DataFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static DataFormat valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -172,18 +154,15 @@ private DataFormat(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Strategy for distributing data among multiple streams in a read session.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta1.ShardingStrategy} */ - public enum ShardingStrategy implements com.google.protobuf.ProtocolMessageEnum { + public enum ShardingStrategy + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Same as LIQUID.
      * 
@@ -192,8 +171,6 @@ public enum ShardingStrategy implements com.google.protobuf.ProtocolMessageEnum */ SHARDING_STRATEGY_UNSPECIFIED(0), /** - * - * *
      * Assigns data to each stream based on the client's read rate. The faster the
      * client reads from a stream, the more data is assigned to the stream. In
@@ -205,8 +182,6 @@ public enum ShardingStrategy implements com.google.protobuf.ProtocolMessageEnum
      */
     LIQUID(1),
     /**
-     *
-     *
      * 
      * Assigns data to each stream such that roughly the same number of rows can
      * be read from each stream. Because the server-side unit for assigning data
@@ -223,8 +198,6 @@ public enum ShardingStrategy implements com.google.protobuf.ProtocolMessageEnum
     ;
 
     /**
-     *
-     *
      * 
      * Same as LIQUID.
      * 
@@ -233,8 +206,6 @@ public enum ShardingStrategy implements com.google.protobuf.ProtocolMessageEnum */ public static final int SHARDING_STRATEGY_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Assigns data to each stream based on the client's read rate. The faster the
      * client reads from a stream, the more data is assigned to the stream. In
@@ -246,8 +217,6 @@ public enum ShardingStrategy implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int LIQUID_VALUE = 1;
     /**
-     *
-     *
      * 
      * Assigns data to each stream such that roughly the same number of rows can
      * be read from each stream. Because the server-side unit for assigning data
@@ -261,6 +230,7 @@ public enum ShardingStrategy implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int BALANCED_VALUE = 2;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -285,45 +255,40 @@ public static ShardingStrategy valueOf(int value) {
      */
     public static ShardingStrategy forNumber(int value) {
       switch (value) {
-        case 0:
-          return SHARDING_STRATEGY_UNSPECIFIED;
-        case 1:
-          return LIQUID;
-        case 2:
-          return BALANCED;
-        default:
-          return null;
+        case 0: return SHARDING_STRATEGY_UNSPECIFIED;
+        case 1: return LIQUID;
+        case 2: return BALANCED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        ShardingStrategy> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public ShardingStrategy findValueByNumber(int number) {
+              return ShardingStrategy.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public ShardingStrategy findValueByNumber(int number) {
-                return ShardingStrategy.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage.getDescriptor()
-          .getEnumTypes()
-          .get(1);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta1.Storage.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final ShardingStrategy[] VALUES = values();
@@ -331,7 +296,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static ShardingStrategy valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -348,101 +314,87 @@ private ShardingStrategy(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1beta1.ShardingStrategy)
   }
 
-  public interface StreamOrBuilder
-      extends
+  public interface StreamOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.Stream)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } /** - * - * *
    * Information about a single data stream within a read session.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Stream} */ - public static final class Stream extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Stream extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.Stream) StreamOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Stream.newBuilder() to construct. private Stream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Stream() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Stream(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.class, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -451,30 +403,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -483,7 +435,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -495,7 +446,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -519,15 +471,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.Stream)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.Stream) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream other = (com.google.cloud.bigquery.storage.v1beta1.Storage.Stream) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -547,94 +499,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -644,41 +589,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information about a single data stream within a read session.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Stream} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.Stream) com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.class, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -688,9 +631,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; } @java.lang.Override @@ -709,11 +652,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream result = - new com.google.cloud.bigquery.storage.v1beta1.Storage.Stream(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream result = new com.google.cloud.bigquery.storage.v1beta1.Storage.Stream(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -729,41 +669,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Str public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.Stream) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.Stream) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.Stream)other); } else { super.mergeFrom(other); return this; @@ -771,8 +708,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -804,19 +740,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -826,26 +760,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
        * Name of the stream, in the form
        * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -854,22 +785,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Name of the stream, in the form
        * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -877,37 +807,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Name of the stream, in the form
        * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Name of the stream, in the form
        * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -917,29 +840,24 @@ public Builder clearName() { return this; } /** - * - * *
        * Name of the stream, in the form
        * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -952,12 +870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.Stream) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.Stream) private static final com.google.cloud.bigquery.storage.v1beta1.Storage.Stream DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.Stream(); } @@ -966,28 +884,27 @@ public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1002,40 +919,32 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface StreamPositionOrBuilder - extends + public interface StreamPositionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.StreamPosition) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Identifier for a given Stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; - * * @return Whether the stream field is set. */ boolean hasStream(); /** - * - * *
      * Identifier for a given Stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; - * * @return The stream. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream(); /** - * - * *
      * Identifier for a given Stream.
      * 
@@ -1045,76 +954,67 @@ public interface StreamPositionOrBuilder com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder(); /** - * - * *
      * Position in the stream.
      * 
* * int64 offset = 2; - * * @return The offset. */ long getOffset(); } /** - * - * *
    * Expresses a point within a given stream using an offset position.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.StreamPosition} */ - public static final class StreamPosition extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StreamPosition extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.StreamPosition) StreamPositionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamPosition.newBuilder() to construct. private StreamPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamPosition() {} + private StreamPosition() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamPosition(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.class, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder.class); } public static final int STREAM_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream stream_; /** - * - * *
      * Identifier for a given Stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; - * * @return Whether the stream field is set. */ @java.lang.Override @@ -1122,25 +1022,18 @@ public boolean hasStream() { return stream_ != null; } /** - * - * *
      * Identifier for a given Stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; - * * @return The stream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream() { - return stream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; } /** - * - * *
      * Identifier for a given Stream.
      * 
@@ -1149,22 +1042,17 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream() { */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder() { - return stream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; } public static final int OFFSET_FIELD_NUMBER = 2; private long offset_ = 0L; /** - * - * *
      * Position in the stream.
      * 
* * int64 offset = 2; - * * @return The offset. */ @java.lang.Override @@ -1173,7 +1061,6 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1185,7 +1072,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (stream_ != null) { output.writeMessage(1, getStream()); } @@ -1202,10 +1090,12 @@ public int getSerializedSize() { size = 0; if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStream()); } if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, offset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1215,19 +1105,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition other = (com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition) obj; if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream().equals(other.getStream())) return false; + if (!getStream() + .equals(other.getStream())) return false; } - if (getOffset() != other.getOffset()) return false; + if (getOffset() + != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1244,102 +1135,95 @@ public int hashCode() { hash = (53 * hash) + getStream().hashCode(); } hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1349,42 +1233,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Expresses a point within a given stream using an offset position.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.StreamPosition} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.StreamPosition) com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.class, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1399,16 +1280,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance(); } @java.lang.Override @@ -1422,20 +1301,18 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition build() @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition result = - new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition result = new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null + ? stream_ + : streamBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.offset_ = offset_; @@ -1446,53 +1323,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance()) return this; if (other.hasStream()) { mergeStream(other.getStream()); } @@ -1525,25 +1395,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + offset_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1553,52 +1422,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> - streamBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> streamBuilder_; /** - * - * *
        * Identifier for a given Stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; - * * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Identifier for a given Stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; - * * @return The stream. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; } else { return streamBuilder_.getMessage(); } } /** - * - * *
        * Identifier for a given Stream.
        * 
@@ -1619,8 +1474,6 @@ public Builder setStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Strea return this; } /** - * - * *
        * Identifier for a given Stream.
        * 
@@ -1639,8 +1492,6 @@ public Builder setStream( return this; } /** - * - * *
        * Identifier for a given Stream.
        * 
@@ -1649,11 +1500,9 @@ public Builder setStream( */ public Builder mergeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && stream_ != null - && stream_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + stream_ != null && + stream_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -1666,8 +1515,6 @@ public Builder mergeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Str return this; } /** - * - * *
        * Identifier for a given Stream.
        * 
@@ -1685,8 +1532,6 @@ public Builder clearStream() { return this; } /** - * - * *
        * Identifier for a given Stream.
        * 
@@ -1699,27 +1544,21 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea return getStreamFieldBuilder().getBuilder(); } /** - * - * *
        * Identifier for a given Stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder - getStreamOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; } } /** - * - * *
        * Identifier for a given Stream.
        * 
@@ -1727,32 +1566,26 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( - getStream(), getParentForChildren(), isClean()); + streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( + getStream(), + getParentForChildren(), + isClean()); stream_ = null; } return streamBuilder_; } - private long offset_; + private long offset_ ; /** - * - * *
        * Position in the stream.
        * 
* * int64 offset = 2; - * * @return The offset. */ @java.lang.Override @@ -1760,33 +1593,27 @@ public long getOffset() { return offset_; } /** - * - * *
        * Position in the stream.
        * 
* * int64 offset = 2; - * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Position in the stream.
        * 
* * int64 offset = 2; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -1795,7 +1622,6 @@ public Builder clearOffset() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1808,44 +1634,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.StreamPosition) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.StreamPosition) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamPosition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamPosition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1857,73 +1680,59 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ReadSessionOrBuilder - extends + public interface ReadSessionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ReadSession) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
      * Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
@@ -1934,90 +1743,69 @@ public interface ReadSessionOrBuilder
     com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
     /**
-     *
-     *
      * 
      * Avro schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; - * * @return Whether the avroSchema field is set. */ boolean hasAvroSchema(); /** - * - * *
      * Avro schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; - * * @return The avroSchema. */ com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getAvroSchema(); /** - * - * *
      * Avro schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder - getAvroSchemaOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder getAvroSchemaOrBuilder(); /** - * - * *
      * Arrow schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; - * * @return Whether the arrowSchema field is set. */ boolean hasArrowSchema(); /** - * - * *
      * Arrow schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; - * * @return The arrowSchema. */ com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getArrowSchema(); /** - * - * *
      * Arrow schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder - getArrowSchemaOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder getArrowSchemaOrBuilder(); /** - * - * *
      * Streams associated with this session.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ - java.util.List getStreamsList(); + java.util.List + getStreamsList(); /** - * - * *
      * Streams associated with this session.
      * 
@@ -2026,8 +1814,6 @@ public interface ReadSessionOrBuilder */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int index); /** - * - * *
      * Streams associated with this session.
      * 
@@ -2036,19 +1822,15 @@ public interface ReadSessionOrBuilder */ int getStreamsCount(); /** - * - * *
      * Streams associated with this session.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** - * - * *
      * Streams associated with this session.
      * 
@@ -2059,100 +1841,74 @@ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamsOrBu int index); /** - * - * *
      * Table that this ReadSession is reading from.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; - * * @return Whether the tableReference field is set. */ boolean hasTableReference(); /** - * - * *
      * Table that this ReadSession is reading from.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; - * * @return The tableReference. */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - getTableReference(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference(); /** - * - * *
      * Table that this ReadSession is reading from.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder - getTableReferenceOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder(); /** - * - * *
      * Any modifiers which are applied when reading from the specified table.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; - * * @return Whether the tableModifiers field is set. */ boolean hasTableModifiers(); /** - * - * *
      * Any modifiers which are applied when reading from the specified table.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; - * * @return The tableModifiers. */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - getTableModifiers(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers(); /** - * - * *
      * Any modifiers which are applied when reading from the specified table.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder - getTableModifiersOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder(); /** - * - * *
      * The strategy to use for distributing data among the streams.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; - * * @return The enum numeric value on the wire for shardingStrategy. */ int getShardingStrategyValue(); /** - * - * *
      * The strategy to use for distributing data among the streams.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; - * * @return The shardingStrategy. */ com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy(); @@ -2160,24 +1916,21 @@ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamsOrBu public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.SchemaCase getSchemaCase(); } /** - * - * *
    * Information returned from a `CreateReadSession` request.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadSession} */ - public static final class ReadSession extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ReadSession extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ReadSession) ReadSessionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadSession.newBuilder() to construct. private ReadSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadSession() { name_ = ""; streams_ = java.util.Collections.emptyList(); @@ -2186,42 +1939,38 @@ private ReadSession() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadSession(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder.class); } private int schemaCase_ = 0; private java.lang.Object schema_; - public enum SchemaCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AVRO_SCHEMA(5), ARROW_SCHEMA(6), SCHEMA_NOT_SET(0); private final int value; - private SchemaCase(int value) { this.value = value; } @@ -2237,40 +1986,33 @@ public static SchemaCase valueOf(int value) { public static SchemaCase forNumber(int value) { switch (value) { - case 5: - return AVRO_SCHEMA; - case 6: - return ARROW_SCHEMA; - case 0: - return SCHEMA_NOT_SET; - default: - return null; + case 5: return AVRO_SCHEMA; + case 6: return ARROW_SCHEMA; + case 0: return SCHEMA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
      * Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -2279,30 +2021,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
      * Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2313,15 +2055,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -2329,15 +2068,12 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
      * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ @java.lang.Override @@ -2345,8 +2081,6 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
@@ -2361,14 +2095,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
 
     public static final int AVRO_SCHEMA_FIELD_NUMBER = 5;
     /**
-     *
-     *
      * 
      * Avro schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; - * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -2376,26 +2107,21 @@ public boolean hasAvroSchema() { return schemaCase_ == 5; } /** - * - * *
      * Avro schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; - * * @return The avroSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getAvroSchema() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } /** - * - * *
      * Avro schema.
      * 
@@ -2403,24 +2129,20 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getAvroSch * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder - getAvroSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } public static final int ARROW_SCHEMA_FIELD_NUMBER = 6; /** - * - * *
      * Arrow schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; - * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -2428,26 +2150,21 @@ public boolean hasArrowSchema() { return schemaCase_ == 6; } /** - * - * *
      * Arrow schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; - * * @return The arrowSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getArrowSchema() { if (schemaCase_ == 6) { - return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); } /** - * - * *
      * Arrow schema.
      * 
@@ -2455,21 +2172,17 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getArrow * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder - getArrowSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if (schemaCase_ == 6) { - return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); } public static final int STREAMS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List streams_; /** - * - * *
      * Streams associated with this session.
      * 
@@ -2477,13 +2190,10 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getArrow * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ @java.lang.Override - public java.util.List - getStreamsList() { + public java.util.List getStreamsList() { return streams_; } /** - * - * *
      * Streams associated with this session.
      * 
@@ -2491,14 +2201,11 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getArrow * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + public java.util.List getStreamsOrBuilderList() { return streams_; } /** - * - * *
      * Streams associated with this session.
      * 
@@ -2510,8 +2217,6 @@ public int getStreamsCount() { return streams_.size(); } /** - * - * *
      * Streams associated with this session.
      * 
@@ -2523,8 +2228,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int i return streams_.get(index); } /** - * - * *
      * Streams associated with this session.
      * 
@@ -2538,17 +2241,13 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre } public static final int TABLE_REFERENCE_FIELD_NUMBER = 7; - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - tableReference_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference tableReference_; /** - * - * *
      * Table that this ReadSession is reading from.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; - * * @return Whether the tableReference field is set. */ @java.lang.Override @@ -2556,27 +2255,18 @@ public boolean hasTableReference() { return tableReference_ != null; } /** - * - * *
      * Table that this ReadSession is reading from.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; - * * @return The tableReference. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - getTableReference() { - return tableReference_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance() - : tableReference_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference() { + return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; } /** - * - * *
      * Table that this ReadSession is reading from.
      * 
@@ -2584,26 +2274,18 @@ public boolean hasTableReference() { * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder - getTableReferenceOrBuilder() { - return tableReference_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance() - : tableReference_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder() { + return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; } public static final int TABLE_MODIFIERS_FIELD_NUMBER = 8; - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - tableModifiers_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers tableModifiers_; /** - * - * *
      * Any modifiers which are applied when reading from the specified table.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; - * * @return Whether the tableModifiers field is set. */ @java.lang.Override @@ -2611,27 +2293,18 @@ public boolean hasTableModifiers() { return tableModifiers_ != null; } /** - * - * *
      * Any modifiers which are applied when reading from the specified table.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; - * * @return The tableModifiers. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - getTableModifiers() { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance() - : tableModifiers_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers() { + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; } /** - * - * *
      * Any modifiers which are applied when reading from the specified table.
      * 
@@ -2639,55 +2312,37 @@ public boolean hasTableModifiers() { * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder - getTableModifiersOrBuilder() { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance() - : tableModifiers_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder() { + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; } public static final int SHARDING_STRATEGY_FIELD_NUMBER = 9; private int shardingStrategy_ = 0; /** - * - * *
      * The strategy to use for distributing data among the streams.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; - * * @return The enum numeric value on the wire for shardingStrategy. */ - @java.lang.Override - public int getShardingStrategyValue() { + @java.lang.Override public int getShardingStrategyValue() { return shardingStrategy_; } /** - * - * *
      * The strategy to use for distributing data among the streams.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; - * * @return The shardingStrategy. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy - getShardingStrategy() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber( - shardingStrategy_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy() { + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber(shardingStrategy_); + return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2699,7 +2354,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2710,12 +2366,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(4, streams_.get(i)); } if (schemaCase_ == 5) { - output.writeMessage( - 5, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_); + output.writeMessage(5, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_); } if (schemaCase_ == 6) { - output.writeMessage( - 6, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_); + output.writeMessage(6, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_); } if (tableReference_ != null) { output.writeMessage(7, getTableReference()); @@ -2723,10 +2377,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tableModifiers_ != null) { output.writeMessage(8, getTableModifiers()); } - if (shardingStrategy_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy - .SHARDING_STRATEGY_UNSPECIFIED - .getNumber()) { + if (shardingStrategy_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.SHARDING_STRATEGY_UNSPECIFIED.getNumber()) { output.writeEnum(9, shardingStrategy_); } getUnknownFields().writeTo(output); @@ -2742,32 +2393,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpireTime()); } for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, streams_.get(i)); } if (schemaCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_); } if (schemaCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_); } if (tableReference_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTableReference()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTableReference()); } if (tableModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTableModifiers()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getTableModifiers()); } - if (shardingStrategy_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy - .SHARDING_STRATEGY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, shardingStrategy_); + if (shardingStrategy_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.SHARDING_STRATEGY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, shardingStrategy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2777,36 +2428,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession other = (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } - if (!getStreamsList().equals(other.getStreamsList())) return false; + if (!getStreamsList() + .equals(other.getStreamsList())) return false; if (hasTableReference() != other.hasTableReference()) return false; if (hasTableReference()) { - if (!getTableReference().equals(other.getTableReference())) return false; + if (!getTableReference() + .equals(other.getTableReference())) return false; } if (hasTableModifiers() != other.hasTableModifiers()) return false; if (hasTableModifiers()) { - if (!getTableModifiers().equals(other.getTableModifiers())) return false; + if (!getTableModifiers() + .equals(other.getTableModifiers())) return false; } if (shardingStrategy_ != other.shardingStrategy_) return false; if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 5: - if (!getAvroSchema().equals(other.getAvroSchema())) return false; + if (!getAvroSchema() + .equals(other.getAvroSchema())) return false; break; case 6: - if (!getArrowSchema().equals(other.getArrowSchema())) return false; + if (!getArrowSchema() + .equals(other.getArrowSchema())) return false; break; case 0: default: @@ -2860,94 +2517,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2957,41 +2607,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information returned from a `CreateReadSession` request.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadSession} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ReadSession) com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3032,14 +2680,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance(); } @@ -3054,19 +2701,15 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result = - new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession(this); + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -3078,37 +2721,40 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = - expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.tableReference_ = - tableReferenceBuilder_ == null ? tableReference_ : tableReferenceBuilder_.build(); + result.tableReference_ = tableReferenceBuilder_ == null + ? tableReference_ + : tableReferenceBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.tableModifiers_ = - tableModifiersBuilder_ == null ? tableModifiers_ : tableModifiersBuilder_.build(); + result.tableModifiers_ = tableModifiersBuilder_ == null + ? tableModifiers_ + : tableModifiersBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.shardingStrategy_ = shardingStrategy_; } } - private void buildPartialOneofs( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { + private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { result.schemaCase_ = schemaCase_; result.schema_ = this.schema_; - if (schemaCase_ == 5 && avroSchemaBuilder_ != null) { + if (schemaCase_ == 5 && + avroSchemaBuilder_ != null) { result.schema_ = avroSchemaBuilder_.build(); } - if (schemaCase_ == 6 && arrowSchemaBuilder_ != null) { + if (schemaCase_ == 6 && + arrowSchemaBuilder_ != null) { result.schema_ = arrowSchemaBuilder_.build(); } } @@ -3117,52 +2763,46 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -3189,10 +2829,9 @@ public Builder mergeFrom( streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000010); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStreamsFieldBuilder() - : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamsFieldBuilder() : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -3208,20 +2847,17 @@ public Builder mergeFrom( setShardingStrategyValue(other.getShardingStrategyValue()); } switch (other.getSchemaCase()) { - case AVRO_SCHEMA: - { - mergeAvroSchema(other.getAvroSchema()); - break; - } - case ARROW_SCHEMA: - { - mergeArrowSchema(other.getArrowSchema()); - break; - } - case SCHEMA_NOT_SET: - { - break; - } + case AVRO_SCHEMA: { + mergeAvroSchema(other.getAvroSchema()); + break; + } + case ARROW_SCHEMA: { + mergeArrowSchema(other.getArrowSchema()); + break; + } + case SCHEMA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3249,71 +2885,70 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.parser(), - extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - input.readMessage(getAvroSchemaFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getArrowSchemaFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - getTableReferenceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage( - getTableModifiersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 72: - { - shardingStrategy_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 72 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: { + input.readMessage( + getAvroSchemaFieldBuilder().getBuilder(), + extensionRegistry); + schemaCase_ = 5; + break; + } // case 42 + case 50: { + input.readMessage( + getArrowSchemaFieldBuilder().getBuilder(), + extensionRegistry); + schemaCase_ = 6; + break; + } // case 50 + case 58: { + input.readMessage( + getTableReferenceFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getTableModifiersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: { + shardingStrategy_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3323,12 +2958,12 @@ public Builder mergeFrom( } // finally return this; } - private int schemaCase_ = 0; private java.lang.Object schema_; - - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); } public Builder clearSchema() { @@ -3342,21 +2977,19 @@ public Builder clearSchema() { private java.lang.Object name_ = ""; /** - * - * *
        * Unique identifier for the session, in the form
        * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
        * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3365,22 +2998,21 @@ public java.lang.String getName() { } } /** - * - * *
        * Unique identifier for the session, in the form
        * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
        * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3388,37 +3020,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
        * Unique identifier for the session, in the form
        * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
        * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Unique identifier for the session, in the form
        * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
        * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -3428,22 +3053,18 @@ public Builder clearName() { return this; } /** - * - * *
        * Unique identifier for the session, in the form
        * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
        * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3453,49 +3074,36 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
        * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
        * 
* * .google.protobuf.Timestamp expire_time = 2; - * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3517,8 +3125,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3526,7 +3132,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp expire_time = 2;
        */
-      public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setExpireTime(
+          com.google.protobuf.Timestamp.Builder builderForValue) {
         if (expireTimeBuilder_ == null) {
           expireTime_ = builderForValue.build();
         } else {
@@ -3537,8 +3144,6 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
         return this;
       }
       /**
-       *
-       *
        * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3548,9 +3153,9 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
        */
       public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
         if (expireTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && expireTime_ != null
-              && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            expireTime_ != null &&
+            expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getExpireTimeBuilder().mergeFrom(value);
           } else {
             expireTime_ = value;
@@ -3563,8 +3168,6 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3583,8 +3186,6 @@ public Builder clearExpireTime() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3598,8 +3199,6 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
         return getExpireTimeFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3611,14 +3210,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
         if (expireTimeBuilder_ != null) {
           return expireTimeBuilder_.getMessageOrBuilder();
         } else {
-          return expireTime_ == null
-              ? com.google.protobuf.Timestamp.getDefaultInstance()
-              : expireTime_;
+          return expireTime_ == null ?
+              com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
         }
       }
       /**
-       *
-       *
        * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3627,36 +3223,27 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
        * .google.protobuf.Timestamp expire_time = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp,
-              com.google.protobuf.Timestamp.Builder,
-              com.google.protobuf.TimestampOrBuilder>
+          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
           getExpireTimeFieldBuilder() {
         if (expireTimeBuilder_ == null) {
-          expireTimeBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Timestamp,
-                  com.google.protobuf.Timestamp.Builder,
-                  com.google.protobuf.TimestampOrBuilder>(
-                  getExpireTime(), getParentForChildren(), isClean());
+          expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                  getExpireTime(),
+                  getParentForChildren(),
+                  isClean());
           expireTime_ = null;
         }
         return expireTimeBuilder_;
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema,
-              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder,
-              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder>
-          avroSchemaBuilder_;
+          com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder> avroSchemaBuilder_;
       /**
-       *
-       *
        * 
        * Avro schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; - * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -3664,14 +3251,11 @@ public boolean hasAvroSchema() { return schemaCase_ == 5; } /** - * - * *
        * Avro schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; - * * @return The avroSchema. */ @java.lang.Override @@ -3680,27 +3264,22 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getAvroSch if (schemaCase_ == 5) { return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; } - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } else { if (schemaCase_ == 5) { return avroSchemaBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } } /** - * - * *
        * Avro schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ - public Builder setAvroSchema( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema value) { + public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema value) { if (avroSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3714,8 +3293,6 @@ public Builder setAvroSchema( return this; } /** - * - * *
        * Avro schema.
        * 
@@ -3734,26 +3311,18 @@ public Builder setAvroSchema( return this; } /** - * - * *
        * Avro schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ - public Builder mergeAvroSchema( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema value) { + public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema value) { if (avroSchemaBuilder_ == null) { - if (schemaCase_ == 5 - && schema_ - != com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema - .getDefaultInstance()) { - schema_ = - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.newBuilder( - (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 5 && + schema_ != com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance()) { + schema_ = com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -3769,8 +3338,6 @@ public Builder mergeAvroSchema( return this; } /** - * - * *
        * Avro schema.
        * 
@@ -3794,21 +3361,16 @@ public Builder clearAvroSchema() { return this; } /** - * - * *
        * Avro schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder - getAvroSchemaBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder getAvroSchemaBuilder() { return getAvroSchemaFieldBuilder().getBuilder(); } /** - * - * *
        * Avro schema.
        * 
@@ -3816,21 +3378,17 @@ public Builder clearAvroSchema() { * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder - getAvroSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { if ((schemaCase_ == 5) && (avroSchemaBuilder_ != null)) { return avroSchemaBuilder_.getMessageOrBuilder(); } else { if (schemaCase_ == 5) { return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; } - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } } /** - * - * *
        * Avro schema.
        * 
@@ -3838,20 +3396,14 @@ public Builder clearAvroSchema() { * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder> getAvroSchemaFieldBuilder() { if (avroSchemaBuilder_ == null) { if (!(schemaCase_ == 5)) { - schema_ = - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); + schema_ = com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } - avroSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder>( + avroSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_, getParentForChildren(), isClean()); @@ -3863,19 +3415,13 @@ public Builder clearAvroSchema() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder> - arrowSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder> arrowSchemaBuilder_; /** - * - * *
        * Arrow schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; - * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -3883,14 +3429,11 @@ public boolean hasArrowSchema() { return schemaCase_ == 6; } /** - * - * *
        * Arrow schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; - * * @return The arrowSchema. */ @java.lang.Override @@ -3899,27 +3442,22 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getArrow if (schemaCase_ == 6) { return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); } else { if (schemaCase_ == 6) { return arrowSchemaBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); } } /** - * - * *
        * Arrow schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ - public Builder setArrowSchema( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema value) { + public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3933,8 +3471,6 @@ public Builder setArrowSchema( return this; } /** - * - * *
        * Arrow schema.
        * 
@@ -3942,8 +3478,7 @@ public Builder setArrowSchema( * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ public Builder setArrowSchema( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder builderForValue) { if (arrowSchemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); @@ -3954,26 +3489,18 @@ public Builder setArrowSchema( return this; } /** - * - * *
        * Arrow schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ - public Builder mergeArrowSchema( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema value) { + public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { - if (schemaCase_ == 6 - && schema_ - != com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - .getDefaultInstance()) { - schema_ = - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.newBuilder( - (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 6 && + schema_ != com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance()) { + schema_ = com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -3989,8 +3516,6 @@ public Builder mergeArrowSchema( return this; } /** - * - * *
        * Arrow schema.
        * 
@@ -4014,21 +3539,16 @@ public Builder clearArrowSchema() { return this; } /** - * - * *
        * Arrow schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder - getArrowSchemaBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder getArrowSchemaBuilder() { return getArrowSchemaFieldBuilder().getBuilder(); } /** - * - * *
        * Arrow schema.
        * 
@@ -4036,21 +3556,17 @@ public Builder clearArrowSchema() { * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder - getArrowSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if ((schemaCase_ == 6) && (arrowSchemaBuilder_ != null)) { return arrowSchemaBuilder_.getMessageOrBuilder(); } else { if (schemaCase_ == 6) { return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); } } /** - * - * *
        * Arrow schema.
        * 
@@ -4058,21 +3574,14 @@ public Builder clearArrowSchema() { * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder> getArrowSchemaFieldBuilder() { if (arrowSchemaBuilder_ == null) { if (!(schemaCase_ == 6)) { - schema_ = - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema - .getDefaultInstance(); + schema_ = com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); } - arrowSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder>( + arrowSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_, getParentForChildren(), isClean()); @@ -4084,34 +3593,25 @@ public Builder clearArrowSchema() { } private java.util.List streams_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - streams_ = - new java.util.ArrayList( - streams_); + streams_ = new java.util.ArrayList(streams_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> - streamsBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> streamsBuilder_; /** - * - * *
        * Streams associated with this session.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ - public java.util.List - getStreamsList() { + public java.util.List getStreamsList() { if (streamsBuilder_ == null) { return java.util.Collections.unmodifiableList(streams_); } else { @@ -4119,8 +3619,6 @@ private void ensureStreamsIsMutable() { } } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4135,8 +3633,6 @@ public int getStreamsCount() { } } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4151,8 +3647,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int i } } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4174,8 +3668,6 @@ public Builder setStreams( return this; } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4183,8 +3675,7 @@ public Builder setStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ public Builder setStreams( - int index, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { + int index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.set(index, builderForValue.build()); @@ -4195,8 +3686,6 @@ public Builder setStreams( return this; } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4217,8 +3706,6 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1beta1.Storage.Stre return this; } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4240,8 +3727,6 @@ public Builder addStreams( return this; } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4260,8 +3745,6 @@ public Builder addStreams( return this; } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4269,8 +3752,7 @@ public Builder addStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ public Builder addStreams( - int index, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { + int index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.add(index, builderForValue.build()); @@ -4281,8 +3763,6 @@ public Builder addStreams( return this; } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4290,11 +3770,11 @@ public Builder addStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ public Builder addAllStreams( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -4302,8 +3782,6 @@ public Builder addAllStreams( return this; } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4321,8 +3799,6 @@ public Builder clearStreams() { return this; } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4340,8 +3816,6 @@ public Builder removeStreams(int index) { return this; } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4353,8 +3827,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea return getStreamsFieldBuilder().getBuilder(index); } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4364,23 +3836,19 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamsOrBuilder( int index) { if (streamsBuilder_ == null) { - return streams_.get(index); - } else { + return streams_.get(index); } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Streams associated with this session.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ - public java.util.List< - ? extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -4388,8 +3856,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre } } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4397,13 +3863,10 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); + return getStreamsFieldBuilder().addBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); } /** - * - * *
        * Streams associated with this session.
        * 
@@ -4412,96 +3875,72 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStrea */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStreamsBuilder( int index) { - return getStreamsFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); + return getStreamsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); } /** - * - * *
        * Streams associated with this session.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( - streams_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( + streams_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); streams_ = null; } return streamsBuilder_; } - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - tableReference_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference tableReference_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> - tableReferenceBuilder_; + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> tableReferenceBuilder_; /** - * - * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; - * * @return Whether the tableReference field is set. */ public boolean hasTableReference() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; - * * @return The tableReference. */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - getTableReference() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference() { if (tableReferenceBuilder_ == null) { - return tableReference_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance() - : tableReference_; + return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; } else { return tableReferenceBuilder_.getMessage(); } } /** - * - * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ - public Builder setTableReference( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { + public Builder setTableReference(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { if (tableReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4515,8 +3954,6 @@ public Builder setTableReference( return this; } /** - * - * *
        * Table that this ReadSession is reading from.
        * 
@@ -4524,8 +3961,7 @@ public Builder setTableReference( * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ public Builder setTableReference( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder builderForValue) { if (tableReferenceBuilder_ == null) { tableReference_ = builderForValue.build(); } else { @@ -4536,22 +3972,17 @@ public Builder setTableReference( return this; } /** - * - * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ - public Builder mergeTableReference( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { + public Builder mergeTableReference(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { if (tableReferenceBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && tableReference_ != null - && tableReference_ - != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + tableReference_ != null && + tableReference_ != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance()) { getTableReferenceBuilder().mergeFrom(value); } else { tableReference_ = value; @@ -4564,8 +3995,6 @@ public Builder mergeTableReference( return this; } /** - * - * *
        * Table that this ReadSession is reading from.
        * 
@@ -4583,43 +4012,33 @@ public Builder clearTableReference() { return this; } /** - * - * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder - getTableReferenceBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder getTableReferenceBuilder() { bitField0_ |= 0x00000020; onChanged(); return getTableReferenceFieldBuilder().getBuilder(); } /** - * - * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder - getTableReferenceOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder() { if (tableReferenceBuilder_ != null) { return tableReferenceBuilder_.getMessageOrBuilder(); } else { - return tableReference_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance() - : tableReference_; + return tableReference_ == null ? + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; } } /** - * - * *
        * Table that this ReadSession is reading from.
        * 
@@ -4627,78 +4046,56 @@ public Builder clearTableReference() { * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> getTableReferenceFieldBuilder() { if (tableReferenceBuilder_ == null) { - tableReferenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .TableReferenceOrBuilder>( - getTableReference(), getParentForChildren(), isClean()); + tableReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder>( + getTableReference(), + getParentForChildren(), + isClean()); tableReference_ = null; } return tableReferenceBuilder_; } - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - tableModifiers_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers tableModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> - tableModifiersBuilder_; + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> tableModifiersBuilder_; /** - * - * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; - * * @return Whether the tableModifiers field is set. */ public boolean hasTableModifiers() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; - * * @return The tableModifiers. */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - getTableModifiers() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers() { if (tableModifiersBuilder_ == null) { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance() - : tableModifiers_; + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; } else { return tableModifiersBuilder_.getMessage(); } } /** - * - * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ - public Builder setTableModifiers( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { + public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { if (tableModifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4712,8 +4109,6 @@ public Builder setTableModifiers( return this; } /** - * - * *
        * Any modifiers which are applied when reading from the specified table.
        * 
@@ -4721,8 +4116,7 @@ public Builder setTableModifiers( * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ public Builder setTableModifiers( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder builderForValue) { if (tableModifiersBuilder_ == null) { tableModifiers_ = builderForValue.build(); } else { @@ -4733,22 +4127,17 @@ public Builder setTableModifiers( return this; } /** - * - * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ - public Builder mergeTableModifiers( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { + public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { if (tableModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && tableModifiers_ != null - && tableModifiers_ - != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + tableModifiers_ != null && + tableModifiers_ != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance()) { getTableModifiersBuilder().mergeFrom(value); } else { tableModifiers_ = value; @@ -4761,8 +4150,6 @@ public Builder mergeTableModifiers( return this; } /** - * - * *
        * Any modifiers which are applied when reading from the specified table.
        * 
@@ -4780,43 +4167,33 @@ public Builder clearTableModifiers() { return this; } /** - * - * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder - getTableModifiersBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder getTableModifiersBuilder() { bitField0_ |= 0x00000040; onChanged(); return getTableModifiersFieldBuilder().getBuilder(); } /** - * - * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder - getTableModifiersOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder() { if (tableModifiersBuilder_ != null) { return tableModifiersBuilder_.getMessageOrBuilder(); } else { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance() - : tableModifiers_; + return tableModifiers_ == null ? + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; } } /** - * - * *
        * Any modifiers which are applied when reading from the specified table.
        * 
@@ -4824,19 +4201,14 @@ public Builder clearTableModifiers() { * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> getTableModifiersFieldBuilder() { if (tableModifiersBuilder_ == null) { - tableModifiersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .TableModifiersOrBuilder>( - getTableModifiers(), getParentForChildren(), isClean()); + tableModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder>( + getTableModifiers(), + getParentForChildren(), + isClean()); tableModifiers_ = null; } return tableModifiersBuilder_; @@ -4844,29 +4216,22 @@ public Builder clearTableModifiers() { private int shardingStrategy_ = 0; /** - * - * *
        * The strategy to use for distributing data among the streams.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; - * * @return The enum numeric value on the wire for shardingStrategy. */ - @java.lang.Override - public int getShardingStrategyValue() { + @java.lang.Override public int getShardingStrategyValue() { return shardingStrategy_; } /** - * - * *
        * The strategy to use for distributing data among the streams.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; - * * @param value The enum numeric value on the wire for shardingStrategy to set. * @return This builder for chaining. */ @@ -4877,40 +4242,28 @@ public Builder setShardingStrategyValue(int value) { return this; } /** - * - * *
        * The strategy to use for distributing data among the streams.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; - * * @return The shardingStrategy. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy - getShardingStrategy() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber( - shardingStrategy_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED - : result; + public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy() { + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber(shardingStrategy_); + return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED : result; } /** - * - * *
        * The strategy to use for distributing data among the streams.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; - * * @param value The shardingStrategy to set. * @return This builder for chaining. */ - public Builder setShardingStrategy( - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy value) { + public Builder setShardingStrategy(com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy value) { if (value == null) { throw new NullPointerException(); } @@ -4920,14 +4273,11 @@ public Builder setShardingStrategy( return this; } /** - * - * *
        * The strategy to use for distributing data among the streams.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; - * * @return This builder for chaining. */ public Builder clearShardingStrategy() { @@ -4936,7 +4286,6 @@ public Builder clearShardingStrategy() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4949,44 +4298,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ReadSession) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadSession) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadSession parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4998,133 +4344,95 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface CreateReadSessionRequestOrBuilder - extends + public interface CreateReadSessionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Reference to the table to read.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the tableReference field is set. */ boolean hasTableReference(); /** - * - * *
      * Required. Reference to the table to read.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The tableReference. */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - getTableReference(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference(); /** - * - * *
      * Required. Reference to the table to read.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder - getTableReferenceOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder(); /** - * - * *
      * Required. String of the form `projects/{project_id}` indicating the
      * project this ReadSession is associated with. This is the project that will
      * be billed for usage.
      * 
* - * - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
      * Required. String of the form `projects/{project_id}` indicating the
      * project this ReadSession is associated with. This is the project that will
      * be billed for usage.
      * 
* - * - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; - * * @return Whether the tableModifiers field is set. */ boolean hasTableModifiers(); /** - * - * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; - * * @return The tableModifiers. */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - getTableModifiers(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers(); /** - * - * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder - getTableModifiersOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder(); /** - * - * *
      * Initial number of streams. If unset or 0, we will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -5135,102 +4443,78 @@ public interface CreateReadSessionRequestOrBuilder
      * 
* * int32 requested_streams = 3; - * * @return The requestedStreams. */ int getRequestedStreams(); /** - * - * *
      * Read options for this session (e.g. column selection, filters).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; - * * @return Whether the readOptions field is set. */ boolean hasReadOptions(); /** - * - * *
      * Read options for this session (e.g. column selection, filters).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; - * * @return The readOptions. */ com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getReadOptions(); /** - * - * *
      * Read options for this session (e.g. column selection, filters).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder - getReadOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder getReadOptionsOrBuilder(); /** - * - * *
      * Data output format. Currently default to Avro.
      * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; - * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** - * - * *
      * Data output format. Currently default to Avro.
      * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; - * * @return The format. */ com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat(); /** - * - * *
      * The strategy to use for distributing data among multiple streams. Currently
      * defaults to liquid sharding.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; - * * @return The enum numeric value on the wire for shardingStrategy. */ int getShardingStrategyValue(); /** - * - * *
      * The strategy to use for distributing data among multiple streams. Currently
      * defaults to liquid sharding.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; - * * @return The shardingStrategy. */ com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy(); } /** - * - * *
    * Creates a new read session, which may include additional options such as
    * requested parallelism, projection filters and constraints.
@@ -5238,16 +4522,15 @@ public interface CreateReadSessionRequestOrBuilder
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest}
    */
-  public static final class CreateReadSessionRequest extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class CreateReadSessionRequest extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest)
       CreateReadSessionRequestOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use CreateReadSessionRequest.newBuilder() to construct.
     private CreateReadSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private CreateReadSessionRequest() {
       parent_ = "";
       format_ = 0;
@@ -5256,45 +4539,37 @@ private CreateReadSessionRequest() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new CreateReadSessionRequest();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage
-          .internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage
-          .internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class,
-              com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.Builder
-                  .class);
+              com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.Builder.class);
     }
 
     public static final int TABLE_REFERENCE_FIELD_NUMBER = 1;
-    private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference
-        tableReference_;
+    private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference tableReference_;
     /**
-     *
-     *
      * 
      * Required. Reference to the table to read.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the tableReference field is set. */ @java.lang.Override @@ -5302,63 +4577,40 @@ public boolean hasTableReference() { return tableReference_ != null; } /** - * - * *
      * Required. Reference to the table to read.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The tableReference. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - getTableReference() { - return tableReference_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance() - : tableReference_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference() { + return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; } /** - * - * *
      * Required. Reference to the table to read.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder - getTableReferenceOrBuilder() { - return tableReference_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance() - : tableReference_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder() { + return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; } public static final int PARENT_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
      * Required. String of the form `projects/{project_id}` indicating the
      * project this ReadSession is associated with. This is the project that will
      * be billed for usage.
      * 
* - * - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -5367,33 +4619,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
      * Required. String of the form `projects/{project_id}` indicating the
      * project this ReadSession is associated with. This is the project that will
      * be billed for usage.
      * 
* - * - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -5402,17 +4652,13 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int TABLE_MODIFIERS_FIELD_NUMBER = 2; - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - tableModifiers_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers tableModifiers_; /** - * - * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; - * * @return Whether the tableModifiers field is set. */ @java.lang.Override @@ -5420,27 +4666,18 @@ public boolean hasTableModifiers() { return tableModifiers_ != null; } /** - * - * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; - * * @return The tableModifiers. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - getTableModifiers() { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance() - : tableModifiers_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers() { + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; } /** - * - * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
@@ -5448,19 +4685,13 @@ public boolean hasTableModifiers() { * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder - getTableModifiersOrBuilder() { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance() - : tableModifiers_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder() { + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; } public static final int REQUESTED_STREAMS_FIELD_NUMBER = 3; private int requestedStreams_ = 0; /** - * - * *
      * Initial number of streams. If unset or 0, we will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -5471,7 +4702,6 @@ public boolean hasTableModifiers() {
      * 
* * int32 requested_streams = 3; - * * @return The requestedStreams. */ @java.lang.Override @@ -5482,14 +4712,11 @@ public int getRequestedStreams() { public static final int READ_OPTIONS_FIELD_NUMBER = 4; private com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions readOptions_; /** - * - * *
      * Read options for this session (e.g. column selection, filters).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; - * * @return Whether the readOptions field is set. */ @java.lang.Override @@ -5497,26 +4724,18 @@ public boolean hasReadOptions() { return readOptions_ != null; } /** - * - * *
      * Read options for this session (e.g. column selection, filters).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; - * * @return The readOptions. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getReadOptions() { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - .getDefaultInstance() - : readOptions_; + return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance() : readOptions_; } /** - * - * *
      * Read options for this session (e.g. column selection, filters).
      * 
@@ -5524,94 +4743,65 @@ public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions ge * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder - getReadOptionsOrBuilder() { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - .getDefaultInstance() - : readOptions_; + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { + return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance() : readOptions_; } public static final int FORMAT_FIELD_NUMBER = 5; private int format_ = 0; /** - * - * *
      * Data output format. Currently default to Avro.
      * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; - * * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
      * Data output format. Currently default to Avro.
      * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; - * * @return The format. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat() { - com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat result = - com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.forNumber(format_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat() { + com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat result = com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.forNumber(format_); + return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.UNRECOGNIZED : result; } public static final int SHARDING_STRATEGY_FIELD_NUMBER = 7; private int shardingStrategy_ = 0; /** - * - * *
      * The strategy to use for distributing data among multiple streams. Currently
      * defaults to liquid sharding.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; - * * @return The enum numeric value on the wire for shardingStrategy. */ - @java.lang.Override - public int getShardingStrategyValue() { + @java.lang.Override public int getShardingStrategyValue() { return shardingStrategy_; } /** - * - * *
      * The strategy to use for distributing data among multiple streams. Currently
      * defaults to liquid sharding.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; - * * @return The shardingStrategy. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy - getShardingStrategy() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber( - shardingStrategy_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy() { + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber(shardingStrategy_); + return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5623,7 +4813,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (tableReference_ != null) { output.writeMessage(1, getTableReference()); } @@ -5636,18 +4827,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (readOptions_ != null) { output.writeMessage(4, getReadOptions()); } - if (format_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.DATA_FORMAT_UNSPECIFIED - .getNumber()) { + if (format_ != com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(5, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); } - if (shardingStrategy_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy - .SHARDING_STRATEGY_UNSPECIFIED - .getNumber()) { + if (shardingStrategy_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.SHARDING_STRATEGY_UNSPECIFIED.getNumber()) { output.writeEnum(7, shardingStrategy_); } getUnknownFields().writeTo(output); @@ -5660,30 +4846,31 @@ public int getSerializedSize() { size = 0; if (tableReference_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTableReference()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTableReference()); } if (tableModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTableModifiers()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTableModifiers()); } if (requestedStreams_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, requestedStreams_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, requestedStreams_); } if (readOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getReadOptions()); } - if (format_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.DATA_FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, format_); + if (format_ != com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); } - if (shardingStrategy_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy - .SHARDING_STRATEGY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, shardingStrategy_); + if (shardingStrategy_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.SHARDING_STRATEGY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, shardingStrategy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5693,28 +4880,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest other = (com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) obj; if (hasTableReference() != other.hasTableReference()) return false; if (hasTableReference()) { - if (!getTableReference().equals(other.getTableReference())) return false; + if (!getTableReference() + .equals(other.getTableReference())) return false; } - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasTableModifiers() != other.hasTableModifiers()) return false; if (hasTableModifiers()) { - if (!getTableModifiers().equals(other.getTableModifiers())) return false; + if (!getTableModifiers() + .equals(other.getTableModifiers())) return false; } - if (getRequestedStreams() != other.getRequestedStreams()) return false; + if (getRequestedStreams() + != other.getRequestedStreams()) return false; if (hasReadOptions() != other.hasReadOptions()) return false; if (hasReadOptions()) { - if (!getReadOptions().equals(other.getReadOptions())) return false; + if (!getReadOptions() + .equals(other.getReadOptions())) return false; } if (format_ != other.format_) return false; if (shardingStrategy_ != other.shardingStrategy_) return false; @@ -5754,101 +4944,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5858,8 +5035,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Creates a new read session, which may include additional options such as
      * requested parallelism, projection filters and constraints.
@@ -5867,35 +5042,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest)
         com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequestOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage
-            .internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage
-            .internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable
+        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class,
-                com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.Builder
-                    .class);
+                com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5923,22 +5096,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage
-            .internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest
-          getDefaultInstanceForType() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest
-            .getDefaultInstance();
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest getDefaultInstanceForType() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest build() {
-        com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result =
-            buildPartial();
+        com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -5946,37 +5116,35 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionReques
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest
-          buildPartial() {
-        com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result =
-            new com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest buildPartial() {
+        com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result = new com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result) {
+      private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.tableReference_ =
-              tableReferenceBuilder_ == null ? tableReference_ : tableReferenceBuilder_.build();
+          result.tableReference_ = tableReferenceBuilder_ == null
+              ? tableReference_
+              : tableReferenceBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.parent_ = parent_;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.tableModifiers_ =
-              tableModifiersBuilder_ == null ? tableModifiers_ : tableModifiersBuilder_.build();
+          result.tableModifiers_ = tableModifiersBuilder_ == null
+              ? tableModifiers_
+              : tableModifiersBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
           result.requestedStreams_ = requestedStreams_;
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.readOptions_ =
-              readOptionsBuilder_ == null ? readOptions_ : readOptionsBuilder_.build();
+          result.readOptions_ = readOptionsBuilder_ == null
+              ? readOptions_
+              : readOptionsBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000020) != 0)) {
           result.format_ = format_;
@@ -5990,54 +5158,46 @@ private void buildPartial0(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other
-            instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) {
-          return mergeFrom(
-              (com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) other);
+        if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) {
+          return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest other) {
-        if (other
-            == com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest other) {
+        if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.getDefaultInstance()) return this;
         if (other.hasTableReference()) {
           mergeTableReference(other.getTableReference());
         }
@@ -6087,57 +5247,53 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(
-                      getTableReferenceFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000001;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(
-                      getTableModifiersFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 18
-              case 24:
-                {
-                  requestedStreams_ = input.readInt32();
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 24
-              case 34:
-                {
-                  input.readMessage(getReadOptionsFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 34
-              case 40:
-                {
-                  format_ = input.readEnum();
-                  bitField0_ |= 0x00000020;
-                  break;
-                } // case 40
-              case 50:
-                {
-                  parent_ = input.readStringRequireUtf8();
-                  bitField0_ |= 0x00000002;
-                  break;
-                } // case 50
-              case 56:
-                {
-                  shardingStrategy_ = input.readEnum();
-                  bitField0_ |= 0x00000040;
-                  break;
-                } // case 56
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getTableReferenceFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getTableModifiersFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 18
+              case 24: {
+                requestedStreams_ = input.readInt32();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 24
+              case 34: {
+                input.readMessage(
+                    getReadOptionsFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 34
+              case 40: {
+                format_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 40
+              case 50: {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 50
+              case 56: {
+                shardingStrategy_ = input.readEnum();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -6147,69 +5303,45 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int bitField0_;
 
-      private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference
-          tableReference_;
+      private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference tableReference_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference,
-              com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder,
-              com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder>
-          tableReferenceBuilder_;
+          com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> tableReferenceBuilder_;
       /**
-       *
-       *
        * 
        * Required. Reference to the table to read.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the tableReference field is set. */ public boolean hasTableReference() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Required. Reference to the table to read.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The tableReference. */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - getTableReference() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference() { if (tableReferenceBuilder_ == null) { - return tableReference_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance() - : tableReference_; + return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; } else { return tableReferenceBuilder_.getMessage(); } } /** - * - * *
        * Required. Reference to the table to read.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setTableReference( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { + public Builder setTableReference(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { if (tableReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6223,19 +5355,14 @@ public Builder setTableReference( return this; } /** - * - * *
        * Required. Reference to the table to read.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTableReference( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder builderForValue) { if (tableReferenceBuilder_ == null) { tableReference_ = builderForValue.build(); } else { @@ -6246,24 +5373,17 @@ public Builder setTableReference( return this; } /** - * - * *
        * Required. Reference to the table to read.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeTableReference( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { + public Builder mergeTableReference(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { if (tableReferenceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && tableReference_ != null - && tableReference_ - != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + tableReference_ != null && + tableReference_ != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance()) { getTableReferenceBuilder().mergeFrom(value); } else { tableReference_ = value; @@ -6276,15 +5396,11 @@ public Builder mergeTableReference( return this; } /** - * - * *
        * Required. Reference to the table to read.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTableReference() { bitField0_ = (bitField0_ & ~0x00000001); @@ -6297,69 +5413,48 @@ public Builder clearTableReference() { return this; } /** - * - * *
        * Required. Reference to the table to read.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder - getTableReferenceBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder getTableReferenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTableReferenceFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Reference to the table to read.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder - getTableReferenceOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder() { if (tableReferenceBuilder_ != null) { return tableReferenceBuilder_.getMessageOrBuilder(); } else { - return tableReference_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance() - : tableReference_; + return tableReference_ == null ? + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; } } /** - * - * *
        * Required. Reference to the table to read.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> getTableReferenceFieldBuilder() { if (tableReferenceBuilder_ == null) { - tableReferenceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .TableReferenceOrBuilder>( - getTableReference(), getParentForChildren(), isClean()); + tableReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder>( + getTableReference(), + getParentForChildren(), + isClean()); tableReference_ = null; } return tableReferenceBuilder_; @@ -6367,24 +5462,20 @@ public Builder clearTableReference() { private java.lang.Object parent_ = ""; /** - * - * *
        * Required. String of the form `projects/{project_id}` indicating the
        * project this ReadSession is associated with. This is the project that will
        * be billed for usage.
        * 
* - * - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -6393,25 +5484,22 @@ public java.lang.String getParent() { } } /** - * - * *
        * Required. String of the form `projects/{project_id}` indicating the
        * project this ReadSession is associated with. This is the project that will
        * be billed for usage.
        * 
* - * - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -6419,43 +5507,32 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
        * Required. String of the form `projects/{project_id}` indicating the
        * project this ReadSession is associated with. This is the project that will
        * be billed for usage.
        * 
* - * - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Required. String of the form `projects/{project_id}` indicating the
        * project this ReadSession is associated with. This is the project that will
        * be billed for usage.
        * 
* - * - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -6465,25 +5542,19 @@ public Builder clearParent() { return this; } /** - * - * *
        * Required. String of the form `projects/{project_id}` indicating the
        * project this ReadSession is associated with. This is the project that will
        * be billed for usage.
        * 
* - * - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000002; @@ -6491,60 +5562,43 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - tableModifiers_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers tableModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> - tableModifiersBuilder_; + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> tableModifiersBuilder_; /** - * - * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; - * * @return Whether the tableModifiers field is set. */ public boolean hasTableModifiers() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; - * * @return The tableModifiers. */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - getTableModifiers() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers() { if (tableModifiersBuilder_ == null) { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance() - : tableModifiers_; + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; } else { return tableModifiersBuilder_.getMessage(); } } /** - * - * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ - public Builder setTableModifiers( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { + public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { if (tableModifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6558,8 +5612,6 @@ public Builder setTableModifiers( return this; } /** - * - * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
@@ -6567,8 +5619,7 @@ public Builder setTableModifiers( * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ public Builder setTableModifiers( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder builderForValue) { if (tableModifiersBuilder_ == null) { tableModifiers_ = builderForValue.build(); } else { @@ -6579,22 +5630,17 @@ public Builder setTableModifiers( return this; } /** - * - * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ - public Builder mergeTableModifiers( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { + public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { if (tableModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && tableModifiers_ != null - && tableModifiers_ - != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + tableModifiers_ != null && + tableModifiers_ != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance()) { getTableModifiersBuilder().mergeFrom(value); } else { tableModifiers_ = value; @@ -6607,8 +5653,6 @@ public Builder mergeTableModifiers( return this; } /** - * - * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
@@ -6626,43 +5670,33 @@ public Builder clearTableModifiers() { return this; } /** - * - * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder - getTableModifiersBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder getTableModifiersBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTableModifiersFieldBuilder().getBuilder(); } /** - * - * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder - getTableModifiersOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder() { if (tableModifiersBuilder_ != null) { return tableModifiersBuilder_.getMessageOrBuilder(); } else { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance() - : tableModifiers_; + return tableModifiers_ == null ? + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; } } /** - * - * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
@@ -6670,28 +5704,21 @@ public Builder clearTableModifiers() { * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> getTableModifiersFieldBuilder() { if (tableModifiersBuilder_ == null) { - tableModifiersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .Builder, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .TableModifiersOrBuilder>( - getTableModifiers(), getParentForChildren(), isClean()); + tableModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder>( + getTableModifiers(), + getParentForChildren(), + isClean()); tableModifiers_ = null; } return tableModifiersBuilder_; } - private int requestedStreams_; + private int requestedStreams_ ; /** - * - * *
        * Initial number of streams. If unset or 0, we will
        * provide a value of streams so as to produce reasonable throughput. Must be
@@ -6702,7 +5729,6 @@ public Builder clearTableModifiers() {
        * 
* * int32 requested_streams = 3; - * * @return The requestedStreams. */ @java.lang.Override @@ -6710,8 +5736,6 @@ public int getRequestedStreams() { return requestedStreams_; } /** - * - * *
        * Initial number of streams. If unset or 0, we will
        * provide a value of streams so as to produce reasonable throughput. Must be
@@ -6722,20 +5746,17 @@ public int getRequestedStreams() {
        * 
* * int32 requested_streams = 3; - * * @param value The requestedStreams to set. * @return This builder for chaining. */ public Builder setRequestedStreams(int value) { - + requestedStreams_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * Initial number of streams. If unset or 0, we will
        * provide a value of streams so as to produce reasonable throughput. Must be
@@ -6746,7 +5767,6 @@ public Builder setRequestedStreams(int value) {
        * 
* * int32 requested_streams = 3; - * * @return This builder for chaining. */ public Builder clearRequestedStreams() { @@ -6758,57 +5778,41 @@ public Builder clearRequestedStreams() { private com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions readOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder> - readOptionsBuilder_; + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder> readOptionsBuilder_; /** - * - * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; - * * @return Whether the readOptions field is set. */ public boolean hasReadOptions() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; - * * @return The readOptions. */ - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - getReadOptions() { + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getReadOptions() { if (readOptionsBuilder_ == null) { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - .getDefaultInstance() - : readOptions_; + return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance() : readOptions_; } else { return readOptionsBuilder_.getMessage(); } } /** - * - * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ - public Builder setReadOptions( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions value) { + public Builder setReadOptions(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions value) { if (readOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6822,8 +5826,6 @@ public Builder setReadOptions( return this; } /** - * - * *
        * Read options for this session (e.g. column selection, filters).
        * 
@@ -6831,8 +5833,7 @@ public Builder setReadOptions( * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ public Builder setReadOptions( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder builderForValue) { if (readOptionsBuilder_ == null) { readOptions_ = builderForValue.build(); } else { @@ -6843,22 +5844,17 @@ public Builder setReadOptions( return this; } /** - * - * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ - public Builder mergeReadOptions( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions value) { + public Builder mergeReadOptions(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions value) { if (readOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && readOptions_ != null - && readOptions_ - != com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - .getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + readOptions_ != null && + readOptions_ != com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance()) { getReadOptionsBuilder().mergeFrom(value); } else { readOptions_ = value; @@ -6871,8 +5867,6 @@ public Builder mergeReadOptions( return this; } /** - * - * *
        * Read options for this session (e.g. column selection, filters).
        * 
@@ -6890,43 +5884,33 @@ public Builder clearReadOptions() { return this; } /** - * - * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder - getReadOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder getReadOptionsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getReadOptionsFieldBuilder().getBuilder(); } /** - * - * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder - getReadOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { if (readOptionsBuilder_ != null) { return readOptionsBuilder_.getMessageOrBuilder(); } else { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions - .getDefaultInstance() - : readOptions_; + return readOptions_ == null ? + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance() : readOptions_; } } /** - * - * *
        * Read options for this session (e.g. column selection, filters).
        * 
@@ -6934,17 +5918,14 @@ public Builder clearReadOptions() { * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder> getReadOptionsFieldBuilder() { if (readOptionsBuilder_ == null) { - readOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder>( - getReadOptions(), getParentForChildren(), isClean()); + readOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder>( + getReadOptions(), + getParentForChildren(), + isClean()); readOptions_ = null; } return readOptionsBuilder_; @@ -6952,29 +5933,22 @@ public Builder clearReadOptions() { private int format_ = 0; /** - * - * *
        * Data output format. Currently default to Avro.
        * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; - * * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
        * Data output format. Currently default to Avro.
        * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; - * * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ @@ -6985,33 +5959,24 @@ public Builder setFormatValue(int value) { return this; } /** - * - * *
        * Data output format. Currently default to Avro.
        * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; - * * @return The format. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat() { - com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat result = - com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.forNumber(format_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat result = com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.forNumber(format_); + return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.UNRECOGNIZED : result; } /** - * - * *
        * Data output format. Currently default to Avro.
        * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; - * * @param value The format to set. * @return This builder for chaining. */ @@ -7025,14 +5990,11 @@ public Builder setFormat(com.google.cloud.bigquery.storage.v1beta1.Storage.DataF return this; } /** - * - * *
        * Data output format. Currently default to Avro.
        * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; - * * @return This builder for chaining. */ public Builder clearFormat() { @@ -7044,31 +6006,24 @@ public Builder clearFormat() { private int shardingStrategy_ = 0; /** - * - * *
        * The strategy to use for distributing data among multiple streams. Currently
        * defaults to liquid sharding.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; - * * @return The enum numeric value on the wire for shardingStrategy. */ - @java.lang.Override - public int getShardingStrategyValue() { + @java.lang.Override public int getShardingStrategyValue() { return shardingStrategy_; } /** - * - * *
        * The strategy to use for distributing data among multiple streams. Currently
        * defaults to liquid sharding.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; - * * @param value The enum numeric value on the wire for shardingStrategy to set. * @return This builder for chaining. */ @@ -7079,42 +6034,30 @@ public Builder setShardingStrategyValue(int value) { return this; } /** - * - * *
        * The strategy to use for distributing data among multiple streams. Currently
        * defaults to liquid sharding.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; - * * @return The shardingStrategy. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy - getShardingStrategy() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber( - shardingStrategy_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED - : result; + public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy() { + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber(shardingStrategy_); + return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED : result; } /** - * - * *
        * The strategy to use for distributing data among multiple streams. Currently
        * defaults to liquid sharding.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; - * * @param value The shardingStrategy to set. * @return This builder for chaining. */ - public Builder setShardingStrategy( - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy value) { + public Builder setShardingStrategy(com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy value) { if (value == null) { throw new NullPointerException(); } @@ -7124,15 +6067,12 @@ public Builder setShardingStrategy( return this; } /** - * - * *
        * The strategy to use for distributing data among multiple streams. Currently
        * defaults to liquid sharding.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; - * * @return This builder for chaining. */ public Builder clearShardingStrategy() { @@ -7141,7 +6081,6 @@ public Builder clearShardingStrategy() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7154,45 +6093,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReadSessionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReadSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7204,127 +6139,103 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ReadRowsRequestOrBuilder - extends + public interface ReadRowsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the readPosition field is set. */ boolean hasReadPosition(); /** - * - * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The readPosition. */ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getReadPosition(); /** - * - * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder - getReadPositionOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder getReadPositionOrBuilder(); } /** - * - * *
    * Requesting row data via `ReadRows` must provide Stream position information.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadRowsRequest} */ - public static final class ReadRowsRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ReadRowsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) ReadRowsRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadRowsRequest.newBuilder() to construct. private ReadRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ReadRowsRequest() {} + private ReadRowsRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.Builder.class); } public static final int READ_POSITION_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition readPosition_; /** - * - * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the readPosition field is set. */ @java.lang.Override @@ -7332,49 +6243,34 @@ public boolean hasReadPosition() { return readPosition_ != null; } /** - * - * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The readPosition. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getReadPosition() { - return readPosition_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() - : readPosition_; + return readPosition_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() : readPosition_; } /** - * - * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder - getReadPositionOrBuilder() { - return readPosition_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() - : readPosition_; + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder getReadPositionOrBuilder() { + return readPosition_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() : readPosition_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7386,7 +6282,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (readPosition_ != null) { output.writeMessage(1, getReadPosition()); } @@ -7400,7 +6297,8 @@ public int getSerializedSize() { size = 0; if (readPosition_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadPosition()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReadPosition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7410,17 +6308,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest other = (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) obj; if (hasReadPosition() != other.hasReadPosition()) return false; if (hasReadPosition()) { - if (!getReadPosition().equals(other.getReadPosition())) return false; + if (!getReadPosition() + .equals(other.getReadPosition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -7443,95 +6341,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7541,42 +6431,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Requesting row data via `ReadRows` must provide Stream position information.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadRowsRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -7590,16 +6477,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.getDefaultInstance(); } @java.lang.Override @@ -7613,21 +6498,18 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest build() @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest result = - new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest result = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.readPosition_ = - readPositionBuilder_ == null ? readPosition_ : readPositionBuilder_.build(); + result.readPosition_ = readPositionBuilder_ == null + ? readPosition_ + : readPositionBuilder_.build(); } } @@ -7635,53 +6517,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.getDefaultInstance()) return this; if (other.hasReadPosition()) { mergeReadPosition(other.getReadPosition()); } @@ -7711,19 +6586,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getReadPositionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getReadPositionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7733,73 +6608,51 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition readPosition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder> - readPositionBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder> readPositionBuilder_; /** - * - * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the readPosition field is set. */ public boolean hasReadPosition() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The readPosition. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getReadPosition() { if (readPositionBuilder_ == null) { - return readPosition_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - .getDefaultInstance() - : readPosition_; + return readPosition_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() : readPosition_; } else { return readPositionBuilder_.getMessage(); } } /** - * - * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setReadPosition( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition value) { + public Builder setReadPosition(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition value) { if (readPositionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -7813,21 +6666,16 @@ public Builder setReadPosition( return this; } /** - * - * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReadPosition( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder builderForValue) { if (readPositionBuilder_ == null) { readPosition_ = builderForValue.build(); } else { @@ -7838,26 +6686,19 @@ public Builder setReadPosition( return this; } /** - * - * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeReadPosition( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition value) { + public Builder mergeReadPosition(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition value) { if (readPositionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && readPosition_ != null - && readPosition_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + readPosition_ != null && + readPosition_ != com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance()) { getReadPositionBuilder().mergeFrom(value); } else { readPosition_ = value; @@ -7870,17 +6711,13 @@ public Builder mergeReadPosition( return this; } /** - * - * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReadPosition() { bitField0_ = (bitField0_ & ~0x00000001); @@ -7893,78 +6730,58 @@ public Builder clearReadPosition() { return this; } /** - * - * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder - getReadPositionBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder getReadPositionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getReadPositionFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder - getReadPositionOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder getReadPositionOrBuilder() { if (readPositionBuilder_ != null) { return readPositionBuilder_.getMessageOrBuilder(); } else { - return readPosition_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition - .getDefaultInstance() - : readPosition_; + return readPosition_ == null ? + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() : readPosition_; } } /** - * - * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder> getReadPositionFieldBuilder() { if (readPositionBuilder_ == null) { - readPositionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder>( - getReadPosition(), getParentForChildren(), isClean()); + readPositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder>( + getReadPosition(), + getParentForChildren(), + isClean()); readPosition_ = null; } return readPositionBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7977,44 +6794,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadRowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8026,20 +6840,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface StreamStatusOrBuilder - extends + public interface StreamStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.StreamStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Number of estimated rows in the current stream. May change over time as
      * different readers in the stream progress at rates which are relatively fast
@@ -8047,14 +6858,11 @@ public interface StreamStatusOrBuilder
      * 
* * int64 estimated_row_count = 1; - * * @return The estimatedRowCount. */ long getEstimatedRowCount(); /** - * - * *
      * A value in the range [0.0, 1.0] that represents the fraction of rows
      * assigned to this stream that have been processed by the server. In the
@@ -8065,38 +6873,29 @@ public interface StreamStatusOrBuilder
      * 
* * float fraction_consumed = 2; - * * @return The fractionConsumed. */ float getFractionConsumed(); /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; - * * @return Whether the progress field is set. */ boolean hasProgress(); /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; - * * @return The progress. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getProgress(); /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -8106,8 +6905,6 @@ public interface StreamStatusOrBuilder com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder getProgressOrBuilder(); /** - * - * *
      * Whether this stream can be split. For sessions that use the LIQUID sharding
      * strategy, this value is always false. For BALANCED sessions, this value is
@@ -8117,63 +6914,57 @@ public interface StreamStatusOrBuilder
      * 
* * bool is_splittable = 3; - * * @return The isSplittable. */ boolean getIsSplittable(); } /** - * - * *
    * Progress information for a given Stream.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.StreamStatus} */ - public static final class StreamStatus extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StreamStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.StreamStatus) StreamStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamStatus.newBuilder() to construct. private StreamStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamStatus() {} + private StreamStatus() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.class, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder.class); } public static final int ESTIMATED_ROW_COUNT_FIELD_NUMBER = 1; private long estimatedRowCount_ = 0L; /** - * - * *
      * Number of estimated rows in the current stream. May change over time as
      * different readers in the stream progress at rates which are relatively fast
@@ -8181,7 +6972,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * int64 estimated_row_count = 1; - * * @return The estimatedRowCount. */ @java.lang.Override @@ -8192,8 +6982,6 @@ public long getEstimatedRowCount() { public static final int FRACTION_CONSUMED_FIELD_NUMBER = 2; private float fractionConsumed_ = 0F; /** - * - * *
      * A value in the range [0.0, 1.0] that represents the fraction of rows
      * assigned to this stream that have been processed by the server. In the
@@ -8204,7 +6992,6 @@ public long getEstimatedRowCount() {
      * 
* * float fraction_consumed = 2; - * * @return The fractionConsumed. */ @java.lang.Override @@ -8215,14 +7002,11 @@ public float getFractionConsumed() { public static final int PROGRESS_FIELD_NUMBER = 4; private com.google.cloud.bigquery.storage.v1beta1.Storage.Progress progress_; /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; - * * @return Whether the progress field is set. */ @java.lang.Override @@ -8230,25 +7014,18 @@ public boolean hasProgress() { return progress_ != null; } /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; - * * @return The progress. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getProgress() { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() : progress_; } /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -8256,18 +7033,13 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getProgress() * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder - getProgressOrBuilder() { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() - : progress_; + public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder getProgressOrBuilder() { + return progress_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() : progress_; } public static final int IS_SPLITTABLE_FIELD_NUMBER = 3; private boolean isSplittable_ = false; /** - * - * *
      * Whether this stream can be split. For sessions that use the LIQUID sharding
      * strategy, this value is always false. For BALANCED sessions, this value is
@@ -8277,7 +7049,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getProgress()
      * 
* * bool is_splittable = 3; - * * @return The isSplittable. */ @java.lang.Override @@ -8286,7 +7057,6 @@ public boolean getIsSplittable() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8298,7 +7068,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (estimatedRowCount_ != 0L) { output.writeInt64(1, estimatedRowCount_); } @@ -8321,16 +7092,20 @@ public int getSerializedSize() { size = 0; if (estimatedRowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, estimatedRowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, estimatedRowCount_); } if (java.lang.Float.floatToRawIntBits(fractionConsumed_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, fractionConsumed_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, fractionConsumed_); } if (isSplittable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isSplittable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isSplittable_); } if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProgress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getProgress()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8340,22 +7115,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus other = (com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus) obj; - if (getEstimatedRowCount() != other.getEstimatedRowCount()) return false; + if (getEstimatedRowCount() + != other.getEstimatedRowCount()) return false; if (java.lang.Float.floatToIntBits(getFractionConsumed()) - != java.lang.Float.floatToIntBits(other.getFractionConsumed())) return false; + != java.lang.Float.floatToIntBits( + other.getFractionConsumed())) return false; if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; + if (!getProgress() + .equals(other.getProgress())) return false; } - if (getIsSplittable() != other.getIsSplittable()) return false; + if (getIsSplittable() + != other.getIsSplittable()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8368,109 +7146,105 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ESTIMATED_ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEstimatedRowCount()); hash = (37 * hash) + FRACTION_CONSUMED_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getFractionConsumed()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getFractionConsumed()); if (hasProgress()) { hash = (37 * hash) + PROGRESS_FIELD_NUMBER; hash = (53 * hash) + getProgress().hashCode(); } hash = (37 * hash) + IS_SPLITTABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsSplittable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsSplittable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8480,41 +7254,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Progress information for a given Stream.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.StreamStatus} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.StreamStatus) com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.class, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -8531,14 +7303,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance(); } @@ -8553,17 +7324,13 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus result = - new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus result = new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.estimatedRowCount_ = estimatedRowCount_; @@ -8572,7 +7339,9 @@ private void buildPartial0( result.fractionConsumed_ = fractionConsumed_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.isSplittable_ = isSplittable_; @@ -8583,52 +7352,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance()) return this; if (other.getEstimatedRowCount() != 0L) { setEstimatedRowCount(other.getEstimatedRowCount()); } @@ -8667,37 +7430,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - estimatedRowCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 21: - { - fractionConsumed_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 24: - { - isSplittable_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + estimatedRowCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: { + fractionConsumed_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 24: { + isSplittable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8707,13 +7467,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long estimatedRowCount_; + private long estimatedRowCount_ ; /** - * - * *
        * Number of estimated rows in the current stream. May change over time as
        * different readers in the stream progress at rates which are relatively fast
@@ -8721,7 +7478,6 @@ public Builder mergeFrom(
        * 
* * int64 estimated_row_count = 1; - * * @return The estimatedRowCount. */ @java.lang.Override @@ -8729,8 +7485,6 @@ public long getEstimatedRowCount() { return estimatedRowCount_; } /** - * - * *
        * Number of estimated rows in the current stream. May change over time as
        * different readers in the stream progress at rates which are relatively fast
@@ -8738,20 +7492,17 @@ public long getEstimatedRowCount() {
        * 
* * int64 estimated_row_count = 1; - * * @param value The estimatedRowCount to set. * @return This builder for chaining. */ public Builder setEstimatedRowCount(long value) { - + estimatedRowCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Number of estimated rows in the current stream. May change over time as
        * different readers in the stream progress at rates which are relatively fast
@@ -8759,7 +7510,6 @@ public Builder setEstimatedRowCount(long value) {
        * 
* * int64 estimated_row_count = 1; - * * @return This builder for chaining. */ public Builder clearEstimatedRowCount() { @@ -8769,10 +7519,8 @@ public Builder clearEstimatedRowCount() { return this; } - private float fractionConsumed_; + private float fractionConsumed_ ; /** - * - * *
        * A value in the range [0.0, 1.0] that represents the fraction of rows
        * assigned to this stream that have been processed by the server. In the
@@ -8783,7 +7531,6 @@ public Builder clearEstimatedRowCount() {
        * 
* * float fraction_consumed = 2; - * * @return The fractionConsumed. */ @java.lang.Override @@ -8791,8 +7538,6 @@ public float getFractionConsumed() { return fractionConsumed_; } /** - * - * *
        * A value in the range [0.0, 1.0] that represents the fraction of rows
        * assigned to this stream that have been processed by the server. In the
@@ -8803,20 +7548,17 @@ public float getFractionConsumed() {
        * 
* * float fraction_consumed = 2; - * * @param value The fractionConsumed to set. * @return This builder for chaining. */ public Builder setFractionConsumed(float value) { - + fractionConsumed_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * A value in the range [0.0, 1.0] that represents the fraction of rows
        * assigned to this stream that have been processed by the server. In the
@@ -8827,7 +7569,6 @@ public Builder setFractionConsumed(float value) {
        * 
* * float fraction_consumed = 2; - * * @return This builder for chaining. */ public Builder clearFractionConsumed() { @@ -8839,47 +7580,34 @@ public Builder clearFractionConsumed() { private com.google.cloud.bigquery.storage.v1beta1.Storage.Progress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder> - progressBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder> progressBuilder_; /** - * - * *
        * Represents the progress of the current stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; - * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Represents the progress of the current stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; - * * @return The progress. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getProgress() { if (progressBuilder_ == null) { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** - * - * *
        * Represents the progress of the current stream.
        * 
@@ -8900,8 +7628,6 @@ public Builder setProgress(com.google.cloud.bigquery.storage.v1beta1.Storage.Pro return this; } /** - * - * *
        * Represents the progress of the current stream.
        * 
@@ -8920,22 +7646,17 @@ public Builder setProgress( return this; } /** - * - * *
        * Represents the progress of the current stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; */ - public Builder mergeProgress( - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress value) { + public Builder mergeProgress(com.google.cloud.bigquery.storage.v1beta1.Storage.Progress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && progress_ != null - && progress_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.Progress - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + progress_ != null && + progress_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -8948,8 +7669,6 @@ public Builder mergeProgress( return this; } /** - * - * *
        * Represents the progress of the current stream.
        * 
@@ -8967,42 +7686,33 @@ public Builder clearProgress() { return this; } /** - * - * *
        * Represents the progress of the current stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder - getProgressBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder getProgressBuilder() { bitField0_ |= 0x00000004; onChanged(); return getProgressFieldBuilder().getBuilder(); } /** - * - * *
        * Represents the progress of the current stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder - getProgressOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder getProgressOrBuilder() { if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() - : progress_; + return progress_ == null ? + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() : progress_; } } /** - * - * *
        * Represents the progress of the current stream.
        * 
@@ -9010,26 +7720,21 @@ public Builder clearProgress() { * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; } - private boolean isSplittable_; + private boolean isSplittable_ ; /** - * - * *
        * Whether this stream can be split. For sessions that use the LIQUID sharding
        * strategy, this value is always false. For BALANCED sessions, this value is
@@ -9039,7 +7744,6 @@ public Builder clearProgress() {
        * 
* * bool is_splittable = 3; - * * @return The isSplittable. */ @java.lang.Override @@ -9047,8 +7751,6 @@ public boolean getIsSplittable() { return isSplittable_; } /** - * - * *
        * Whether this stream can be split. For sessions that use the LIQUID sharding
        * strategy, this value is always false. For BALANCED sessions, this value is
@@ -9058,20 +7760,17 @@ public boolean getIsSplittable() {
        * 
* * bool is_splittable = 3; - * * @param value The isSplittable to set. * @return This builder for chaining. */ public Builder setIsSplittable(boolean value) { - + isSplittable_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
        * Whether this stream can be split. For sessions that use the LIQUID sharding
        * strategy, this value is always false. For BALANCED sessions, this value is
@@ -9081,7 +7780,6 @@ public Builder setIsSplittable(boolean value) {
        * 
* * bool is_splittable = 3; - * * @return This builder for chaining. */ public Builder clearIsSplittable() { @@ -9090,7 +7788,6 @@ public Builder clearIsSplittable() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9103,44 +7800,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.StreamStatus) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.StreamStatus) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9152,20 +7846,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ProgressOrBuilder - extends + public interface ProgressOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.Progress) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The fraction of rows assigned to the stream that have been processed by the
      * server so far, not including the rows in the current response message.
@@ -9179,69 +7870,64 @@ public interface ProgressOrBuilder
      * 
* * float at_response_start = 1; - * * @return The atResponseStart. */ float getAtResponseStart(); /** - * - * *
      * Similar to `at_response_start`, except that this value includes the rows in
      * the current response.
      * 
* * float at_response_end = 2; - * * @return The atResponseEnd. */ float getAtResponseEnd(); } - /** Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Progress} */ - public static final class Progress extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Progress} + */ + public static final class Progress extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.Progress) ProgressOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Progress.newBuilder() to construct. private Progress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Progress() {} + private Progress() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Progress(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.class, com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder.class); } public static final int AT_RESPONSE_START_FIELD_NUMBER = 1; private float atResponseStart_ = 0F; /** - * - * *
      * The fraction of rows assigned to the stream that have been processed by the
      * server so far, not including the rows in the current response message.
@@ -9255,7 +7941,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * float at_response_start = 1; - * * @return The atResponseStart. */ @java.lang.Override @@ -9266,15 +7951,12 @@ public float getAtResponseStart() { public static final int AT_RESPONSE_END_FIELD_NUMBER = 2; private float atResponseEnd_ = 0F; /** - * - * *
      * Similar to `at_response_start`, except that this value includes the rows in
      * the current response.
      * 
* * float at_response_end = 2; - * * @return The atResponseEnd. */ @java.lang.Override @@ -9283,7 +7965,6 @@ public float getAtResponseEnd() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9295,7 +7976,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(atResponseStart_) != 0) { output.writeFloat(1, atResponseStart_); } @@ -9312,10 +7994,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(atResponseStart_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, atResponseStart_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, atResponseStart_); } if (java.lang.Float.floatToRawIntBits(atResponseEnd_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, atResponseEnd_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, atResponseEnd_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9325,18 +8009,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.Progress)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.Progress) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress other = (com.google.cloud.bigquery.storage.v1beta1.Storage.Progress) obj; if (java.lang.Float.floatToIntBits(getAtResponseStart()) - != java.lang.Float.floatToIntBits(other.getAtResponseStart())) return false; + != java.lang.Float.floatToIntBits( + other.getAtResponseStart())) return false; if (java.lang.Float.floatToIntBits(getAtResponseEnd()) - != java.lang.Float.floatToIntBits(other.getAtResponseEnd())) return false; + != java.lang.Float.floatToIntBits( + other.getAtResponseEnd())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9349,103 +8034,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AT_RESPONSE_START_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getAtResponseStart()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getAtResponseStart()); hash = (37 * hash) + AT_RESPONSE_END_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getAtResponseEnd()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getAtResponseEnd()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.Progress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -9454,34 +8134,36 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Progress} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Progress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.Progress) com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.class, com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -9492,14 +8174,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance(); } @@ -9514,17 +8195,13 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress result = - new com.google.cloud.bigquery.storage.v1beta1.Storage.Progress(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress result = new com.google.cloud.bigquery.storage.v1beta1.Storage.Progress(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Progress result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.atResponseStart_ = atResponseStart_; @@ -9538,41 +8215,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.Progress) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.Progress) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.Progress)other); } else { super.mergeFrom(other); return this; @@ -9580,9 +8254,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.Progress other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance()) return this; if (other.getAtResponseStart() != 0F) { setAtResponseStart(other.getAtResponseStart()); } @@ -9615,25 +8287,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: - { - atResponseStart_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 21: - { - atResponseEnd_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: { + atResponseStart_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 21: { + atResponseEnd_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -9643,13 +8312,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private float atResponseStart_; + private float atResponseStart_ ; /** - * - * *
        * The fraction of rows assigned to the stream that have been processed by the
        * server so far, not including the rows in the current response message.
@@ -9663,7 +8329,6 @@ public Builder mergeFrom(
        * 
* * float at_response_start = 1; - * * @return The atResponseStart. */ @java.lang.Override @@ -9671,8 +8336,6 @@ public float getAtResponseStart() { return atResponseStart_; } /** - * - * *
        * The fraction of rows assigned to the stream that have been processed by the
        * server so far, not including the rows in the current response message.
@@ -9686,20 +8349,17 @@ public float getAtResponseStart() {
        * 
* * float at_response_start = 1; - * * @param value The atResponseStart to set. * @return This builder for chaining. */ public Builder setAtResponseStart(float value) { - + atResponseStart_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The fraction of rows assigned to the stream that have been processed by the
        * server so far, not including the rows in the current response message.
@@ -9713,7 +8373,6 @@ public Builder setAtResponseStart(float value) {
        * 
* * float at_response_start = 1; - * * @return This builder for chaining. */ public Builder clearAtResponseStart() { @@ -9723,17 +8382,14 @@ public Builder clearAtResponseStart() { return this; } - private float atResponseEnd_; + private float atResponseEnd_ ; /** - * - * *
        * Similar to `at_response_start`, except that this value includes the rows in
        * the current response.
        * 
* * float at_response_end = 2; - * * @return The atResponseEnd. */ @java.lang.Override @@ -9741,35 +8397,29 @@ public float getAtResponseEnd() { return atResponseEnd_; } /** - * - * *
        * Similar to `at_response_start`, except that this value includes the rows in
        * the current response.
        * 
* * float at_response_end = 2; - * * @param value The atResponseEnd to set. * @return This builder for chaining. */ public Builder setAtResponseEnd(float value) { - + atResponseEnd_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Similar to `at_response_start`, except that this value includes the rows in
        * the current response.
        * 
* * float at_response_end = 2; - * * @return This builder for chaining. */ public Builder clearAtResponseEnd() { @@ -9778,7 +8428,6 @@ public Builder clearAtResponseEnd() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -9791,13 +8440,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.Progress) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.Progress) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.Progress - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.Progress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.Progress(); } @@ -9806,28 +8454,27 @@ public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Progress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -9842,86 +8489,77 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ThrottleStatusOrBuilder - extends + public interface ThrottleStatusOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * How much this connection is being throttled.
      * 0 is no throttling, 100 is completely throttled.
      * 
* * int32 throttle_percent = 1; - * * @return The throttlePercent. */ int getThrottlePercent(); } /** - * - * *
    * Information on if the current connection is being throttled.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ThrottleStatus} */ - public static final class ThrottleStatus extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ThrottleStatus extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) ThrottleStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ThrottleStatus.newBuilder() to construct. private ThrottleStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ThrottleStatus() {} + private ThrottleStatus() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ThrottleStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder.class); } public static final int THROTTLE_PERCENT_FIELD_NUMBER = 1; private int throttlePercent_ = 0; /** - * - * *
      * How much this connection is being throttled.
      * 0 is no throttling, 100 is completely throttled.
      * 
* * int32 throttle_percent = 1; - * * @return The throttlePercent. */ @java.lang.Override @@ -9930,7 +8568,6 @@ public int getThrottlePercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -9942,7 +8579,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (throttlePercent_ != 0) { output.writeInt32(1, throttlePercent_); } @@ -9956,7 +8594,8 @@ public int getSerializedSize() { size = 0; if (throttlePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, throttlePercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, throttlePercent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -9966,15 +8605,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus other = (com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus) obj; - if (getThrottlePercent() != other.getThrottlePercent()) return false; + if (getThrottlePercent() + != other.getThrottlePercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -9994,95 +8633,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -10092,42 +8723,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information on if the current connection is being throttled.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ThrottleStatus} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -10137,16 +8765,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance(); } @java.lang.Override @@ -10160,17 +8786,13 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus build() @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus result = - new com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus result = new com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.throttlePercent_ = throttlePercent_; @@ -10181,53 +8803,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance()) return this; if (other.getThrottlePercent() != 0) { setThrottlePercent(other.getThrottlePercent()); } @@ -10257,19 +8872,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - throttlePercent_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + throttlePercent_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -10279,20 +8892,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int throttlePercent_; + private int throttlePercent_ ; /** - * - * *
        * How much this connection is being throttled.
        * 0 is no throttling, 100 is completely throttled.
        * 
* * int32 throttle_percent = 1; - * * @return The throttlePercent. */ @java.lang.Override @@ -10300,35 +8909,29 @@ public int getThrottlePercent() { return throttlePercent_; } /** - * - * *
        * How much this connection is being throttled.
        * 0 is no throttling, 100 is completely throttled.
        * 
* * int32 throttle_percent = 1; - * * @param value The throttlePercent to set. * @return This builder for chaining. */ public Builder setThrottlePercent(int value) { - + throttlePercent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * How much this connection is being throttled.
        * 0 is no throttling, 100 is completely throttled.
        * 
* * int32 throttle_percent = 1; - * * @return This builder for chaining. */ public Builder clearThrottlePercent() { @@ -10337,7 +8940,6 @@ public Builder clearThrottlePercent() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10350,44 +8952,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThrottleStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThrottleStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -10399,44 +8998,35 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface ReadRowsResponseOrBuilder - extends + public interface ReadRowsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; - * * @return Whether the avroRows field is set. */ boolean hasAvroRows(); /** - * - * *
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; - * * @return The avroRows. */ com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getAvroRows(); /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -10446,44 +9036,33 @@ public interface ReadRowsResponseOrBuilder com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder getAvroRowsOrBuilder(); /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * * @return Whether the arrowRecordBatch field is set. */ boolean hasArrowRecordBatch(); /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * * @return The arrowRecordBatch. */ com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getArrowRecordBatch(); /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder - getArrowRecordBatchOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder(); /** - * - * *
      * Number of serialized rows in the rows block. This value is recorded here,
      * in addition to the row_count values in the output-specific messages in
@@ -10492,38 +9071,29 @@ public interface ReadRowsResponseOrBuilder
      * 
* * int64 row_count = 6; - * * @return The rowCount. */ long getRowCount(); /** - * - * *
      * Estimated stream statistics.
      * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; - * * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
      * Estimated stream statistics.
      * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; - * * @return The status. */ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getStatus(); /** - * - * *
      * Estimated stream statistics.
      * 
@@ -10533,34 +9103,26 @@ public interface ReadRowsResponseOrBuilder com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder getStatusOrBuilder(); /** - * - * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; - * * @return Whether the throttleStatus field is set. */ boolean hasThrottleStatus(); /** - * - * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; - * * @return The throttleStatus. */ com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getThrottleStatus(); /** - * - * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
@@ -10568,15 +9130,11 @@ public interface ReadRowsResponseOrBuilder
      *
      * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
      */
-    com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder
-        getThrottleStatusOrBuilder();
+    com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder getThrottleStatusOrBuilder();
 
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.RowsCase
-        getRowsCase();
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.RowsCase getRowsCase();
   }
   /**
-   *
-   *
    * 
    * Response from calling `ReadRows` may include row data, progress and
    * throttling information.
@@ -10584,56 +9142,52 @@ public interface ReadRowsResponseOrBuilder
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadRowsResponse}
    */
-  public static final class ReadRowsResponse extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class ReadRowsResponse extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse)
       ReadRowsResponseOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use ReadRowsResponse.newBuilder() to construct.
     private ReadRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private ReadRowsResponse() {}
+    private ReadRowsResponse() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new ReadRowsResponse();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage
-          .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage
-          .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.class,
-              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.Builder.class);
     }
 
     private int rowsCase_ = 0;
     private java.lang.Object rows_;
-
     public enum RowsCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       AVRO_ROWS(3),
       ARROW_RECORD_BATCH(4),
       ROWS_NOT_SET(0);
       private final int value;
-
       private RowsCase(int value) {
         this.value = value;
       }
@@ -10649,36 +9203,30 @@ public static RowsCase valueOf(int value) {
 
       public static RowsCase forNumber(int value) {
         switch (value) {
-          case 3:
-            return AVRO_ROWS;
-          case 4:
-            return ARROW_RECORD_BATCH;
-          case 0:
-            return ROWS_NOT_SET;
-          default:
-            return null;
+          case 3: return AVRO_ROWS;
+          case 4: return ARROW_RECORD_BATCH;
+          case 0: return ROWS_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public RowsCase getRowsCase() {
-      return RowsCase.forNumber(rowsCase_);
+    public RowsCase
+    getRowsCase() {
+      return RowsCase.forNumber(
+          rowsCase_);
     }
 
     public static final int AVRO_ROWS_FIELD_NUMBER = 3;
     /**
-     *
-     *
      * 
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; - * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -10686,26 +9234,21 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; - * * @return The avroRows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getAvroRows() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance(); } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -10713,24 +9256,20 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getAvroRows( * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder - getAvroRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder getAvroRowsOrBuilder() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance(); } public static final int ARROW_RECORD_BATCH_FIELD_NUMBER = 4; /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -10738,28 +9277,21 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * * @return The arrowRecordBatch. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - getArrowRecordBatch() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getArrowRecordBatch() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -10767,20 +9299,16 @@ public boolean hasArrowRecordBatch() { * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder - getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); } public static final int ROW_COUNT_FIELD_NUMBER = 6; private long rowCount_ = 0L; /** - * - * *
      * Number of serialized rows in the rows block. This value is recorded here,
      * in addition to the row_count values in the output-specific messages in
@@ -10789,7 +9317,6 @@ public boolean hasArrowRecordBatch() {
      * 
* * int64 row_count = 6; - * * @return The rowCount. */ @java.lang.Override @@ -10800,14 +9327,11 @@ public long getRowCount() { public static final int STATUS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus status_; /** - * - * *
      * Estimated stream statistics.
      * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; - * * @return Whether the status field is set. */ @java.lang.Override @@ -10815,25 +9339,18 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
      * Estimated stream statistics.
      * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; - * * @return The status. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getStatus() { - return status_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() : status_; } /** - * - * *
      * Estimated stream statistics.
      * 
@@ -10841,25 +9358,19 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getStatus( * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder - getStatusOrBuilder() { - return status_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() - : status_; + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() : status_; } public static final int THROTTLE_STATUS_FIELD_NUMBER = 5; private com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus throttleStatus_; /** - * - * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; - * * @return Whether the throttleStatus field is set. */ @java.lang.Override @@ -10867,26 +9378,19 @@ public boolean hasThrottleStatus() { return throttleStatus_ != null; } /** - * - * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; - * * @return The throttleStatus. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getThrottleStatus() { - return throttleStatus_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance() - : throttleStatus_; + return throttleStatus_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance() : throttleStatus_; } /** - * - * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
@@ -10895,15 +9399,11 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getThrot
      * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
      */
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder
-        getThrottleStatusOrBuilder() {
-      return throttleStatus_ == null
-          ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance()
-          : throttleStatus_;
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder getThrottleStatusOrBuilder() {
+      return throttleStatus_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance() : throttleStatus_;
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -10915,17 +9415,16 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (status_ != null) {
         output.writeMessage(2, getStatus());
       }
       if (rowsCase_ == 3) {
-        output.writeMessage(
-            3, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_);
+        output.writeMessage(3, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_);
       }
       if (rowsCase_ == 4) {
-        output.writeMessage(
-            4, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_);
+        output.writeMessage(4, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_);
       }
       if (throttleStatus_ != null) {
         output.writeMessage(5, getThrottleStatus());
@@ -10943,23 +9442,24 @@ public int getSerializedSize() {
 
       size = 0;
       if (status_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getStatus());
       }
       if (rowsCase_ == 3) {
-        size +=
-            com.google.protobuf.CodedOutputStream.computeMessageSize(
-                3, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(3, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_);
       }
       if (rowsCase_ == 4) {
-        size +=
-            com.google.protobuf.CodedOutputStream.computeMessageSize(
-                4, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_);
       }
       if (throttleStatus_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getThrottleStatus());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(5, getThrottleStatus());
       }
       if (rowCount_ != 0L) {
-        size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, rowCount_);
+        size += com.google.protobuf.CodedOutputStream
+          .computeInt64Size(6, rowCount_);
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -10969,30 +9469,34 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
       if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse other =
-          (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse) obj;
+      com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse other = (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse) obj;
 
-      if (getRowCount() != other.getRowCount()) return false;
+      if (getRowCount()
+          != other.getRowCount()) return false;
       if (hasStatus() != other.hasStatus()) return false;
       if (hasStatus()) {
-        if (!getStatus().equals(other.getStatus())) return false;
+        if (!getStatus()
+            .equals(other.getStatus())) return false;
       }
       if (hasThrottleStatus() != other.hasThrottleStatus()) return false;
       if (hasThrottleStatus()) {
-        if (!getThrottleStatus().equals(other.getThrottleStatus())) return false;
+        if (!getThrottleStatus()
+            .equals(other.getThrottleStatus())) return false;
       }
       if (!getRowsCase().equals(other.getRowsCase())) return false;
       switch (rowsCase_) {
         case 3:
-          if (!getAvroRows().equals(other.getAvroRows())) return false;
+          if (!getAvroRows()
+              .equals(other.getAvroRows())) return false;
           break;
         case 4:
-          if (!getArrowRecordBatch().equals(other.getArrowRecordBatch())) return false;
+          if (!getArrowRecordBatch()
+              .equals(other.getArrowRecordBatch())) return false;
           break;
         case 0:
         default:
@@ -11009,7 +9513,8 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+          getRowCount());
       if (hasStatus()) {
         hash = (37 * hash) + STATUS_FIELD_NUMBER;
         hash = (53 * hash) + getStatus().hashCode();
@@ -11036,95 +9541,87 @@ public int hashCode() {
     }
 
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse prototype) {
+    public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -11134,8 +9631,6 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Response from calling `ReadRows` may include row data, progress and
      * throttling information.
@@ -11143,34 +9638,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadRowsResponse}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse)
         com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage
-            .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage
-            .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable
+        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.class,
-                com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.Builder.class);
+                com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -11198,16 +9692,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage
-            .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
-          getDefaultInstanceForType() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
-            .getDefaultInstance();
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse getDefaultInstanceForType() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.getDefaultInstance();
       }
 
       @java.lang.Override
@@ -11221,39 +9713,39 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse build(
 
       @java.lang.Override
       public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse buildPartial() {
-        com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result =
-            new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result) {
+      private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.rowCount_ = rowCount_;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
+          result.status_ = statusBuilder_ == null
+              ? status_
+              : statusBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.throttleStatus_ =
-              throttleStatusBuilder_ == null ? throttleStatus_ : throttleStatusBuilder_.build();
+          result.throttleStatus_ = throttleStatusBuilder_ == null
+              ? throttleStatus_
+              : throttleStatusBuilder_.build();
         }
       }
 
-      private void buildPartialOneofs(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result) {
+      private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result) {
         result.rowsCase_ = rowsCase_;
         result.rows_ = this.rows_;
-        if (rowsCase_ == 3 && avroRowsBuilder_ != null) {
+        if (rowsCase_ == 3 &&
+            avroRowsBuilder_ != null) {
           result.rows_ = avroRowsBuilder_.build();
         }
-        if (rowsCase_ == 4 && arrowRecordBatchBuilder_ != null) {
+        if (rowsCase_ == 4 &&
+            arrowRecordBatchBuilder_ != null) {
           result.rows_ = arrowRecordBatchBuilder_.build();
         }
       }
@@ -11262,53 +9754,46 @@ private void buildPartialOneofs(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse) {
-          return mergeFrom(
-              (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse) other);
+          return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse other) {
-        if (other
-            == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse other) {
+        if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.getDefaultInstance()) return this;
         if (other.getRowCount() != 0L) {
           setRowCount(other.getRowCount());
         }
@@ -11319,20 +9804,17 @@ public Builder mergeFrom(
           mergeThrottleStatus(other.getThrottleStatus());
         }
         switch (other.getRowsCase()) {
-          case AVRO_ROWS:
-            {
-              mergeAvroRows(other.getAvroRows());
-              break;
-            }
-          case ARROW_RECORD_BATCH:
-            {
-              mergeArrowRecordBatch(other.getArrowRecordBatch());
-              break;
-            }
-          case ROWS_NOT_SET:
-            {
-              break;
-            }
+          case AVRO_ROWS: {
+            mergeAvroRows(other.getAvroRows());
+            break;
+          }
+          case ARROW_RECORD_BATCH: {
+            mergeArrowRecordBatch(other.getArrowRecordBatch());
+            break;
+          }
+          case ROWS_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -11360,45 +9842,45 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 18:
-                {
-                  input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000008;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  input.readMessage(getAvroRowsFieldBuilder().getBuilder(), extensionRegistry);
-                  rowsCase_ = 3;
-                  break;
-                } // case 26
-              case 34:
-                {
-                  input.readMessage(
-                      getArrowRecordBatchFieldBuilder().getBuilder(), extensionRegistry);
-                  rowsCase_ = 4;
-                  break;
-                } // case 34
-              case 42:
-                {
-                  input.readMessage(
-                      getThrottleStatusFieldBuilder().getBuilder(), extensionRegistry);
-                  bitField0_ |= 0x00000010;
-                  break;
-                } // case 42
-              case 48:
-                {
-                  rowCount_ = input.readInt64();
-                  bitField0_ |= 0x00000004;
-                  break;
-                } // case 48
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 18: {
+                input.readMessage(
+                    getStatusFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 18
+              case 26: {
+                input.readMessage(
+                    getAvroRowsFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                rowsCase_ = 3;
+                break;
+              } // case 26
+              case 34: {
+                input.readMessage(
+                    getArrowRecordBatchFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                rowsCase_ = 4;
+                break;
+              } // case 34
+              case 42: {
+                input.readMessage(
+                    getThrottleStatusFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+              case 48: {
+                rowCount_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 48
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -11408,12 +9890,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int rowsCase_ = 0;
       private java.lang.Object rows_;
-
-      public RowsCase getRowsCase() {
-        return RowsCase.forNumber(rowsCase_);
+      public RowsCase
+          getRowsCase() {
+        return RowsCase.forNumber(
+            rowsCase_);
       }
 
       public Builder clearRows() {
@@ -11426,19 +9908,13 @@ public Builder clearRows() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows,
-              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder,
-              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder>
-          avroRowsBuilder_;
+          com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder> avroRowsBuilder_;
       /**
-       *
-       *
        * 
        * Serialized row data in AVRO format.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; - * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -11446,14 +9922,11 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** - * - * *
        * Serialized row data in AVRO format.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; - * * @return The avroRows. */ @java.lang.Override @@ -11471,16 +9944,13 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getAvroRows( } } /** - * - * *
        * Serialized row data in AVRO format.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ - public Builder setAvroRows( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows value) { + public Builder setAvroRows(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows value) { if (avroRowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11494,8 +9964,6 @@ public Builder setAvroRows( return this; } /** - * - * *
        * Serialized row data in AVRO format.
        * 
@@ -11514,26 +9982,18 @@ public Builder setAvroRows( return this; } /** - * - * *
        * Serialized row data in AVRO format.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ - public Builder mergeAvroRows( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows value) { + public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows value) { if (avroRowsBuilder_ == null) { - if (rowsCase_ == 3 - && rows_ - != com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows - .getDefaultInstance()) { - rows_ = - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.newBuilder( - (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_) - .mergeFrom(value) - .buildPartial(); + if (rowsCase_ == 3 && + rows_ != com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance()) { + rows_ = com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.newBuilder((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_) + .mergeFrom(value).buildPartial(); } else { rows_ = value; } @@ -11549,8 +10009,6 @@ public Builder mergeAvroRows( return this; } /** - * - * *
        * Serialized row data in AVRO format.
        * 
@@ -11574,21 +10032,16 @@ public Builder clearAvroRows() { return this; } /** - * - * *
        * Serialized row data in AVRO format.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder - getAvroRowsBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder getAvroRowsBuilder() { return getAvroRowsFieldBuilder().getBuilder(); } /** - * - * *
        * Serialized row data in AVRO format.
        * 
@@ -11596,8 +10049,7 @@ public Builder clearAvroRows() { * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder - getAvroRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder getAvroRowsOrBuilder() { if ((rowsCase_ == 3) && (avroRowsBuilder_ != null)) { return avroRowsBuilder_.getMessageOrBuilder(); } else { @@ -11608,8 +10060,6 @@ public Builder clearAvroRows() { } } /** - * - * *
        * Serialized row data in AVRO format.
        * 
@@ -11617,20 +10067,14 @@ public Builder clearAvroRows() { * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder> getAvroRowsFieldBuilder() { if (avroRowsBuilder_ == null) { if (!(rowsCase_ == 3)) { - rows_ = - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance(); + rows_ = com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance(); } - avroRowsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder, - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder>( + avroRowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder>( (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_, getParentForChildren(), isClean()); @@ -11642,20 +10086,13 @@ public Builder clearAvroRows() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder> - arrowRecordBatchBuilder_; + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder> arrowRecordBatchBuilder_; /** - * - * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * - * + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -11663,46 +10100,35 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** - * - * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * - * + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; * @return The arrowRecordBatch. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - getArrowRecordBatch() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getArrowRecordBatch() { if (arrowRecordBatchBuilder_ == null) { if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); } else { if (rowsCase_ == 4) { return arrowRecordBatchBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); } } /** - * - * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ - public Builder setArrowRecordBatch( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch value) { + public Builder setArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11716,18 +10142,14 @@ public Builder setArrowRecordBatch( return this; } /** - * - * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ public Builder setArrowRecordBatch( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder builderForValue) { if (arrowRecordBatchBuilder_ == null) { rows_ = builderForValue.build(); onChanged(); @@ -11738,28 +10160,18 @@ public Builder setArrowRecordBatch( return this; } /** - * - * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ - public Builder mergeArrowRecordBatch( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch value) { + public Builder mergeArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { - if (rowsCase_ == 4 - && rows_ - != com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - .getDefaultInstance()) { - rows_ = - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.newBuilder( - (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) - rows_) - .mergeFrom(value) - .buildPartial(); + if (rowsCase_ == 4 && + rows_ != com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance()) { + rows_ = com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.newBuilder((com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_) + .mergeFrom(value).buildPartial(); } else { rows_ = value; } @@ -11775,14 +10187,11 @@ public Builder mergeArrowRecordBatch( return this; } /** - * - * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ public Builder clearArrowRecordBatch() { if (arrowRecordBatchBuilder_ == null) { @@ -11801,68 +10210,49 @@ public Builder clearArrowRecordBatch() { return this; } /** - * - * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder - getArrowRecordBatchBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder getArrowRecordBatchBuilder() { return getArrowRecordBatchFieldBuilder().getBuilder(); } /** - * - * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder - getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { if ((rowsCase_ == 4) && (arrowRecordBatchBuilder_ != null)) { return arrowRecordBatchBuilder_.getMessageOrBuilder(); } else { if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); } } /** - * - * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; - * + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder> getArrowRecordBatchFieldBuilder() { if (arrowRecordBatchBuilder_ == null) { if (!(rowsCase_ == 4)) { - rows_ = - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch - .getDefaultInstance(); + rows_ = com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); } - arrowRecordBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder>( + arrowRecordBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder>( (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_, getParentForChildren(), isClean()); @@ -11873,10 +10263,8 @@ public Builder clearArrowRecordBatch() { return arrowRecordBatchBuilder_; } - private long rowCount_; + private long rowCount_ ; /** - * - * *
        * Number of serialized rows in the rows block. This value is recorded here,
        * in addition to the row_count values in the output-specific messages in
@@ -11885,7 +10273,6 @@ public Builder clearArrowRecordBatch() {
        * 
* * int64 row_count = 6; - * * @return The rowCount. */ @java.lang.Override @@ -11893,8 +10280,6 @@ public long getRowCount() { return rowCount_; } /** - * - * *
        * Number of serialized rows in the rows block. This value is recorded here,
        * in addition to the row_count values in the output-specific messages in
@@ -11903,20 +10288,17 @@ public long getRowCount() {
        * 
* * int64 row_count = 6; - * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * Number of serialized rows in the rows block. This value is recorded here,
        * in addition to the row_count values in the output-specific messages in
@@ -11925,7 +10307,6 @@ public Builder setRowCount(long value) {
        * 
* * int64 row_count = 6; - * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -11937,55 +10318,41 @@ public Builder clearRowCount() { private com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder> - statusBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder> statusBuilder_; /** - * - * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; - * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; - * * @return The status. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() - : status_; + return status_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() : status_; } else { return statusBuilder_.getMessage(); } } /** - * - * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ - public Builder setStatus( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus value) { + public Builder setStatus(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11999,8 +10366,6 @@ public Builder setStatus( return this; } /** - * - * *
        * Estimated stream statistics.
        * 
@@ -12019,22 +10384,17 @@ public Builder setStatus( return this; } /** - * - * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ - public Builder mergeStatus( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus value) { + public Builder mergeStatus(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && status_ != null - && status_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus - .getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + status_ != null && + status_ != com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -12047,8 +10407,6 @@ public Builder mergeStatus( return this; } /** - * - * *
        * Estimated stream statistics.
        * 
@@ -12066,42 +10424,33 @@ public Builder clearStatus() { return this; } /** - * - * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder - getStatusBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder getStatusBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** - * - * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder - getStatusOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() - : status_; + return status_ == null ? + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() : status_; } } /** - * - * *
        * Estimated stream statistics.
        * 
@@ -12109,17 +10458,14 @@ public Builder clearStatus() { * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; @@ -12127,50 +10473,36 @@ public Builder clearStatus() { private com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus throttleStatus_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus, - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder> - throttleStatusBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder> throttleStatusBuilder_; /** - * - * *
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; - * * @return Whether the throttleStatus field is set. */ public boolean hasThrottleStatus() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; - * * @return The throttleStatus. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getThrottleStatus() { if (throttleStatusBuilder_ == null) { - return throttleStatus_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus - .getDefaultInstance() - : throttleStatus_; + return throttleStatus_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance() : throttleStatus_; } else { return throttleStatusBuilder_.getMessage(); } } /** - * - * *
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -12178,8 +10510,7 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getThrot
        *
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
-      public Builder setThrottleStatus(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus value) {
+      public Builder setThrottleStatus(com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus value) {
         if (throttleStatusBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -12193,8 +10524,6 @@ public Builder setThrottleStatus(
         return this;
       }
       /**
-       *
-       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -12203,8 +10532,7 @@ public Builder setThrottleStatus(
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
       public Builder setThrottleStatus(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder
-              builderForValue) {
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder builderForValue) {
         if (throttleStatusBuilder_ == null) {
           throttleStatus_ = builderForValue.build();
         } else {
@@ -12215,8 +10543,6 @@ public Builder setThrottleStatus(
         return this;
       }
       /**
-       *
-       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -12224,14 +10550,11 @@ public Builder setThrottleStatus(
        *
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
-      public Builder mergeThrottleStatus(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus value) {
+      public Builder mergeThrottleStatus(com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus value) {
         if (throttleStatusBuilder_ == null) {
-          if (((bitField0_ & 0x00000010) != 0)
-              && throttleStatus_ != null
-              && throttleStatus_
-                  != com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus
-                      .getDefaultInstance()) {
+          if (((bitField0_ & 0x00000010) != 0) &&
+            throttleStatus_ != null &&
+            throttleStatus_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance()) {
             getThrottleStatusBuilder().mergeFrom(value);
           } else {
             throttleStatus_ = value;
@@ -12244,8 +10567,6 @@ public Builder mergeThrottleStatus(
         return this;
       }
       /**
-       *
-       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -12264,8 +10585,6 @@ public Builder clearThrottleStatus() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -12273,15 +10592,12 @@ public Builder clearThrottleStatus() {
        *
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder
-          getThrottleStatusBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder getThrottleStatusBuilder() {
         bitField0_ |= 0x00000010;
         onChanged();
         return getThrottleStatusFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -12289,20 +10605,15 @@ public Builder clearThrottleStatus() {
        *
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder
-          getThrottleStatusOrBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder getThrottleStatusOrBuilder() {
         if (throttleStatusBuilder_ != null) {
           return throttleStatusBuilder_.getMessageOrBuilder();
         } else {
-          return throttleStatus_ == null
-              ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus
-                  .getDefaultInstance()
-              : throttleStatus_;
+          return throttleStatus_ == null ?
+              com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance() : throttleStatus_;
         }
       }
       /**
-       *
-       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -12311,22 +10622,18 @@ public Builder clearThrottleStatus() {
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus,
-              com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder,
-              com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder>
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder> 
           getThrottleStatusFieldBuilder() {
         if (throttleStatusBuilder_ == null) {
-          throttleStatusBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus,
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder,
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder>(
-                  getThrottleStatus(), getParentForChildren(), isClean());
+          throttleStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder>(
+                  getThrottleStatus(),
+                  getParentForChildren(),
+                  isClean());
           throttleStatus_ = null;
         }
         return throttleStatusBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -12339,44 +10646,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse)
-    private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse DEFAULT_INSTANCE;
     static {
       DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse();
     }
 
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
-        getDefaultInstance() {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public ReadRowsResponse parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public ReadRowsResponse parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -12388,64 +10692,47 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
-  public interface BatchCreateReadSessionStreamsRequestOrBuilder
-      extends
+  public interface BatchCreateReadSessionStreamsRequestOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the session field is set. */ boolean hasSession(); /** - * - * *
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The session. */ com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getSession(); /** - * - * *
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder getSessionOrBuilder(); /** - * - * *
      * Required. Number of new streams requested. Must be positive.
      * Number of added streams may be less than this, see CreateReadSessionRequest
@@ -12453,78 +10740,64 @@ public interface BatchCreateReadSessionStreamsRequestOrBuilder
      * 
* * int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The requestedStreams. */ int getRequestedStreams(); } /** - * - * *
    * Information needed to request additional streams for an established read
    * session.
    * 
* - * Protobuf type {@code - * google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest} + * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest} */ - public static final class BatchCreateReadSessionStreamsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BatchCreateReadSessionStreamsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest) BatchCreateReadSessionStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchCreateReadSessionStreamsRequest.newBuilder() to construct. - private BatchCreateReadSessionStreamsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCreateReadSessionStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BatchCreateReadSessionStreamsRequest() {} + private BatchCreateReadSessionStreamsRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchCreateReadSessionStreamsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - .class, - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - .Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.Builder.class); } public static final int SESSION_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession session_; /** - * - * *
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the session field is set. */ @java.lang.Override @@ -12532,50 +10805,34 @@ public boolean hasSession() { return session_ != null; } /** - * - * *
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The session. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getSession() { - return session_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() - : session_; + return session_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() : session_; } /** - * - * *
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder - getSessionOrBuilder() { - return session_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() - : session_; + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder getSessionOrBuilder() { + return session_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() : session_; } public static final int REQUESTED_STREAMS_FIELD_NUMBER = 2; private int requestedStreams_ = 0; /** - * - * *
      * Required. Number of new streams requested. Must be positive.
      * Number of added streams may be less than this, see CreateReadSessionRequest
@@ -12583,7 +10840,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getSession(
      * 
* * int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The requestedStreams. */ @java.lang.Override @@ -12592,7 +10848,6 @@ public int getRequestedStreams() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12604,7 +10859,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (session_ != null) { output.writeMessage(1, getSession()); } @@ -12621,10 +10877,12 @@ public int getSerializedSize() { size = 0; if (session_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSession()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSession()); } if (requestedStreams_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, requestedStreams_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, requestedStreams_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12634,22 +10892,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest) - obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest other = (com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest) obj; if (hasSession() != other.hasSession()) return false; if (hasSession()) { - if (!getSession().equals(other.getSession())) return false; + if (!getSession() + .equals(other.getSession())) return false; } - if (getRequestedStreams() != other.getRequestedStreams()) return false; + if (getRequestedStreams() + != other.getRequestedStreams()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -12672,114 +10928,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -12789,47 +11019,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Information needed to request additional streams for an established read
      * session.
      * 
* - * Protobuf type {@code - * google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest} + * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest) - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest.class, - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -12844,23 +11067,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - build() { - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - result = buildPartial(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest build() { + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -12868,25 +11087,19 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - result = - new com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest result = new com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.session_ = sessionBuilder_ == null ? session_ : sessionBuilder_.build(); + result.session_ = sessionBuilder_ == null + ? session_ + : sessionBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.requestedStreams_ = requestedStreams_; @@ -12897,59 +11110,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest) - other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.getDefaultInstance()) return this; if (other.hasSession()) { mergeSession(other.getSession()); } @@ -12982,25 +11182,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSessionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - requestedStreams_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSessionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + requestedStreams_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -13010,69 +11209,48 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession session_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder> - sessionBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder> sessionBuilder_; /** - * - * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the session field is set. */ public boolean hasSession() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The session. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getSession() { if (sessionBuilder_ == null) { - return session_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() - : session_; + return session_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() : session_; } else { return sessionBuilder_.getMessage(); } } /** - * - * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSession( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession value) { + public Builder setSession(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession value) { if (sessionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13086,16 +11264,12 @@ public Builder setSession( return this; } /** - * - * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSession( com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder builderForValue) { @@ -13109,25 +11283,18 @@ public Builder setSession( return this; } /** - * - * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeSession( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession value) { + public Builder mergeSession(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession value) { if (sessionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && session_ != null - && session_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + session_ != null && + session_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance()) { getSessionBuilder().mergeFrom(value); } else { session_ = value; @@ -13140,16 +11307,12 @@ public Builder mergeSession( return this; } /** - * - * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSession() { bitField0_ = (bitField0_ & ~0x00000001); @@ -13162,78 +11325,58 @@ public Builder clearSession() { return this; } /** - * - * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder - getSessionBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder getSessionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSessionFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder - getSessionOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder getSessionOrBuilder() { if (sessionBuilder_ != null) { return sessionBuilder_.getMessageOrBuilder(); } else { - return session_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() - : session_; + return session_ == null ? + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() : session_; } } /** - * - * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder> getSessionFieldBuilder() { if (sessionBuilder_ == null) { - sessionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder>( - getSession(), getParentForChildren(), isClean()); + sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder>( + getSession(), + getParentForChildren(), + isClean()); session_ = null; } return sessionBuilder_; } - private int requestedStreams_; + private int requestedStreams_ ; /** - * - * *
        * Required. Number of new streams requested. Must be positive.
        * Number of added streams may be less than this, see CreateReadSessionRequest
@@ -13241,7 +11384,6 @@ public Builder clearSession() {
        * 
* * int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The requestedStreams. */ @java.lang.Override @@ -13249,8 +11391,6 @@ public int getRequestedStreams() { return requestedStreams_; } /** - * - * *
        * Required. Number of new streams requested. Must be positive.
        * Number of added streams may be less than this, see CreateReadSessionRequest
@@ -13258,20 +11398,17 @@ public int getRequestedStreams() {
        * 
* * int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The requestedStreams to set. * @return This builder for chaining. */ public Builder setRequestedStreams(int value) { - + requestedStreams_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Required. Number of new streams requested. Must be positive.
        * Number of added streams may be less than this, see CreateReadSessionRequest
@@ -13279,7 +11416,6 @@ public Builder setRequestedStreams(int value) {
        * 
* * int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRequestedStreams() { @@ -13288,7 +11424,6 @@ public Builder clearRequestedStreams() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13301,48 +11436,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateReadSessionStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateReadSessionStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13354,30 +11482,26 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BatchCreateReadSessionStreamsResponseOrBuilder - extends + public interface BatchCreateReadSessionStreamsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Newly added streams.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ - java.util.List getStreamsList(); + java.util.List + getStreamsList(); /** - * - * *
      * Newly added streams.
      * 
@@ -13386,8 +11510,6 @@ public interface BatchCreateReadSessionStreamsResponseOrBuilder */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int index); /** - * - * *
      * Newly added streams.
      * 
@@ -13396,19 +11518,15 @@ public interface BatchCreateReadSessionStreamsResponseOrBuilder */ int getStreamsCount(); /** - * - * *
      * Newly added streams.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** - * - * *
      * Newly added streams.
      * 
@@ -13419,67 +11537,55 @@ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamsOrBu int index); } /** - * - * *
    * The response from `BatchCreateReadSessionStreams` returns the stream
    * identifiers for the newly created streams.
    * 
* - * Protobuf type {@code - * google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse} + * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse} */ - public static final class BatchCreateReadSessionStreamsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BatchCreateReadSessionStreamsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) BatchCreateReadSessionStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchCreateReadSessionStreamsResponse.newBuilder() to construct. - private BatchCreateReadSessionStreamsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCreateReadSessionStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchCreateReadSessionStreamsResponse() { streams_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchCreateReadSessionStreamsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse.class, - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.Builder.class); } public static final int STREAMS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List streams_; /** - * - * *
      * Newly added streams.
      * 
@@ -13487,13 +11593,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ @java.lang.Override - public java.util.List - getStreamsList() { + public java.util.List getStreamsList() { return streams_; } /** - * - * *
      * Newly added streams.
      * 
@@ -13501,14 +11604,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + public java.util.List getStreamsOrBuilderList() { return streams_; } /** - * - * *
      * Newly added streams.
      * 
@@ -13520,8 +11620,6 @@ public int getStreamsCount() { return streams_.size(); } /** - * - * *
      * Newly added streams.
      * 
@@ -13533,8 +11631,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int i return streams_.get(index); } /** - * - * *
      * Newly added streams.
      * 
@@ -13548,7 +11644,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13560,7 +11655,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < streams_.size(); i++) { output.writeMessage(1, streams_.get(i)); } @@ -13574,7 +11670,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, streams_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -13584,21 +11681,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse)) { + if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - other = - (com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse) - obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse other = (com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse) obj; - if (!getStreamsList().equals(other.getStreamsList())) return false; + if (!getStreamsList() + .equals(other.getStreamsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13619,114 +11710,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -13736,47 +11801,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * The response from `BatchCreateReadSessionStreams` returns the stream
      * identifiers for the newly created streams.
      * 
* - * Protobuf type {@code - * google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse} + * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse.class, - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -13792,23 +11850,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - build() { - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - result = buildPartial(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse build() { + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -13816,23 +11870,15 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - result = - new com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse(this); + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse result = new com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -13844,9 +11890,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse result) { int from_bitField0_ = bitField0_; } @@ -13854,59 +11898,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse) - other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.getDefaultInstance()) return this; if (streamsBuilder_ == null) { if (!other.streams_.isEmpty()) { if (streams_.isEmpty()) { @@ -13925,10 +11956,9 @@ public Builder mergeFrom( streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000001); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStreamsFieldBuilder() - : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamsFieldBuilder() : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -13960,27 +11990,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.parser(), - extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -13990,38 +12018,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List streams_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - streams_ = - new java.util.ArrayList( - streams_); + streams_ = new java.util.ArrayList(streams_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> - streamsBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> streamsBuilder_; /** - * - * *
        * Newly added streams.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ - public java.util.List - getStreamsList() { + public java.util.List getStreamsList() { if (streamsBuilder_ == null) { return java.util.Collections.unmodifiableList(streams_); } else { @@ -14029,8 +12047,6 @@ private void ensureStreamsIsMutable() { } } /** - * - * *
        * Newly added streams.
        * 
@@ -14045,8 +12061,6 @@ public int getStreamsCount() { } } /** - * - * *
        * Newly added streams.
        * 
@@ -14061,8 +12075,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int i } } /** - * - * *
        * Newly added streams.
        * 
@@ -14084,8 +12096,6 @@ public Builder setStreams( return this; } /** - * - * *
        * Newly added streams.
        * 
@@ -14093,8 +12103,7 @@ public Builder setStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ public Builder setStreams( - int index, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { + int index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.set(index, builderForValue.build()); @@ -14105,8 +12114,6 @@ public Builder setStreams( return this; } /** - * - * *
        * Newly added streams.
        * 
@@ -14127,8 +12134,6 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1beta1.Storage.Stre return this; } /** - * - * *
        * Newly added streams.
        * 
@@ -14150,8 +12155,6 @@ public Builder addStreams( return this; } /** - * - * *
        * Newly added streams.
        * 
@@ -14170,8 +12173,6 @@ public Builder addStreams( return this; } /** - * - * *
        * Newly added streams.
        * 
@@ -14179,8 +12180,7 @@ public Builder addStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ public Builder addStreams( - int index, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { + int index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.add(index, builderForValue.build()); @@ -14191,8 +12191,6 @@ public Builder addStreams( return this; } /** - * - * *
        * Newly added streams.
        * 
@@ -14200,11 +12198,11 @@ public Builder addStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ public Builder addAllStreams( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -14212,8 +12210,6 @@ public Builder addAllStreams( return this; } /** - * - * *
        * Newly added streams.
        * 
@@ -14231,8 +12227,6 @@ public Builder clearStreams() { return this; } /** - * - * *
        * Newly added streams.
        * 
@@ -14250,8 +12244,6 @@ public Builder removeStreams(int index) { return this; } /** - * - * *
        * Newly added streams.
        * 
@@ -14263,8 +12255,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea return getStreamsFieldBuilder().getBuilder(index); } /** - * - * *
        * Newly added streams.
        * 
@@ -14274,23 +12264,19 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamsOrBuilder( int index) { if (streamsBuilder_ == null) { - return streams_.get(index); - } else { + return streams_.get(index); } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Newly added streams.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ - public java.util.List< - ? extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -14298,8 +12284,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre } } /** - * - * *
        * Newly added streams.
        * 
@@ -14307,13 +12291,10 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); + return getStreamsFieldBuilder().addBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); } /** - * - * *
        * Newly added streams.
        * 
@@ -14322,42 +12303,34 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStrea */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStreamsBuilder( int index) { - return getStreamsFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); + return getStreamsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); } /** - * - * *
        * Newly added streams.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( - streams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( + streams_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); streams_ = null; } return streamsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14370,48 +12343,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage - .BatchCreateReadSessionStreamsResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateReadSessionStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateReadSessionStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -14423,119 +12389,95 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface FinalizeStreamRequestOrBuilder - extends + public interface FinalizeStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Stream to finalize.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ boolean hasStream(); /** - * - * *
      * Required. Stream to finalize.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream(); /** - * - * *
      * Required. Stream to finalize.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder(); } /** - * - * *
    * Request information for invoking `FinalizeStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest} */ - public static final class FinalizeStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class FinalizeStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) FinalizeStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FinalizeStreamRequest.newBuilder() to construct. private FinalizeStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FinalizeStreamRequest() {} + private FinalizeStreamRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FinalizeStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.Builder.class); } public static final int STREAM_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream stream_; /** - * - * *
      * Required. Stream to finalize.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ @java.lang.Override @@ -14543,44 +12485,30 @@ public boolean hasStream() { return stream_ != null; } /** - * - * *
      * Required. Stream to finalize.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream() { - return stream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; } /** - * - * *
      * Required. Stream to finalize.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder() { - return stream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -14592,7 +12520,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (stream_ != null) { output.writeMessage(2, getStream()); } @@ -14606,7 +12535,8 @@ public int getSerializedSize() { size = 0; if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStream()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -14616,18 +12546,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest other = (com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) obj; if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream().equals(other.getStream())) return false; + if (!getStream() + .equals(other.getStream())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -14650,95 +12579,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -14748,43 +12669,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request information for invoking `FinalizeStream`.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -14798,22 +12715,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest build() { - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -14821,22 +12735,19 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest b } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest - buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result = - new com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result = new com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null + ? stream_ + : streamBuilder_.build(); } } @@ -14844,54 +12755,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.getDefaultInstance()) return this; if (other.hasStream()) { mergeStream(other.getStream()); } @@ -14921,19 +12824,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -14943,63 +12846,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> - streamBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> streamBuilder_; /** - * - * *
        * Required. Stream to finalize.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Required. Stream to finalize.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; } else { return streamBuilder_.getMessage(); } } /** - * - * *
        * Required. Stream to finalize.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { if (streamBuilder_ == null) { @@ -15015,15 +12898,11 @@ public Builder setStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Strea return this; } /** - * - * *
        * Required. Stream to finalize.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStream( com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { @@ -15037,23 +12916,17 @@ public Builder setStream( return this; } /** - * - * *
        * Required. Stream to finalize.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && stream_ != null - && stream_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + stream_ != null && + stream_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -15066,15 +12939,11 @@ public Builder mergeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Str return this; } /** - * - * *
        * Required. Stream to finalize.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000001); @@ -15087,15 +12956,11 @@ public Builder clearStream() { return this; } /** - * - * *
        * Required. Stream to finalize.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStreamBuilder() { bitField0_ |= 0x00000001; @@ -15103,54 +12968,40 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea return getStreamFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Stream to finalize.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder - getStreamOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; } } /** - * - * *
        * Required. Stream to finalize.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( - getStream(), getParentForChildren(), isClean()); + streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( + getStream(), + getParentForChildren(), + isClean()); stream_ = null; } return streamBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15163,45 +13014,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FinalizeStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinalizeStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -15213,61 +13060,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SplitReadStreamRequestOrBuilder - extends + public interface SplitReadStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. Stream to split.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the originalStream field is set. */ boolean hasOriginalStream(); /** - * - * *
      * Required. Stream to split.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The originalStream. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getOriginalStream(); /** - * - * *
      * Required. Stream to split.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getOriginalStreamOrBuilder(); /** - * - * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -15279,72 +13109,62 @@ public interface SplitReadStreamRequestOrBuilder
      * 
* * float fraction = 2; - * * @return The fraction. */ float getFraction(); } /** - * - * *
    * Request information for `SplitReadStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest} */ - public static final class SplitReadStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SplitReadStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) SplitReadStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SplitReadStreamRequest.newBuilder() to construct. private SplitReadStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SplitReadStreamRequest() {} + private SplitReadStreamRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SplitReadStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.Builder.class); } public static final int ORIGINAL_STREAM_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream originalStream_; /** - * - * *
      * Required. Stream to split.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the originalStream field is set. */ @java.lang.Override @@ -15352,48 +13172,32 @@ public boolean hasOriginalStream() { return originalStream_ != null; } /** - * - * *
      * Required. Stream to split.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The originalStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getOriginalStream() { - return originalStream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : originalStream_; + return originalStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : originalStream_; } /** - * - * *
      * Required. Stream to split.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder - getOriginalStreamOrBuilder() { - return originalStream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : originalStream_; + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getOriginalStreamOrBuilder() { + return originalStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : originalStream_; } public static final int FRACTION_FIELD_NUMBER = 2; private float fraction_ = 0F; /** - * - * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -15405,7 +13209,6 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getOriginalStrea
      * 
* * float fraction = 2; - * * @return The fraction. */ @java.lang.Override @@ -15414,7 +13217,6 @@ public float getFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -15426,7 +13228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (originalStream_ != null) { output.writeMessage(1, getOriginalStream()); } @@ -15443,10 +13246,12 @@ public int getSerializedSize() { size = 0; if (originalStream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOriginalStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOriginalStream()); } if (java.lang.Float.floatToRawIntBits(fraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, fraction_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, fraction_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -15456,21 +13261,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest other = - (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest other = (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) obj; if (hasOriginalStream() != other.hasOriginalStream()) return false; if (hasOriginalStream()) { - if (!getOriginalStream().equals(other.getOriginalStream())) return false; + if (!getOriginalStream() + .equals(other.getOriginalStream())) return false; } if (java.lang.Float.floatToIntBits(getFraction()) - != java.lang.Float.floatToIntBits(other.getFraction())) return false; + != java.lang.Float.floatToIntBits( + other.getFraction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15487,107 +13292,95 @@ public int hashCode() { hash = (53 * hash) + getOriginalStream().hashCode(); } hash = (37 * hash) + FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getFraction()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -15597,43 +13390,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Request information for `SplitReadStream`.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -15648,22 +13437,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest build() { - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -15671,23 +13457,19 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result = - new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result = new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.originalStream_ = - originalStreamBuilder_ == null ? originalStream_ : originalStreamBuilder_.build(); + result.originalStream_ = originalStreamBuilder_ == null + ? originalStream_ + : originalStreamBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.fraction_ = fraction_; @@ -15698,54 +13480,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.getDefaultInstance()) return this; if (other.hasOriginalStream()) { mergeOriginalStream(other.getOriginalStream()); } @@ -15778,26 +13552,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getOriginalStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - fraction_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getOriginalStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: { + fraction_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -15807,66 +13579,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream originalStream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> - originalStreamBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> originalStreamBuilder_; /** - * - * *
        * Required. Stream to split.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the originalStream field is set. */ public boolean hasOriginalStream() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Required. Stream to split.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The originalStream. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getOriginalStream() { if (originalStreamBuilder_ == null) { - return originalStream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : originalStream_; + return originalStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : originalStream_; } else { return originalStreamBuilder_.getMessage(); } } /** - * - * *
        * Required. Stream to split.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setOriginalStream( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { + public Builder setOriginalStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { if (originalStreamBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15880,15 +13631,11 @@ public Builder setOriginalStream( return this; } /** - * - * *
        * Required. Stream to split.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOriginalStream( com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { @@ -15902,24 +13649,17 @@ public Builder setOriginalStream( return this; } /** - * - * *
        * Required. Stream to split.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeOriginalStream( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { + public Builder mergeOriginalStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { if (originalStreamBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && originalStream_ != null - && originalStream_ - != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + originalStream_ != null && + originalStream_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) { getOriginalStreamBuilder().mergeFrom(value); } else { originalStream_ = value; @@ -15932,15 +13672,11 @@ public Builder mergeOriginalStream( return this; } /** - * - * *
        * Required. Stream to split.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOriginalStream() { bitField0_ = (bitField0_ & ~0x00000001); @@ -15953,75 +13689,55 @@ public Builder clearOriginalStream() { return this; } /** - * - * *
        * Required. Stream to split.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder - getOriginalStreamBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getOriginalStreamBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOriginalStreamFieldBuilder().getBuilder(); } /** - * - * *
        * Required. Stream to split.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder - getOriginalStreamOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getOriginalStreamOrBuilder() { if (originalStreamBuilder_ != null) { return originalStreamBuilder_.getMessageOrBuilder(); } else { - return originalStream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : originalStream_; + return originalStream_ == null ? + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : originalStream_; } } /** - * - * *
        * Required. Stream to split.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getOriginalStreamFieldBuilder() { if (originalStreamBuilder_ == null) { - originalStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( - getOriginalStream(), getParentForChildren(), isClean()); + originalStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( + getOriginalStream(), + getParentForChildren(), + isClean()); originalStream_ = null; } return originalStreamBuilder_; } - private float fraction_; + private float fraction_ ; /** - * - * *
        * A value in the range (0.0, 1.0) that specifies the fractional point at
        * which the original stream should be split. The actual split point is
@@ -16033,7 +13749,6 @@ public Builder clearOriginalStream() {
        * 
* * float fraction = 2; - * * @return The fraction. */ @java.lang.Override @@ -16041,8 +13756,6 @@ public float getFraction() { return fraction_; } /** - * - * *
        * A value in the range (0.0, 1.0) that specifies the fractional point at
        * which the original stream should be split. The actual split point is
@@ -16054,20 +13767,17 @@ public float getFraction() {
        * 
* * float fraction = 2; - * * @param value The fraction to set. * @return This builder for chaining. */ public Builder setFraction(float value) { - + fraction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * A value in the range (0.0, 1.0) that specifies the fractional point at
        * which the original stream should be split. The actual split point is
@@ -16079,7 +13789,6 @@ public Builder setFraction(float value) {
        * 
* * float fraction = 2; - * * @return This builder for chaining. */ public Builder clearFraction() { @@ -16088,7 +13797,6 @@ public Builder clearFraction() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -16101,45 +13809,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SplitReadStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SplitReadStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -16151,20 +13855,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SplitReadStreamResponseOrBuilder - extends + public interface SplitReadStreamResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -16172,13 +13873,10 @@ public interface SplitReadStreamResponseOrBuilder
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; - * * @return Whether the primaryStream field is set. */ boolean hasPrimaryStream(); /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -16186,13 +13884,10 @@ public interface SplitReadStreamResponseOrBuilder
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; - * * @return The primaryStream. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getPrimaryStream(); /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -16204,34 +13899,26 @@ public interface SplitReadStreamResponseOrBuilder
     com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getPrimaryStreamOrBuilder();
 
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; - * * @return Whether the remainderStream field is set. */ boolean hasRemainderStream(); /** - * - * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; - * * @return The remainderStream. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getRemainderStream(); /** - * - * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -16242,58 +13929,52 @@ public interface SplitReadStreamResponseOrBuilder
     com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getRemainderStreamOrBuilder();
   }
   /**
-   *
-   *
    * 
    * Response from `SplitReadStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse} */ - public static final class SplitReadStreamResponse extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SplitReadStreamResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse) SplitReadStreamResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SplitReadStreamResponse.newBuilder() to construct. private SplitReadStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SplitReadStreamResponse() {} + private SplitReadStreamResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SplitReadStreamResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.Builder.class); } public static final int PRIMARY_STREAM_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream primaryStream_; /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -16301,7 +13982,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; - * * @return Whether the primaryStream field is set. */ @java.lang.Override @@ -16309,8 +13989,6 @@ public boolean hasPrimaryStream() { return primaryStream_ != null; } /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -16318,18 +13996,13 @@ public boolean hasPrimaryStream() {
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; - * * @return The primaryStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getPrimaryStream() { - return primaryStream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : primaryStream_; + return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : primaryStream_; } /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -16339,25 +14012,19 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getPrimaryStream
      * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
      */
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder
-        getPrimaryStreamOrBuilder() {
-      return primaryStream_ == null
-          ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()
-          : primaryStream_;
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getPrimaryStreamOrBuilder() {
+      return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : primaryStream_;
     }
 
     public static final int REMAINDER_STREAM_FIELD_NUMBER = 2;
     private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream remainderStream_;
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; - * * @return Whether the remainderStream field is set. */ @java.lang.Override @@ -16365,26 +14032,19 @@ public boolean hasRemainderStream() { return remainderStream_ != null; } /** - * - * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; - * * @return The remainderStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getRemainderStream() { - return remainderStream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : remainderStream_; + return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : remainderStream_; } /** - * - * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -16393,15 +14053,11 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getRemainderStre
      * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
      */
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder
-        getRemainderStreamOrBuilder() {
-      return remainderStream_ == null
-          ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()
-          : remainderStream_;
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getRemainderStreamOrBuilder() {
+      return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : remainderStream_;
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -16413,7 +14069,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (primaryStream_ != null) {
         output.writeMessage(1, getPrimaryStream());
       }
@@ -16430,10 +14087,12 @@ public int getSerializedSize() {
 
       size = 0;
       if (primaryStream_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrimaryStream());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getPrimaryStream());
       }
       if (remainderStream_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRemainderStream());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(2, getRemainderStream());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -16443,22 +14102,22 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
-      if (!(obj
-          instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse)) {
+      if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse other =
-          (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse) obj;
+      com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse other = (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse) obj;
 
       if (hasPrimaryStream() != other.hasPrimaryStream()) return false;
       if (hasPrimaryStream()) {
-        if (!getPrimaryStream().equals(other.getPrimaryStream())) return false;
+        if (!getPrimaryStream()
+            .equals(other.getPrimaryStream())) return false;
       }
       if (hasRemainderStream() != other.hasRemainderStream()) return false;
       if (hasRemainderStream()) {
-        if (!getRemainderStream().equals(other.getRemainderStream())) return false;
+        if (!getRemainderStream()
+            .equals(other.getRemainderStream())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -16484,101 +14143,88 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseFrom(
-            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseFrom(com.google.protobuf.ByteString data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseFrom(
-            com.google.protobuf.ByteString data,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
+        com.google.protobuf.ByteString data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        parseFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse prototype) {
+    public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -16588,43 +14234,39 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * Response from `SplitReadStream`.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse) com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class, - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -16643,22 +14285,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage - .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse build() { - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -16666,27 +14305,24 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse - buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result = - new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result = new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.primaryStream_ = - primaryStreamBuilder_ == null ? primaryStream_ : primaryStreamBuilder_.build(); + result.primaryStream_ = primaryStreamBuilder_ == null + ? primaryStream_ + : primaryStreamBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.remainderStream_ = - remainderStreamBuilder_ == null ? remainderStream_ : remainderStreamBuilder_.build(); + result.remainderStream_ = remainderStreamBuilder_ == null + ? remainderStream_ + : remainderStreamBuilder_.build(); } } @@ -16694,54 +14330,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.getDefaultInstance()) return this; if (other.hasPrimaryStream()) { mergePrimaryStream(other.getPrimaryStream()); } @@ -16774,26 +14402,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getPrimaryStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getRemainderStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getPrimaryStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getRemainderStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -16803,18 +14431,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream primaryStream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> - primaryStreamBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> primaryStreamBuilder_; /** - * - * *
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -16822,15 +14444,12 @@ public Builder mergeFrom(
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; - * * @return Whether the primaryStream field is set. */ public boolean hasPrimaryStream() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -16838,21 +14457,16 @@ public boolean hasPrimaryStream() {
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; - * * @return The primaryStream. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getPrimaryStream() { if (primaryStreamBuilder_ == null) { - return primaryStream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : primaryStream_; + return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : primaryStream_; } else { return primaryStreamBuilder_.getMessage(); } } /** - * - * *
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -16861,8 +14475,7 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getPrimaryStream
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
        */
-      public Builder setPrimaryStream(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
+      public Builder setPrimaryStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
         if (primaryStreamBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -16876,8 +14489,6 @@ public Builder setPrimaryStream(
         return this;
       }
       /**
-       *
-       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -16898,8 +14509,6 @@ public Builder setPrimaryStream(
         return this;
       }
       /**
-       *
-       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -16908,14 +14517,11 @@ public Builder setPrimaryStream(
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
        */
-      public Builder mergePrimaryStream(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
+      public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
         if (primaryStreamBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && primaryStream_ != null
-              && primaryStream_
-                  != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream
-                      .getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            primaryStream_ != null &&
+            primaryStream_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) {
             getPrimaryStreamBuilder().mergeFrom(value);
           } else {
             primaryStream_ = value;
@@ -16928,8 +14534,6 @@ public Builder mergePrimaryStream(
         return this;
       }
       /**
-       *
-       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -16949,8 +14553,6 @@ public Builder clearPrimaryStream() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -16959,15 +14561,12 @@ public Builder clearPrimaryStream() {
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder
-          getPrimaryStreamBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getPrimaryStreamBuilder() {
         bitField0_ |= 0x00000001;
         onChanged();
         return getPrimaryStreamFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -16976,19 +14575,15 @@ public Builder clearPrimaryStream() {
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder
-          getPrimaryStreamOrBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getPrimaryStreamOrBuilder() {
         if (primaryStreamBuilder_ != null) {
           return primaryStreamBuilder_.getMessageOrBuilder();
         } else {
-          return primaryStream_ == null
-              ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()
-              : primaryStream_;
+          return primaryStream_ == null ?
+              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : primaryStream_;
         }
       }
       /**
-       *
-       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -16998,17 +14593,14 @@ public Builder clearPrimaryStream() {
        * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream,
-              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder,
-              com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>
+          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> 
           getPrimaryStreamFieldBuilder() {
         if (primaryStreamBuilder_ == null) {
-          primaryStreamBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.Stream,
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder,
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>(
-                  getPrimaryStream(), getParentForChildren(), isClean());
+          primaryStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>(
+                  getPrimaryStream(),
+                  getParentForChildren(),
+                  isClean());
           primaryStream_ = null;
         }
         return primaryStreamBuilder_;
@@ -17016,49 +14608,36 @@ public Builder clearPrimaryStream() {
 
       private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream remainderStream_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream,
-              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder,
-              com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>
-          remainderStreamBuilder_;
+          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> remainderStreamBuilder_;
       /**
-       *
-       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; - * * @return Whether the remainderStream field is set. */ public boolean hasRemainderStream() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; - * * @return The remainderStream. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getRemainderStream() { if (remainderStreamBuilder_ == null) { - return remainderStream_ == null - ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() - : remainderStream_; + return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : remainderStream_; } else { return remainderStreamBuilder_.getMessage(); } } /** - * - * *
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -17066,8 +14645,7 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getRemainderStre
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
        */
-      public Builder setRemainderStream(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
+      public Builder setRemainderStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
         if (remainderStreamBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -17081,8 +14659,6 @@ public Builder setRemainderStream(
         return this;
       }
       /**
-       *
-       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -17102,8 +14678,6 @@ public Builder setRemainderStream(
         return this;
       }
       /**
-       *
-       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -17111,14 +14685,11 @@ public Builder setRemainderStream(
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
        */
-      public Builder mergeRemainderStream(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
+      public Builder mergeRemainderStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
         if (remainderStreamBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0)
-              && remainderStream_ != null
-              && remainderStream_
-                  != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream
-                      .getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0) &&
+            remainderStream_ != null &&
+            remainderStream_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) {
             getRemainderStreamBuilder().mergeFrom(value);
           } else {
             remainderStream_ = value;
@@ -17131,8 +14702,6 @@ public Builder mergeRemainderStream(
         return this;
       }
       /**
-       *
-       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -17151,8 +14720,6 @@ public Builder clearRemainderStream() {
         return this;
       }
       /**
-       *
-       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -17160,15 +14727,12 @@ public Builder clearRemainderStream() {
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder
-          getRemainderStreamBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getRemainderStreamBuilder() {
         bitField0_ |= 0x00000002;
         onChanged();
         return getRemainderStreamFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -17176,19 +14740,15 @@ public Builder clearRemainderStream() {
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder
-          getRemainderStreamOrBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getRemainderStreamOrBuilder() {
         if (remainderStreamBuilder_ != null) {
           return remainderStreamBuilder_.getMessageOrBuilder();
         } else {
-          return remainderStream_ == null
-              ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()
-              : remainderStream_;
+          return remainderStream_ == null ?
+              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : remainderStream_;
         }
       }
       /**
-       *
-       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -17197,22 +14757,18 @@ public Builder clearRemainderStream() {
        * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream,
-              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder,
-              com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>
+          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> 
           getRemainderStreamFieldBuilder() {
         if (remainderStreamBuilder_ == null) {
-          remainderStreamBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.Stream,
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder,
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>(
-                  getRemainderStream(), getParentForChildren(), isClean());
+          remainderStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>(
+                  getRemainderStream(),
+                  getParentForChildren(),
+                  isClean());
           remainderStream_ = null;
         }
         return remainderStreamBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -17225,45 +14781,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse)
-    private static final com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse();
+      DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse();
     }
 
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        getDefaultInstance() {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public SplitReadStreamResponse parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public SplitReadStreamResponse parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -17275,341 +14827,312 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor;
-  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor;
+  private static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
     return descriptor;
   }
-
-  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
   static {
     java.lang.String[] descriptorData = {
-      "\n3google/cloud/bigquery/storage/v1beta1/"
-          + "storage.proto\022%google.cloud.bigquery.sto"
-          + "rage.v1beta1\032\034google/api/annotations.pro"
-          + "to\032\027google/api/client.proto\032\037google/api/"
-          + "field_behavior.proto\032\031google/api/resourc"
-          + "e.proto\0321google/cloud/bigquery/storage/v"
-          + "1beta1/arrow.proto\0320google/cloud/bigquer"
-          + "y/storage/v1beta1/avro.proto\0328google/clo"
-          + "ud/bigquery/storage/v1beta1/read_options"
-          + ".proto\032;google/cloud/bigquery/storage/v1"
-          + "beta1/table_reference.proto\032\033google/prot"
-          + "obuf/empty.proto\032\037google/protobuf/timest"
-          + "amp.proto\"|\n\006Stream\022\014\n\004name\030\001 \001(\t:d\352Aa\n%"
-          + "bigquerystorage.googleapis.com/Stream\0228p"
-          + "rojects/{project}/locations/{location}/s"
-          + "treams/{stream}\"_\n\016StreamPosition\022=\n\006str"
-          + "eam\030\001 \001(\0132-.google.cloud.bigquery.storag"
-          + "e.v1beta1.Stream\022\016\n\006offset\030\002 \001(\003\"\215\005\n\013Rea"
-          + "dSession\022\014\n\004name\030\001 \001(\t\022/\n\013expire_time\030\002 "
-          + "\001(\0132\032.google.protobuf.Timestamp\022H\n\013avro_"
-          + "schema\030\005 \001(\01321.google.cloud.bigquery.sto"
-          + "rage.v1beta1.AvroSchemaH\000\022J\n\014arrow_schem"
-          + "a\030\006 \001(\01322.google.cloud.bigquery.storage."
-          + "v1beta1.ArrowSchemaH\000\022>\n\007streams\030\004 \003(\0132-"
-          + ".google.cloud.bigquery.storage.v1beta1.S"
-          + "tream\022N\n\017table_reference\030\007 \001(\01325.google."
-          + "cloud.bigquery.storage.v1beta1.TableRefe"
-          + "rence\022N\n\017table_modifiers\030\010 \001(\01325.google."
-          + "cloud.bigquery.storage.v1beta1.TableModi"
-          + "fiers\022R\n\021sharding_strategy\030\t \001(\01627.googl"
-          + "e.cloud.bigquery.storage.v1beta1.Shardin"
-          + "gStrategy:k\352Ah\n*bigquerystorage.googleap"
-          + "is.com/ReadSession\022:projects/{project}/l"
-          + "ocations/{location}/sessions/{session}B\010"
-          + "\n\006schema\"\205\004\n\030CreateReadSessionRequest\022S\n"
-          + "\017table_reference\030\001 \001(\01325.google.cloud.bi"
-          + "gquery.storage.v1beta1.TableReferenceB\003\340"
-          + "A\002\022C\n\006parent\030\006 \001(\tB3\340A\002\372A-\n+cloudresourc"
-          + "emanager.googleapis.com/Project\022N\n\017table"
-          + "_modifiers\030\002 \001(\01325.google.cloud.bigquery"
-          + ".storage.v1beta1.TableModifiers\022\031\n\021reque"
-          + "sted_streams\030\003 \001(\005\022M\n\014read_options\030\004 \001(\013"
-          + "27.google.cloud.bigquery.storage.v1beta1"
-          + ".TableReadOptions\022A\n\006format\030\005 \001(\01621.goog"
-          + "le.cloud.bigquery.storage.v1beta1.DataFo"
-          + "rmat\022R\n\021sharding_strategy\030\007 \001(\01627.google"
-          + ".cloud.bigquery.storage.v1beta1.Sharding"
-          + "Strategy\"d\n\017ReadRowsRequest\022Q\n\rread_posi"
-          + "tion\030\001 \001(\01325.google.cloud.bigquery.stora"
-          + "ge.v1beta1.StreamPositionB\003\340A\002\"\240\001\n\014Strea"
-          + "mStatus\022\033\n\023estimated_row_count\030\001 \001(\003\022\031\n\021"
-          + "fraction_consumed\030\002 \001(\002\022A\n\010progress\030\004 \001("
-          + "\0132/.google.cloud.bigquery.storage.v1beta"
-          + "1.Progress\022\025\n\ris_splittable\030\003 \001(\010\">\n\010Pro"
-          + "gress\022\031\n\021at_response_start\030\001 \001(\002\022\027\n\017at_r"
-          + "esponse_end\030\002 \001(\002\"*\n\016ThrottleStatus\022\030\n\020t"
-          + "hrottle_percent\030\001 \001(\005\"\337\002\n\020ReadRowsRespon"
-          + "se\022D\n\tavro_rows\030\003 \001(\0132/.google.cloud.big"
-          + "query.storage.v1beta1.AvroRowsH\000\022U\n\022arro"
-          + "w_record_batch\030\004 \001(\01327.google.cloud.bigq"
-          + "uery.storage.v1beta1.ArrowRecordBatchH\000\022"
-          + "\021\n\trow_count\030\006 \001(\003\022C\n\006status\030\002 \001(\01323.goo"
-          + "gle.cloud.bigquery.storage.v1beta1.Strea"
-          + "mStatus\022N\n\017throttle_status\030\005 \001(\01325.googl"
-          + "e.cloud.bigquery.storage.v1beta1.Throttl"
-          + "eStatusB\006\n\004rows\"\220\001\n$BatchCreateReadSessi"
-          + "onStreamsRequest\022H\n\007session\030\001 \001(\01322.goog"
-          + "le.cloud.bigquery.storage.v1beta1.ReadSe"
-          + "ssionB\003\340A\002\022\036\n\021requested_streams\030\002 \001(\005B\003\340"
-          + "A\002\"g\n%BatchCreateReadSessionStreamsRespo"
-          + "nse\022>\n\007streams\030\001 \003(\0132-.google.cloud.bigq"
-          + "uery.storage.v1beta1.Stream\"[\n\025FinalizeS"
-          + "treamRequest\022B\n\006stream\030\002 \001(\0132-.google.cl"
-          + "oud.bigquery.storage.v1beta1.StreamB\003\340A\002"
-          + "\"w\n\026SplitReadStreamRequest\022K\n\017original_s"
-          + "tream\030\001 \001(\0132-.google.cloud.bigquery.stor"
-          + "age.v1beta1.StreamB\003\340A\002\022\020\n\010fraction\030\002 \001("
-          + "\002\"\251\001\n\027SplitReadStreamResponse\022E\n\016primary"
-          + "_stream\030\001 \001(\0132-.google.cloud.bigquery.st"
-          + "orage.v1beta1.Stream\022G\n\020remainder_stream"
-          + "\030\002 \001(\0132-.google.cloud.bigquery.storage.v"
-          + "1beta1.Stream*>\n\nDataFormat\022\033\n\027DATA_FORM"
-          + "AT_UNSPECIFIED\020\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\003*O\n"
-          + "\020ShardingStrategy\022!\n\035SHARDING_STRATEGY_U"
-          + "NSPECIFIED\020\000\022\n\n\006LIQUID\020\001\022\014\n\010BALANCED\020\0022\267"
-          + "\n\n\017BigQueryStorage\022\263\002\n\021CreateReadSession"
-          + "\022?.google.cloud.bigquery.storage.v1beta1"
-          + ".CreateReadSessionRequest\0322.google.cloud"
-          + ".bigquery.storage.v1beta1.ReadSession\"\250\001"
-          + "\202\323\344\223\002w\"0/v1beta1/{table_reference.projec"
-          + "t_id=projects/*}:\001*Z@\";/v1beta1/{table_r"
-          + "eference.dataset_id=projects/*/datasets/"
-          + "*}:\001*\332A(table_reference,parent,requested"
-          + "_streams\022\320\001\n\010ReadRows\0226.google.cloud.big"
-          + "query.storage.v1beta1.ReadRowsRequest\0327."
-          + "google.cloud.bigquery.storage.v1beta1.Re"
-          + "adRowsResponse\"Q\202\323\344\223\002;\0229/v1beta1/{read_p"
-          + "osition.stream.name=projects/*/streams/*"
-          + "}\332A\rread_position0\001\022\220\002\n\035BatchCreateReadS"
-          + "essionStreams\022K.google.cloud.bigquery.st"
-          + "orage.v1beta1.BatchCreateReadSessionStre"
-          + "amsRequest\032L.google.cloud.bigquery.stora"
-          + "ge.v1beta1.BatchCreateReadSessionStreams"
-          + "Response\"T\202\323\344\223\0022\"-/v1beta1/{session.name"
-          + "=projects/*/sessions/*}:\001*\332A\031session,req"
-          + "uested_streams\022\247\001\n\016FinalizeStream\022<.goog"
-          + "le.cloud.bigquery.storage.v1beta1.Finali"
-          + "zeStreamRequest\032\026.google.protobuf.Empty\""
-          + "?\202\323\344\223\0020\"+/v1beta1/{stream.name=projects/"
-          + "*/streams/*}:\001*\332A\006stream\022\340\001\n\017SplitReadSt"
-          + "ream\022=.google.cloud.bigquery.storage.v1b"
-          + "eta1.SplitReadStreamRequest\032>.google.clo"
-          + "ud.bigquery.storage.v1beta1.SplitReadStr"
-          + "eamResponse\"N\202\323\344\223\0026\0224/v1beta1/{original_"
-          + "stream.name=projects/*/streams/*}\332A\017orig"
-          + "inal_stream\032{\312A\036bigquerystorage.googleap"
-          + "is.com\322AWhttps://www.googleapis.com/auth"
-          + "/bigquery,https://www.googleapis.com/aut"
-          + "h/cloud-platformBp\n)com.google.cloud.big"
-          + "query.storage.v1beta1ZCcloud.google.com/"
-          + "go/bigquery/storage/apiv1beta1/storagepb"
-          + ";storagepbb\006proto3"
+      "\n3google/cloud/bigquery/storage/v1beta1/" +
+      "storage.proto\022%google.cloud.bigquery.sto" +
+      "rage.v1beta1\032\034google/api/annotations.pro" +
+      "to\032\027google/api/client.proto\032\037google/api/" +
+      "field_behavior.proto\032\031google/api/resourc" +
+      "e.proto\0321google/cloud/bigquery/storage/v" +
+      "1beta1/arrow.proto\0320google/cloud/bigquer" +
+      "y/storage/v1beta1/avro.proto\0328google/clo" +
+      "ud/bigquery/storage/v1beta1/read_options" +
+      ".proto\032;google/cloud/bigquery/storage/v1" +
+      "beta1/table_reference.proto\032\033google/prot" +
+      "obuf/empty.proto\032\037google/protobuf/timest" +
+      "amp.proto\"|\n\006Stream\022\014\n\004name\030\001 \001(\t:d\352Aa\n%" +
+      "bigquerystorage.googleapis.com/Stream\0228p" +
+      "rojects/{project}/locations/{location}/s" +
+      "treams/{stream}\"_\n\016StreamPosition\022=\n\006str" +
+      "eam\030\001 \001(\0132-.google.cloud.bigquery.storag" +
+      "e.v1beta1.Stream\022\016\n\006offset\030\002 \001(\003\"\215\005\n\013Rea" +
+      "dSession\022\014\n\004name\030\001 \001(\t\022/\n\013expire_time\030\002 " +
+      "\001(\0132\032.google.protobuf.Timestamp\022H\n\013avro_" +
+      "schema\030\005 \001(\01321.google.cloud.bigquery.sto" +
+      "rage.v1beta1.AvroSchemaH\000\022J\n\014arrow_schem" +
+      "a\030\006 \001(\01322.google.cloud.bigquery.storage." +
+      "v1beta1.ArrowSchemaH\000\022>\n\007streams\030\004 \003(\0132-" +
+      ".google.cloud.bigquery.storage.v1beta1.S" +
+      "tream\022N\n\017table_reference\030\007 \001(\01325.google." +
+      "cloud.bigquery.storage.v1beta1.TableRefe" +
+      "rence\022N\n\017table_modifiers\030\010 \001(\01325.google." +
+      "cloud.bigquery.storage.v1beta1.TableModi" +
+      "fiers\022R\n\021sharding_strategy\030\t \001(\01627.googl" +
+      "e.cloud.bigquery.storage.v1beta1.Shardin" +
+      "gStrategy:k\352Ah\n*bigquerystorage.googleap" +
+      "is.com/ReadSession\022:projects/{project}/l" +
+      "ocations/{location}/sessions/{session}B\010" +
+      "\n\006schema\"\205\004\n\030CreateReadSessionRequest\022S\n" +
+      "\017table_reference\030\001 \001(\01325.google.cloud.bi" +
+      "gquery.storage.v1beta1.TableReferenceB\003\340" +
+      "A\002\022C\n\006parent\030\006 \001(\tB3\340A\002\372A-\n+cloudresourc" +
+      "emanager.googleapis.com/Project\022N\n\017table" +
+      "_modifiers\030\002 \001(\01325.google.cloud.bigquery" +
+      ".storage.v1beta1.TableModifiers\022\031\n\021reque" +
+      "sted_streams\030\003 \001(\005\022M\n\014read_options\030\004 \001(\013" +
+      "27.google.cloud.bigquery.storage.v1beta1" +
+      ".TableReadOptions\022A\n\006format\030\005 \001(\01621.goog" +
+      "le.cloud.bigquery.storage.v1beta1.DataFo" +
+      "rmat\022R\n\021sharding_strategy\030\007 \001(\01627.google" +
+      ".cloud.bigquery.storage.v1beta1.Sharding" +
+      "Strategy\"d\n\017ReadRowsRequest\022Q\n\rread_posi" +
+      "tion\030\001 \001(\01325.google.cloud.bigquery.stora" +
+      "ge.v1beta1.StreamPositionB\003\340A\002\"\240\001\n\014Strea" +
+      "mStatus\022\033\n\023estimated_row_count\030\001 \001(\003\022\031\n\021" +
+      "fraction_consumed\030\002 \001(\002\022A\n\010progress\030\004 \001(" +
+      "\0132/.google.cloud.bigquery.storage.v1beta" +
+      "1.Progress\022\025\n\ris_splittable\030\003 \001(\010\">\n\010Pro" +
+      "gress\022\031\n\021at_response_start\030\001 \001(\002\022\027\n\017at_r" +
+      "esponse_end\030\002 \001(\002\"*\n\016ThrottleStatus\022\030\n\020t" +
+      "hrottle_percent\030\001 \001(\005\"\337\002\n\020ReadRowsRespon" +
+      "se\022D\n\tavro_rows\030\003 \001(\0132/.google.cloud.big" +
+      "query.storage.v1beta1.AvroRowsH\000\022U\n\022arro" +
+      "w_record_batch\030\004 \001(\01327.google.cloud.bigq" +
+      "uery.storage.v1beta1.ArrowRecordBatchH\000\022" +
+      "\021\n\trow_count\030\006 \001(\003\022C\n\006status\030\002 \001(\01323.goo" +
+      "gle.cloud.bigquery.storage.v1beta1.Strea" +
+      "mStatus\022N\n\017throttle_status\030\005 \001(\01325.googl" +
+      "e.cloud.bigquery.storage.v1beta1.Throttl" +
+      "eStatusB\006\n\004rows\"\220\001\n$BatchCreateReadSessi" +
+      "onStreamsRequest\022H\n\007session\030\001 \001(\01322.goog" +
+      "le.cloud.bigquery.storage.v1beta1.ReadSe" +
+      "ssionB\003\340A\002\022\036\n\021requested_streams\030\002 \001(\005B\003\340" +
+      "A\002\"g\n%BatchCreateReadSessionStreamsRespo" +
+      "nse\022>\n\007streams\030\001 \003(\0132-.google.cloud.bigq" +
+      "uery.storage.v1beta1.Stream\"[\n\025FinalizeS" +
+      "treamRequest\022B\n\006stream\030\002 \001(\0132-.google.cl" +
+      "oud.bigquery.storage.v1beta1.StreamB\003\340A\002" +
+      "\"w\n\026SplitReadStreamRequest\022K\n\017original_s" +
+      "tream\030\001 \001(\0132-.google.cloud.bigquery.stor" +
+      "age.v1beta1.StreamB\003\340A\002\022\020\n\010fraction\030\002 \001(" +
+      "\002\"\251\001\n\027SplitReadStreamResponse\022E\n\016primary" +
+      "_stream\030\001 \001(\0132-.google.cloud.bigquery.st" +
+      "orage.v1beta1.Stream\022G\n\020remainder_stream" +
+      "\030\002 \001(\0132-.google.cloud.bigquery.storage.v" +
+      "1beta1.Stream*>\n\nDataFormat\022\033\n\027DATA_FORM" +
+      "AT_UNSPECIFIED\020\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\003*O\n" +
+      "\020ShardingStrategy\022!\n\035SHARDING_STRATEGY_U" +
+      "NSPECIFIED\020\000\022\n\n\006LIQUID\020\001\022\014\n\010BALANCED\020\0022\267" +
+      "\n\n\017BigQueryStorage\022\263\002\n\021CreateReadSession" +
+      "\022?.google.cloud.bigquery.storage.v1beta1" +
+      ".CreateReadSessionRequest\0322.google.cloud" +
+      ".bigquery.storage.v1beta1.ReadSession\"\250\001" +
+      "\202\323\344\223\002w\"0/v1beta1/{table_reference.projec" +
+      "t_id=projects/*}:\001*Z@\";/v1beta1/{table_r" +
+      "eference.dataset_id=projects/*/datasets/" +
+      "*}:\001*\332A(table_reference,parent,requested" +
+      "_streams\022\320\001\n\010ReadRows\0226.google.cloud.big" +
+      "query.storage.v1beta1.ReadRowsRequest\0327." +
+      "google.cloud.bigquery.storage.v1beta1.Re" +
+      "adRowsResponse\"Q\202\323\344\223\002;\0229/v1beta1/{read_p" +
+      "osition.stream.name=projects/*/streams/*" +
+      "}\332A\rread_position0\001\022\220\002\n\035BatchCreateReadS" +
+      "essionStreams\022K.google.cloud.bigquery.st" +
+      "orage.v1beta1.BatchCreateReadSessionStre" +
+      "amsRequest\032L.google.cloud.bigquery.stora" +
+      "ge.v1beta1.BatchCreateReadSessionStreams" +
+      "Response\"T\202\323\344\223\0022\"-/v1beta1/{session.name" +
+      "=projects/*/sessions/*}:\001*\332A\031session,req" +
+      "uested_streams\022\247\001\n\016FinalizeStream\022<.goog" +
+      "le.cloud.bigquery.storage.v1beta1.Finali" +
+      "zeStreamRequest\032\026.google.protobuf.Empty\"" +
+      "?\202\323\344\223\0020\"+/v1beta1/{stream.name=projects/" +
+      "*/streams/*}:\001*\332A\006stream\022\340\001\n\017SplitReadSt" +
+      "ream\022=.google.cloud.bigquery.storage.v1b" +
+      "eta1.SplitReadStreamRequest\032>.google.clo" +
+      "ud.bigquery.storage.v1beta1.SplitReadStr" +
+      "eamResponse\"N\202\323\344\223\0026\0224/v1beta1/{original_" +
+      "stream.name=projects/*/streams/*}\332A\017orig" +
+      "inal_stream\032{\312A\036bigquerystorage.googleap" +
+      "is.com\322AWhttps://www.googleapis.com/auth" +
+      "/bigquery,https://www.googleapis.com/aut" +
+      "h/cloud-platformBp\n)com.google.cloud.big" +
+      "query.storage.v1beta1ZCcloud.google.com/" +
+      "go/bigquery/storage/apiv1beta1/storagepb" +
+      ";storagepbb\006proto3"
     };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.api.AnnotationsProto.getDescriptor(),
-              com.google.api.ClientProto.getDescriptor(),
-              com.google.api.FieldBehaviorProto.getDescriptor(),
-              com.google.api.ResourceProto.getDescriptor(),
-              com.google.cloud.bigquery.storage.v1beta1.ArrowProto.getDescriptor(),
-              com.google.cloud.bigquery.storage.v1beta1.AvroProto.getDescriptor(),
-              com.google.cloud.bigquery.storage.v1beta1.ReadOptions.getDescriptor(),
-              com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.getDescriptor(),
-              com.google.protobuf.EmptyProto.getDescriptor(),
-              com.google.protobuf.TimestampProto.getDescriptor(),
-            });
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.cloud.bigquery.storage.v1beta1.ArrowProto.getDescriptor(),
+          com.google.cloud.bigquery.storage.v1beta1.AvroProto.getDescriptor(),
+          com.google.cloud.bigquery.storage.v1beta1.ReadOptions.getDescriptor(),
+          com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.getDescriptor(),
+          com.google.protobuf.EmptyProto.getDescriptor(),
+          com.google.protobuf.TimestampProto.getDescriptor(),
+        });
     internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor,
-            new java.lang.String[] {
-              "Name",
-            });
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor,
+        new java.lang.String[] { "Name", });
     internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor,
-            new java.lang.String[] {
-              "Stream", "Offset",
-            });
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor,
+        new java.lang.String[] { "Stream", "Offset", });
     internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor =
-        getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor,
-            new java.lang.String[] {
-              "Name",
-              "ExpireTime",
-              "AvroSchema",
-              "ArrowSchema",
-              "Streams",
-              "TableReference",
-              "TableModifiers",
-              "ShardingStrategy",
-              "Schema",
-            });
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor,
+        new java.lang.String[] { "Name", "ExpireTime", "AvroSchema", "ArrowSchema", "Streams", "TableReference", "TableModifiers", "ShardingStrategy", "Schema", });
     internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor =
-        getDescriptor().getMessageTypes().get(3);
-    internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor,
-            new java.lang.String[] {
-              "TableReference",
-              "Parent",
-              "TableModifiers",
-              "RequestedStreams",
-              "ReadOptions",
-              "Format",
-              "ShardingStrategy",
-            });
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor,
+        new java.lang.String[] { "TableReference", "Parent", "TableModifiers", "RequestedStreams", "ReadOptions", "Format", "ShardingStrategy", });
     internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor =
-        getDescriptor().getMessageTypes().get(4);
-    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor,
-            new java.lang.String[] {
-              "ReadPosition",
-            });
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor,
+        new java.lang.String[] { "ReadPosition", });
     internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor =
-        getDescriptor().getMessageTypes().get(5);
-    internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor,
-            new java.lang.String[] {
-              "EstimatedRowCount", "FractionConsumed", "Progress", "IsSplittable",
-            });
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor,
+        new java.lang.String[] { "EstimatedRowCount", "FractionConsumed", "Progress", "IsSplittable", });
     internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor =
-        getDescriptor().getMessageTypes().get(6);
-    internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor,
-            new java.lang.String[] {
-              "AtResponseStart", "AtResponseEnd",
-            });
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor,
+        new java.lang.String[] { "AtResponseStart", "AtResponseEnd", });
     internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor =
-        getDescriptor().getMessageTypes().get(7);
-    internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor,
-            new java.lang.String[] {
-              "ThrottlePercent",
-            });
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor,
+        new java.lang.String[] { "ThrottlePercent", });
     internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor =
-        getDescriptor().getMessageTypes().get(8);
-    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor,
-            new java.lang.String[] {
-              "AvroRows", "ArrowRecordBatch", "RowCount", "Status", "ThrottleStatus", "Rows",
-            });
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor,
+        new java.lang.String[] { "AvroRows", "ArrowRecordBatch", "RowCount", "Status", "ThrottleStatus", "Rows", });
     internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor =
-        getDescriptor().getMessageTypes().get(9);
-    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor,
-            new java.lang.String[] {
-              "Session", "RequestedStreams",
-            });
+      getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor,
+        new java.lang.String[] { "Session", "RequestedStreams", });
     internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor =
-        getDescriptor().getMessageTypes().get(10);
-    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor,
-            new java.lang.String[] {
-              "Streams",
-            });
+      getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor,
+        new java.lang.String[] { "Streams", });
     internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor =
-        getDescriptor().getMessageTypes().get(11);
-    internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor,
-            new java.lang.String[] {
-              "Stream",
-            });
+      getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor,
+        new java.lang.String[] { "Stream", });
     internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor =
-        getDescriptor().getMessageTypes().get(12);
-    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor,
-            new java.lang.String[] {
-              "OriginalStream", "Fraction",
-            });
+      getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor,
+        new java.lang.String[] { "OriginalStream", "Fraction", });
     internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor =
-        getDescriptor().getMessageTypes().get(13);
-    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor,
-            new java.lang.String[] {
-              "PrimaryStream", "RemainderStream",
-            });
+      getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor,
+        new java.lang.String[] { "PrimaryStream", "RemainderStream", });
     com.google.protobuf.ExtensionRegistry registry =
         com.google.protobuf.ExtensionRegistry.newInstance();
     registry.add(com.google.api.ClientProto.defaultHost);
@@ -17619,8 +15142,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     registry.add(com.google.api.ClientProto.oauthScopes);
     registry.add(com.google.api.ResourceProto.resource);
     registry.add(com.google.api.ResourceProto.resourceReference);
-    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
-        descriptor, registry);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
     com.google.api.AnnotationsProto.getDescriptor();
     com.google.api.ClientProto.getDescriptor();
     com.google.api.FieldBehaviorProto.getDescriptor();
diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java
similarity index 61%
rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java
index 0ffd790c57..c371bf9e90 100644
--- a/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java
@@ -1,18 +1,3 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta1/table_reference.proto
 
@@ -20,112 +5,95 @@
 
 public final class TableReferenceProto {
   private TableReferenceProto() {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
-
-  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
   }
 
-  public interface TableReferenceOrBuilder
-      extends
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  public interface TableReferenceOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.TableReference)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The assigned project ID of the project.
      * 
* * string project_id = 1; - * * @return The projectId. */ java.lang.String getProjectId(); /** - * - * *
      * The assigned project ID of the project.
      * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - com.google.protobuf.ByteString getProjectIdBytes(); + com.google.protobuf.ByteString + getProjectIdBytes(); /** - * - * *
      * The ID of the dataset in the above project.
      * 
* * string dataset_id = 2; - * * @return The datasetId. */ java.lang.String getDatasetId(); /** - * - * *
      * The ID of the dataset in the above project.
      * 
* * string dataset_id = 2; - * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString getDatasetIdBytes(); + com.google.protobuf.ByteString + getDatasetIdBytes(); /** - * - * *
      * The ID of the table in the above dataset.
      * 
* * string table_id = 3; - * * @return The tableId. */ java.lang.String getTableId(); /** - * - * *
      * The ID of the table in the above dataset.
      * 
* * string table_id = 3; - * * @return The bytes for tableId. */ - com.google.protobuf.ByteString getTableIdBytes(); + com.google.protobuf.ByteString + getTableIdBytes(); } /** - * - * *
    * Table reference that includes just the 3 strings needed to identify a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableReference} */ - public static final class TableReference extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TableReference extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.TableReference) TableReferenceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableReference.newBuilder() to construct. private TableReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableReference() { projectId_ = ""; datasetId_ = ""; @@ -134,44 +102,38 @@ private TableReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.class, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.class, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder.class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** - * - * *
      * The assigned project ID of the project.
      * 
* * string project_id = 1; - * * @return The projectId. */ @java.lang.Override @@ -180,29 +142,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** - * - * *
      * The assigned project ID of the project.
      * 
* * string project_id = 1; - * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -211,18 +173,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } public static final int DATASET_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object datasetId_ = ""; /** - * - * *
      * The ID of the dataset in the above project.
      * 
* * string dataset_id = 2; - * * @return The datasetId. */ @java.lang.Override @@ -231,29 +189,29 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; } } /** - * - * *
      * The ID of the dataset in the above project.
      * 
* * string dataset_id = 2; - * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -262,18 +220,14 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } public static final int TABLE_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object tableId_ = ""; /** - * - * *
      * The ID of the table in the above dataset.
      * 
* * string table_id = 3; - * * @return The tableId. */ @java.lang.Override @@ -282,29 +236,29 @@ public java.lang.String getTableId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableId_ = s; return s; } } /** - * - * *
      * The ID of the table in the above dataset.
      * 
* * string table_id = 3; - * * @return The bytes for tableId. */ @java.lang.Override - public com.google.protobuf.ByteString getTableIdBytes() { + public com.google.protobuf.ByteString + getTableIdBytes() { java.lang.Object ref = tableId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableId_ = b; return b; } else { @@ -313,7 +267,6 @@ public com.google.protobuf.ByteString getTableIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,7 +278,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -361,19 +315,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference)) { + if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference other = - (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference) obj; + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference other = (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference) obj; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getDatasetId().equals(other.getDatasetId())) return false; - if (!getTableId().equals(other.getTableId())) return false; + if (!getProjectId() + .equals(other.getProjectId())) return false; + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + if (!getTableId() + .equals(other.getTableId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -396,101 +350,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -500,43 +441,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Table reference that includes just the 3 strings needed to identify a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableReference} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.TableReference) com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.class, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.class, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -548,22 +485,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference build() { - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -571,19 +505,14 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableRefere } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result = - new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result = new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectId_ = projectId_; @@ -600,55 +529,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -690,31 +610,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - tableId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + tableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -724,25 +640,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object projectId_ = ""; /** - * - * *
        * The assigned project ID of the project.
        * 
* * string project_id = 1; - * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -751,21 +664,20 @@ public java.lang.String getProjectId() { } } /** - * - * *
        * The assigned project ID of the project.
        * 
* * string project_id = 1; - * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getProjectIdBytes() { + public com.google.protobuf.ByteString + getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); projectId_ = b; return b; } else { @@ -773,35 +685,28 @@ public com.google.protobuf.ByteString getProjectIdBytes() { } } /** - * - * *
        * The assigned project ID of the project.
        * 
* * string project_id = 1; - * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The assigned project ID of the project.
        * 
* * string project_id = 1; - * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -811,21 +716,17 @@ public Builder clearProjectId() { return this; } /** - * - * *
        * The assigned project ID of the project.
        * 
* * string project_id = 1; - * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setProjectIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -835,20 +736,18 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object datasetId_ = ""; /** - * - * *
        * The ID of the dataset in the above project.
        * 
* * string dataset_id = 2; - * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -857,21 +756,20 @@ public java.lang.String getDatasetId() { } } /** - * - * *
        * The ID of the dataset in the above project.
        * 
* * string dataset_id = 2; - * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -879,35 +777,28 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } } /** - * - * *
        * The ID of the dataset in the above project.
        * 
* * string dataset_id = 2; - * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } datasetId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * The ID of the dataset in the above project.
        * 
* * string dataset_id = 2; - * * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -917,21 +808,17 @@ public Builder clearDatasetId() { return this; } /** - * - * *
        * The ID of the dataset in the above project.
        * 
* * string dataset_id = 2; - * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); datasetId_ = value; bitField0_ |= 0x00000002; @@ -941,20 +828,18 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object tableId_ = ""; /** - * - * *
        * The ID of the table in the above dataset.
        * 
* * string table_id = 3; - * * @return The tableId. */ public java.lang.String getTableId() { java.lang.Object ref = tableId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableId_ = s; return s; @@ -963,21 +848,20 @@ public java.lang.String getTableId() { } } /** - * - * *
        * The ID of the table in the above dataset.
        * 
* * string table_id = 3; - * * @return The bytes for tableId. */ - public com.google.protobuf.ByteString getTableIdBytes() { + public com.google.protobuf.ByteString + getTableIdBytes() { java.lang.Object ref = tableId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableId_ = b; return b; } else { @@ -985,35 +869,28 @@ public com.google.protobuf.ByteString getTableIdBytes() { } } /** - * - * *
        * The ID of the table in the above dataset.
        * 
* * string table_id = 3; - * * @param value The tableId to set. * @return This builder for chaining. */ - public Builder setTableId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } tableId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
        * The ID of the table in the above dataset.
        * 
* * string table_id = 3; - * * @return This builder for chaining. */ public Builder clearTableId() { @@ -1023,28 +900,23 @@ public Builder clearTableId() { return this; } /** - * - * *
        * The ID of the table in the above dataset.
        * 
* * string table_id = 3; - * * @param value The bytes for tableId to set. * @return This builder for chaining. */ - public Builder setTableIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tableId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1057,46 +929,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.TableReference) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableReference) - private static final com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .TableReference - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference(); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1108,44 +975,35 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TableModifiersOrBuilder - extends + public interface TableModifiersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.TableModifiers) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return Whether the snapshotTime field is set. */ boolean hasSnapshotTime(); /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return The snapshotTime. */ com.google.protobuf.Timestamp getSnapshotTime(); /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -1155,64 +1013,57 @@ public interface TableModifiersOrBuilder com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder(); } /** - * - * *
    * All fields in this message optional.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableModifiers} */ - public static final class TableModifiers extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TableModifiers extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.TableModifiers) TableModifiersOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableModifiers.newBuilder() to construct. private TableModifiers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TableModifiers() {} + private TableModifiers() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableModifiers(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.class, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.class, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder.class); } public static final int SNAPSHOT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp snapshotTime_; /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return Whether the snapshotTime field is set. */ @java.lang.Override @@ -1220,25 +1071,18 @@ public boolean hasSnapshotTime() { return snapshotTime_ != null; } /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return The snapshotTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSnapshotTime() { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -1247,13 +1091,10 @@ public com.google.protobuf.Timestamp getSnapshotTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1265,7 +1106,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (snapshotTime_ != null) { output.writeMessage(1, getSnapshotTime()); } @@ -1279,7 +1121,8 @@ public int getSerializedSize() { size = 0; if (snapshotTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshotTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnapshotTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1289,19 +1132,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers)) { + if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers other = - (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) obj; + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers other = (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) obj; if (hasSnapshotTime() != other.hasSnapshotTime()) return false; if (hasSnapshotTime()) { - if (!getSnapshotTime().equals(other.getSnapshotTime())) return false; + if (!getSnapshotTime() + .equals(other.getSnapshotTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1323,101 +1164,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1427,43 +1255,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * All fields in this message optional.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableModifiers} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.TableModifiers) com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.class, - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder - .class); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.class, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1477,22 +1301,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers build() { - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1500,23 +1321,19 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifi } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result = - new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result = new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.snapshotTime_ = - snapshotTimeBuilder_ == null ? snapshotTime_ : snapshotTimeBuilder_.build(); + result.snapshotTime_ = snapshotTimeBuilder_ == null + ? snapshotTime_ + : snapshotTimeBuilder_.build(); } } @@ -1524,55 +1341,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers other) { - if (other - == com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers other) { + if (other == com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance()) return this; if (other.hasSnapshotTime()) { mergeSnapshotTime(other.getSnapshotTime()); } @@ -1602,19 +1410,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSnapshotTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSnapshotTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1624,52 +1432,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp snapshotTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - snapshotTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> snapshotTimeBuilder_; /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return Whether the snapshotTime field is set. */ public boolean hasSnapshotTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return The snapshotTime. */ public com.google.protobuf.Timestamp getSnapshotTime() { if (snapshotTimeBuilder_ == null) { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } else { return snapshotTimeBuilder_.getMessage(); } } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1690,15 +1484,14 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; */ - public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSnapshotTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (snapshotTimeBuilder_ == null) { snapshotTime_ = builderForValue.build(); } else { @@ -1709,8 +1502,6 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1719,9 +1510,9 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { if (snapshotTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && snapshotTime_ != null - && snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + snapshotTime_ != null && + snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSnapshotTimeBuilder().mergeFrom(value); } else { snapshotTime_ = value; @@ -1734,8 +1525,6 @@ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1753,8 +1542,6 @@ public Builder clearSnapshotTime() { return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1767,8 +1554,6 @@ public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { return getSnapshotTimeFieldBuilder().getBuilder(); } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1779,14 +1564,11 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { if (snapshotTimeBuilder_ != null) { return snapshotTimeBuilder_.getMessageOrBuilder(); } else { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1794,22 +1576,18 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { * .google.protobuf.Timestamp snapshot_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSnapshotTimeFieldBuilder() { if (snapshotTimeBuilder_ == null) { - snapshotTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSnapshotTime(), getParentForChildren(), isClean()); + snapshotTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSnapshotTime(), + getParentForChildren(), + isClean()); snapshotTime_ = null; } return snapshotTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1822,46 +1600,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.TableModifiers) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableModifiers) - private static final com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto - .TableModifiers - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers(); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableModifiers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableModifiers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1873,63 +1646,60 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; - private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { return descriptor; } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; static { java.lang.String[] descriptorData = { - "\n;google/cloud/bigquery/storage/v1beta1/" - + "table_reference.proto\022%google.cloud.bigq" - + "uery.storage.v1beta1\032\037google/protobuf/ti" - + "mestamp.proto\"J\n\016TableReference\022\022\n\nproje" - + "ct_id\030\001 \001(\t\022\022\n\ndataset_id\030\002 \001(\t\022\020\n\010table" - + "_id\030\003 \001(\t\"C\n\016TableModifiers\0221\n\rsnapshot_" - + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\205" - + "\001\n)com.google.cloud.bigquery.storage.v1b" - + "eta1B\023TableReferenceProtoZCcloud.google." - + "com/go/bigquery/storage/apiv1beta1/stora" - + "gepb;storagepbb\006proto3" + "\n;google/cloud/bigquery/storage/v1beta1/" + + "table_reference.proto\022%google.cloud.bigq" + + "uery.storage.v1beta1\032\037google/protobuf/ti" + + "mestamp.proto\"J\n\016TableReference\022\022\n\nproje" + + "ct_id\030\001 \001(\t\022\022\n\ndataset_id\030\002 \001(\t\022\020\n\010table" + + "_id\030\003 \001(\t\"C\n\016TableModifiers\0221\n\rsnapshot_" + + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\205" + + "\001\n)com.google.cloud.bigquery.storage.v1b" + + "eta1B\023TableReferenceProtoZCcloud.google." + + "com/go/bigquery/storage/apiv1beta1/stora" + + "gepb;storagepbb\006proto3" }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor, - new java.lang.String[] { - "ProjectId", "DatasetId", "TableId", - }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor, + new java.lang.String[] { "ProjectId", "DatasetId", "TableId", }); internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor, - new java.lang.String[] { - "SnapshotTime", - }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor, + new java.lang.String[] { "SnapshotTime", }); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/read_options.proto b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/read_options.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/read_options.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/read_options.proto diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/storage.proto b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/storage.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/storage.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/storage.proto diff --git a/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto b/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto rename to owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java similarity index 99% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java index 8d7217f7e6..2d54b75975 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java +++ b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.storage.v1beta2.stub.BigQueryReadStubSettings; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java similarity index 99% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java index 4049cfd4da..a8c8740927 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java +++ b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java @@ -25,6 +25,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.storage.v1beta2.stub.BigQueryWriteStubSettings; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java similarity index 96% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java index 850dfdda20..a6e2d85a8c 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java +++ b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to BigQuery Storage API + * + *

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

======================= BaseBigQueryReadClient ======================= * diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStubSettings.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStubSettings.java new file mode 100644 index 0000000000..fc45582e5b --- /dev/null +++ b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStubSettings.java @@ -0,0 +1,370 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigquery.storage.v1beta2.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest; +import com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest; +import com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse; +import com.google.cloud.bigquery.storage.v1beta2.ReadSession; +import com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest; +import com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link BigQueryReadStub}. + * + *

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

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

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

For example, to set the total timeout of createReadSession to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * BigQueryReadStubSettings.Builder baseBigQueryReadSettingsBuilder =
+ *     BigQueryReadStubSettings.newBuilder();
+ * baseBigQueryReadSettingsBuilder
+ *     .createReadSessionSettings()
+ *     .setRetrySettings(
+ *         baseBigQueryReadSettingsBuilder
+ *             .createReadSessionSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * BigQueryReadStubSettings baseBigQueryReadSettings = baseBigQueryReadSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class BigQueryReadStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/bigquery") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final UnaryCallSettings createReadSessionSettings; + private final ServerStreamingCallSettings readRowsSettings; + private final UnaryCallSettings + splitReadStreamSettings; + + /** Returns the object with the settings used for calls to createReadSession. */ + public UnaryCallSettings createReadSessionSettings() { + return createReadSessionSettings; + } + + /** Returns the object with the settings used for calls to readRows. */ + public ServerStreamingCallSettings readRowsSettings() { + return readRowsSettings; + } + + /** Returns the object with the settings used for calls to splitReadStream. */ + public UnaryCallSettings + splitReadStreamSettings() { + return splitReadStreamSettings; + } + + public BigQueryReadStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcBigQueryReadStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "bigquerystorage.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "bigquerystorage.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BigQueryReadStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected BigQueryReadStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createReadSessionSettings = settingsBuilder.createReadSessionSettings().build(); + readRowsSettings = settingsBuilder.readRowsSettings().build(); + splitReadStreamSettings = settingsBuilder.splitReadStreamSettings().build(); + } + + /** Builder for BigQueryReadStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createReadSessionSettings; + private final ServerStreamingCallSettings.Builder + readRowsSettings; + private final UnaryCallSettings.Builder + splitReadStreamSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_2_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(86400000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(86400000L)) + .setTotalTimeout(Duration.ofMillis(86400000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(100L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(60000L)) + .setInitialRpcTimeout(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(600000L)) + .setTotalTimeout(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_2_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createReadSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + readRowsSettings = ServerStreamingCallSettings.newBuilder(); + splitReadStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createReadSessionSettings, splitReadStreamSettings); + initDefaults(this); + } + + protected Builder(BigQueryReadStubSettings settings) { + super(settings); + + createReadSessionSettings = settings.createReadSessionSettings.toBuilder(); + readRowsSettings = settings.readRowsSettings.toBuilder(); + splitReadStreamSettings = settings.splitReadStreamSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createReadSessionSettings, splitReadStreamSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createReadSessionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .readRowsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .splitReadStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createReadSession. */ + public UnaryCallSettings.Builder + createReadSessionSettings() { + return createReadSessionSettings; + } + + /** Returns the builder for the settings used for calls to readRows. */ + public ServerStreamingCallSettings.Builder + readRowsSettings() { + return readRowsSettings; + } + + /** Returns the builder for the settings used for calls to splitReadStream. */ + public UnaryCallSettings.Builder + splitReadStreamSettings() { + return splitReadStreamSettings; + } + + @Override + public BigQueryReadStubSettings build() throws IOException { + return new BigQueryReadStubSettings(this); + } + } +} diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadCallableFactory.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadCallableFactory.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadCallableFactory.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadCallableFactory.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java similarity index 99% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java index 08f461bdd3..88198f0573 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java +++ b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java @@ -35,6 +35,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java similarity index 100% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java diff --git a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java similarity index 99% rename from google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java index f36e709315..67c1d9f7fb 100644 --- a/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java +++ b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java @@ -40,6 +40,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClientTest.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClientTest.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClientTest.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClientTest.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClientTest.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClientTest.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClientTest.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClientTest.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryReadImpl.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryReadImpl.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryReadImpl.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryReadImpl.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java diff --git a/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWriteImpl.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWriteImpl.java similarity index 100% rename from google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWriteImpl.java rename to owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWriteImpl.java diff --git a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java b/owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java similarity index 58% rename from grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java rename to owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java index 70f9be1cef..ebcab35247 100644 --- a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java +++ b/owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.bigquery.storage.v1beta2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * BigQuery Read API.
  * The Read API can be used to read data from BigQuery.
@@ -38,190 +21,144 @@ private BigQueryReadGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1beta2.BigQueryRead";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest,
-          com.google.cloud.bigquery.storage.v1beta2.ReadSession>
-      getCreateReadSessionMethod;
+  private static volatile io.grpc.MethodDescriptor getCreateReadSessionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReadSession",
       requestType = com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1beta2.ReadSession.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest,
-          com.google.cloud.bigquery.storage.v1beta2.ReadSession>
-      getCreateReadSessionMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest,
-            com.google.cloud.bigquery.storage.v1beta2.ReadSession>
-        getCreateReadSessionMethod;
+  public static io.grpc.MethodDescriptor getCreateReadSessionMethod() {
+    io.grpc.MethodDescriptor getCreateReadSessionMethod;
     if ((getCreateReadSessionMethod = BigQueryReadGrpc.getCreateReadSessionMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getCreateReadSessionMethod = BigQueryReadGrpc.getCreateReadSessionMethod) == null) {
-          BigQueryReadGrpc.getCreateReadSessionMethod =
-              getCreateReadSessionMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta2.ReadSession
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BigQueryReadMethodDescriptorSupplier("CreateReadSession"))
-                      .build();
+          BigQueryReadGrpc.getCreateReadSessionMethod = getCreateReadSessionMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("CreateReadSession"))
+              .build();
         }
       }
     }
     return getCreateReadSessionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest,
-          com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>
-      getReadRowsMethod;
+  private static volatile io.grpc.MethodDescriptor getReadRowsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ReadRows",
       requestType = com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest,
-          com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>
-      getReadRowsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest,
-            com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>
-        getReadRowsMethod;
+  public static io.grpc.MethodDescriptor getReadRowsMethod() {
+    io.grpc.MethodDescriptor getReadRowsMethod;
     if ((getReadRowsMethod = BigQueryReadGrpc.getReadRowsMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getReadRowsMethod = BigQueryReadGrpc.getReadRowsMethod) == null) {
-          BigQueryReadGrpc.getReadRowsMethod =
-              getReadRowsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("ReadRows"))
-                      .build();
+          BigQueryReadGrpc.getReadRowsMethod = getReadRowsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("ReadRows"))
+              .build();
         }
       }
     }
     return getReadRowsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest,
-          com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>
-      getSplitReadStreamMethod;
+  private static volatile io.grpc.MethodDescriptor getSplitReadStreamMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "SplitReadStream",
       requestType = com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest,
-          com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>
-      getSplitReadStreamMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest,
-            com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>
-        getSplitReadStreamMethod;
+  public static io.grpc.MethodDescriptor getSplitReadStreamMethod() {
+    io.grpc.MethodDescriptor getSplitReadStreamMethod;
     if ((getSplitReadStreamMethod = BigQueryReadGrpc.getSplitReadStreamMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getSplitReadStreamMethod = BigQueryReadGrpc.getSplitReadStreamMethod) == null) {
-          BigQueryReadGrpc.getSplitReadStreamMethod =
-              getSplitReadStreamMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new BigQueryReadMethodDescriptorSupplier("SplitReadStream"))
-                      .build();
+          BigQueryReadGrpc.getSplitReadStreamMethod = getSplitReadStreamMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("SplitReadStream"))
+              .build();
         }
       }
     }
     return getSplitReadStreamMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static BigQueryReadStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BigQueryReadStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BigQueryReadStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BigQueryReadStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BigQueryReadStub(channel, callOptions);
+        }
+      };
     return BigQueryReadStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BigQueryReadBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static BigQueryReadBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BigQueryReadBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BigQueryReadBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BigQueryReadBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BigQueryReadBlockingStub(channel, callOptions);
+        }
+      };
     return BigQueryReadBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static BigQueryReadFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static BigQueryReadFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public BigQueryReadFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new BigQueryReadFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public BigQueryReadFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new BigQueryReadFutureStub(channel, callOptions);
+        }
+      };
     return BigQueryReadFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
@@ -229,11 +166,9 @@ public BigQueryReadFutureStub newStub(
    * API at the same time.
    * 
*/ - public abstract static class BigQueryReadImplBase implements io.grpc.BindableService { + public static abstract class BigQueryReadImplBase implements io.grpc.BindableService { /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -253,17 +188,12 @@ public abstract static class BigQueryReadImplBase implements io.grpc.BindableSer
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateReadSessionMethod(), responseObserver); + public void createReadSession(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReadSessionMethod(), responseObserver); } /** - * - * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -273,16 +203,12 @@ public void createReadSession(
      * state of the stream.
      * 
*/ - public void readRows( - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void readRows(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadRowsMethod(), responseObserver); } /** - * - * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -297,46 +223,39 @@ public void readRows(
      * completion.
      * 
*/ - public void splitReadStream( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSplitReadStreamMethod(), responseObserver); + public void splitReadStream(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSplitReadStreamMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateReadSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest, - com.google.cloud.bigquery.storage.v1beta2.ReadSession>( - this, METHODID_CREATE_READ_SESSION))) + getCreateReadSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest, + com.google.cloud.bigquery.storage.v1beta2.ReadSession>( + this, METHODID_CREATE_READ_SESSION))) .addMethod( - getReadRowsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>( - this, METHODID_READ_ROWS))) + getReadRowsMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>( + this, METHODID_READ_ROWS))) .addMethod( - getSplitReadStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>( - this, METHODID_SPLIT_READ_STREAM))) + getSplitReadStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>( + this, METHODID_SPLIT_READ_STREAM))) .build(); } } /** - * - * *
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
@@ -344,20 +263,19 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * API at the same time.
    * 
*/ - public static final class BigQueryReadStub - extends io.grpc.stub.AbstractAsyncStub { - private BigQueryReadStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadStub extends io.grpc.stub.AbstractAsyncStub { + private BigQueryReadStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected BigQueryReadStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected BigQueryReadStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BigQueryReadStub(channel, callOptions); } /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -377,19 +295,13 @@ protected BigQueryReadStub build(io.grpc.Channel channel, io.grpc.CallOptions ca
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createReadSession(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -399,17 +311,13 @@ public void createReadSession(
      * state of the stream.
      * 
*/ - public void readRows( - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void readRows(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getReadRowsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -424,21 +332,14 @@ public void readRows(
      * completion.
      * 
*/ - public void splitReadStream( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse> - responseObserver) { + public void splitReadStream(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
@@ -446,9 +347,9 @@ public void splitReadStream(
    * API at the same time.
    * 
*/ - public static final class BigQueryReadBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private BigQueryReadBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BigQueryReadBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -459,8 +360,6 @@ protected BigQueryReadBlockingStub build( } /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -480,15 +379,12 @@ protected BigQueryReadBlockingStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession createReadSession( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request) { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession createReadSession(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReadSessionMethod(), getCallOptions(), request); } /** - * - * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -505,8 +401,6 @@ public java.util.Iterator
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -521,16 +415,13 @@ public java.util.Iterator
      */
-    public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse splitReadStream(
-        com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request) {
+    public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse splitReadStream(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request) {
       return io.grpc.stub.ClientCalls.blockingUnaryCall(
           getChannel(), getSplitReadStreamMethod(), getCallOptions(), request);
     }
   }
 
   /**
-   *
-   *
    * 
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
@@ -538,9 +429,9 @@ public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse splitRe
    * API at the same time.
    * 
*/ - public static final class BigQueryReadFutureStub - extends io.grpc.stub.AbstractFutureStub { - private BigQueryReadFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadFutureStub extends io.grpc.stub.AbstractFutureStub { + private BigQueryReadFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -551,8 +442,6 @@ protected BigQueryReadFutureStub build( } /** - * - * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -572,17 +461,13 @@ protected BigQueryReadFutureStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1beta2.ReadSession> - createReadSession( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request) { + public com.google.common.util.concurrent.ListenableFuture createReadSession( + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request); } /** - * - * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -597,9 +482,8 @@ protected BigQueryReadFutureStub build(
      * completion.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse> - splitReadStream(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request) { + public com.google.common.util.concurrent.ListenableFuture splitReadStream( + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request); } @@ -609,11 +493,11 @@ protected BigQueryReadFutureStub build( private static final int METHODID_READ_ROWS = 1; private static final int METHODID_SPLIT_READ_STREAM = 2; - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { private final BigQueryReadImplBase serviceImpl; private final int methodId; @@ -627,24 +511,16 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_CREATE_READ_SESSION: - serviceImpl.createReadSession( - (com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); + serviceImpl.createReadSession((com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_READ_ROWS: - serviceImpl.readRows( - (com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>) - responseObserver); + serviceImpl.readRows((com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SPLIT_READ_STREAM: - serviceImpl.splitReadStream( - (com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>) - responseObserver); + serviceImpl.splitReadStream((com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -662,9 +538,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class BigQueryReadBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class BigQueryReadBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { BigQueryReadBaseDescriptorSupplier() {} @java.lang.Override @@ -706,14 +581,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (BigQueryReadGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BigQueryReadFileDescriptorSupplier()) - .addMethod(getCreateReadSessionMethod()) - .addMethod(getReadRowsMethod()) - .addMethod(getSplitReadStreamMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BigQueryReadFileDescriptorSupplier()) + .addMethod(getCreateReadSessionMethod()) + .addMethod(getReadRowsMethod()) + .addMethod(getSplitReadStreamMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java b/owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java new file mode 100644 index 0000000000..b9d3ede974 --- /dev/null +++ b/owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java @@ -0,0 +1,806 @@ +package com.google.cloud.bigquery.storage.v1beta2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * BigQuery Write API.
+ * The Write API can be used to write data to BigQuery.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/storage/v1beta2/storage.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BigQueryWriteGrpc { + + private BigQueryWriteGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1beta2.BigQueryWrite"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWriteStream", + requestType = com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWriteStreamMethod() { + io.grpc.MethodDescriptor getCreateWriteStreamMethod; + if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { + BigQueryWriteGrpc.getCreateWriteStreamMethod = getCreateWriteStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("CreateWriteStream")) + .build(); + } + } + } + return getCreateWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getAppendRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AppendRows", + requestType = com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getAppendRowsMethod() { + io.grpc.MethodDescriptor getAppendRowsMethod; + if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { + BigQueryWriteGrpc.getAppendRowsMethod = getAppendRowsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AppendRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("AppendRows")) + .build(); + } + } + } + return getAppendRowsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWriteStream", + requestType = com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetWriteStreamMethod() { + io.grpc.MethodDescriptor getGetWriteStreamMethod; + if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { + BigQueryWriteGrpc.getGetWriteStreamMethod = getGetWriteStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("GetWriteStream")) + .build(); + } + } + } + return getGetWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getFinalizeWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FinalizeWriteStream", + requestType = com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFinalizeWriteStreamMethod() { + io.grpc.MethodDescriptor getFinalizeWriteStreamMethod; + if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { + BigQueryWriteGrpc.getFinalizeWriteStreamMethod = getFinalizeWriteStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FinalizeWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FinalizeWriteStream")) + .build(); + } + } + } + return getFinalizeWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchCommitWriteStreams", + requestType = com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod() { + io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod; + if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) == null) { + BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod = getBatchCommitWriteStreamsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCommitWriteStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("BatchCommitWriteStreams")) + .build(); + } + } + } + return getBatchCommitWriteStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor getFlushRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FlushRows", + requestType = com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFlushRowsMethod() { + io.grpc.MethodDescriptor getFlushRowsMethod; + if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { + BigQueryWriteGrpc.getFlushRowsMethod = getFlushRowsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FlushRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FlushRows")) + .build(); + } + } + } + return getFlushRowsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static BigQueryWriteStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteStub(channel, callOptions); + } + }; + return BigQueryWriteStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BigQueryWriteBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteBlockingStub(channel, callOptions); + } + }; + return BigQueryWriteBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static BigQueryWriteFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteFutureStub(channel, callOptions); + } + }; + return BigQueryWriteFutureStub.newStub(factory, channel); + } + + /** + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * 
+ */ + public static abstract class BigQueryWriteImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special COMMITTED stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public void createWriteStream(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWriteStreamMethod(), responseObserver); + } + + /** + *
+     * Appends data to the given stream.
+     * If `offset` is specified, the `offset` is checked against the end of
+     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
+     * attempt is made to append to an offset beyond the current end of the stream
+     * or `ALREADY_EXISTS` if user provids an `offset` that has already been
+     * written to. User can retry with adjusted offset within the same RPC
+     * stream. If `offset` is not specified, append happens at the end of the
+     * stream.
+     * The response contains the offset at which the append happened. Responses
+     * are received in the same order in which requests are sent. There will be
+     * one response for each successful request. If the `offset` is not set in
+     * response, it means append didn't happen due to some errors. If one request
+     * fails, all the subsequent requests will also fail until a success request
+     * is made again.
+     * If the stream is of `PENDING` type, data will only be available for read
+     * operations after the stream is committed.
+     * 
+ */ + public io.grpc.stub.StreamObserver appendRows( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getAppendRowsMethod(), responseObserver); + } + + /** + *
+     * Gets a write stream.
+     * 
+ */ + public void getWriteStream(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWriteStreamMethod(), responseObserver); + } + + /** + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public void finalizeWriteStream(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFinalizeWriteStreamMethod(), responseObserver); + } + + /** + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public void batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchCommitWriteStreamsMethod(), responseObserver); + } + + /** + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public void flushRows(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushRowsMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.WriteStream>( + this, METHODID_CREATE_WRITE_STREAM))) + .addMethod( + getAppendRowsMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse>( + this, METHODID_APPEND_ROWS))) + .addMethod( + getGetWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.WriteStream>( + this, METHODID_GET_WRITE_STREAM))) + .addMethod( + getFinalizeWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse>( + this, METHODID_FINALIZE_WRITE_STREAM))) + .addMethod( + getBatchCommitWriteStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse>( + this, METHODID_BATCH_COMMIT_WRITE_STREAMS))) + .addMethod( + getFlushRowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse>( + this, METHODID_FLUSH_ROWS))) + .build(); + } + } + + /** + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * 
+ */ + public static final class BigQueryWriteStub extends io.grpc.stub.AbstractAsyncStub { + private BigQueryWriteStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteStub(channel, callOptions); + } + + /** + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special COMMITTED stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public void createWriteStream(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Appends data to the given stream.
+     * If `offset` is specified, the `offset` is checked against the end of
+     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
+     * attempt is made to append to an offset beyond the current end of the stream
+     * or `ALREADY_EXISTS` if user provids an `offset` that has already been
+     * written to. User can retry with adjusted offset within the same RPC
+     * stream. If `offset` is not specified, append happens at the end of the
+     * stream.
+     * The response contains the offset at which the append happened. Responses
+     * are received in the same order in which requests are sent. There will be
+     * one response for each successful request. If the `offset` is not set in
+     * response, it means append didn't happen due to some errors. If one request
+     * fails, all the subsequent requests will also fail until a success request
+     * is made again.
+     * If the stream is of `PENDING` type, data will only be available for read
+     * operations after the stream is committed.
+     * 
+ */ + public io.grpc.stub.StreamObserver appendRows( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getAppendRowsMethod(), getCallOptions()), responseObserver); + } + + /** + *
+     * Gets a write stream.
+     * 
+ */ + public void getWriteStream(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public void finalizeWriteStream(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public void batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public void flushRows(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * 
+ */ + public static final class BigQueryWriteBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private BigQueryWriteBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special COMMITTED stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1beta2.WriteStream createWriteStream(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWriteStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a write stream.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWriteStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse finalizeWriteStream(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFinalizeWriteStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCommitWriteStreamsMethod(), getCallOptions(), request); + } + + /** + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse flushRows(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFlushRowsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * 
+ */ + public static final class BigQueryWriteFutureStub extends io.grpc.stub.AbstractFutureStub { + private BigQueryWriteFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteFutureStub(channel, callOptions); + } + + /** + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special COMMITTED stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createWriteStream( + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a write stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getWriteStream( + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture finalizeWriteStream( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture batchCommitWriteStreams( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request); + } + + /** + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture flushRows( + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_WRITE_STREAM = 0; + private static final int METHODID_GET_WRITE_STREAM = 1; + private static final int METHODID_FINALIZE_WRITE_STREAM = 2; + private static final int METHODID_BATCH_COMMIT_WRITE_STREAMS = 3; + private static final int METHODID_FLUSH_ROWS = 4; + private static final int METHODID_APPEND_ROWS = 5; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final BigQueryWriteImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BigQueryWriteImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_WRITE_STREAM: + serviceImpl.createWriteStream((com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_WRITE_STREAM: + serviceImpl.getWriteStream((com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FINALIZE_WRITE_STREAM: + serviceImpl.finalizeWriteStream((com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_BATCH_COMMIT_WRITE_STREAMS: + serviceImpl.batchCommitWriteStreams((com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FLUSH_ROWS: + serviceImpl.flushRows((com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_APPEND_ROWS: + return (io.grpc.stub.StreamObserver) serviceImpl.appendRows( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class BigQueryWriteBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BigQueryWriteBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BigQueryWrite"); + } + } + + private static final class BigQueryWriteFileDescriptorSupplier + extends BigQueryWriteBaseDescriptorSupplier { + BigQueryWriteFileDescriptorSupplier() {} + } + + private static final class BigQueryWriteMethodDescriptorSupplier + extends BigQueryWriteBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BigQueryWriteMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (BigQueryWriteGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BigQueryWriteFileDescriptorSupplier()) + .addMethod(getCreateWriteStreamMethod()) + .addMethod(getAppendRowsMethod()) + .addMethod(getGetWriteStreamMethod()) + .addMethod(getFinalizeWriteStreamMethod()) + .addMethod(getBatchCommitWriteStreamsMethod()) + .addMethod(getFlushRowsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java similarity index 70% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java index a7410205bd..b877ad3a29 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Request message for `AppendRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsRequest} */ -public final class AppendRowsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AppendRowsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) AppendRowsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AppendRowsRequest.newBuilder() to construct. private AppendRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AppendRowsRequest() { writeStream_ = ""; traceId_ = ""; @@ -44,62 +26,52 @@ private AppendRowsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AppendRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.Builder.class); } - public interface ProtoDataOrBuilder - extends + public interface ProtoDataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Proto schema used to serialize the data.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; - * * @return Whether the writerSchema field is set. */ boolean hasWriterSchema(); /** - * - * *
      * Proto schema used to serialize the data.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; - * * @return The writerSchema. */ com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getWriterSchema(); /** - * - * *
      * Proto schema used to serialize the data.
      * 
@@ -109,32 +81,24 @@ public interface ProtoDataOrBuilder com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder getWriterSchemaOrBuilder(); /** - * - * *
      * Serialized row data in protobuf message format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; - * * @return Whether the rows field is set. */ boolean hasRows(); /** - * - * *
      * Serialized row data in protobuf message format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; - * * @return The rows. */ com.google.cloud.bigquery.storage.v1beta2.ProtoRows getRows(); /** - * - * *
      * Serialized row data in protobuf message format.
      * 
@@ -144,63 +108,57 @@ public interface ProtoDataOrBuilder com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder getRowsOrBuilder(); } /** - * - * *
    * Proto schema and data.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData} */ - public static final class ProtoData extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ProtoData extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) ProtoDataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProtoData.newBuilder() to construct. private ProtoData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ProtoData() {} + private ProtoData() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProtoData(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.class, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder.class); } public static final int WRITER_SCHEMA_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta2.ProtoSchema writerSchema_; /** - * - * *
      * Proto schema used to serialize the data.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; - * * @return Whether the writerSchema field is set. */ @java.lang.Override @@ -208,25 +166,18 @@ public boolean hasWriterSchema() { return writerSchema_ != null; } /** - * - * *
      * Proto schema used to serialize the data.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; - * * @return The writerSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getWriterSchema() { - return writerSchema_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() - : writerSchema_; + return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() : writerSchema_; } /** - * - * *
      * Proto schema used to serialize the data.
      * 
@@ -234,24 +185,18 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getWriterSchema() { * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder - getWriterSchemaOrBuilder() { - return writerSchema_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() - : writerSchema_; + public com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder getWriterSchemaOrBuilder() { + return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() : writerSchema_; } public static final int ROWS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta2.ProtoRows rows_; /** - * - * *
      * Serialized row data in protobuf message format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; - * * @return Whether the rows field is set. */ @java.lang.Override @@ -259,25 +204,18 @@ public boolean hasRows() { return rows_ != null; } /** - * - * *
      * Serialized row data in protobuf message format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; - * * @return The rows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ProtoRows getRows() { - return rows_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() - : rows_; + return rows_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() : rows_; } /** - * - * *
      * Serialized row data in protobuf message format.
      * 
@@ -286,13 +224,10 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoRows getRows() { */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder getRowsOrBuilder() { - return rows_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() - : rows_; + return rows_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() : rows_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (writerSchema_ != null) { output.writeMessage(1, getWriterSchema()); } @@ -327,10 +263,12 @@ public int getSerializedSize() { size = 0; if (writerSchema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWriterSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getWriterSchema()); } if (rows_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRows()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRows()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -340,21 +278,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData other = - (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) obj; + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData other = (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) obj; if (hasWriterSchema() != other.hasWriterSchema()) return false; if (hasWriterSchema()) { - if (!getWriterSchema().equals(other.getWriterSchema())) return false; + if (!getWriterSchema() + .equals(other.getWriterSchema())) return false; } if (hasRows() != other.hasRows()) return false; if (hasRows()) { - if (!getRows().equals(other.getRows())) return false; + if (!getRows() + .equals(other.getRows())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -381,95 +320,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -479,43 +410,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Proto schema and data.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.class, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder - .class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -534,22 +461,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData build() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -558,24 +482,23 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData bui @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result = - new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.writerSchema_ = - writerSchemaBuilder_ == null ? writerSchema_ : writerSchemaBuilder_.build(); + result.writerSchema_ = writerSchemaBuilder_ == null + ? writerSchema_ + : writerSchemaBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.rows_ = rowsBuilder_ == null ? rows_ : rowsBuilder_.build(); + result.rows_ = rowsBuilder_ == null + ? rows_ + : rowsBuilder_.build(); } } @@ -583,54 +506,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance()) return this; if (other.hasWriterSchema()) { mergeWriterSchema(other.getWriterSchema()); } @@ -668,25 +583,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getWriterSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRowsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getWriterSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getRowsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -696,52 +612,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.bigquery.storage.v1beta2.ProtoSchema writerSchema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder> - writerSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder> writerSchemaBuilder_; /** - * - * *
        * Proto schema used to serialize the data.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; - * * @return Whether the writerSchema field is set. */ public boolean hasWriterSchema() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * Proto schema used to serialize the data.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; - * * @return The writerSchema. */ public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getWriterSchema() { if (writerSchemaBuilder_ == null) { - return writerSchema_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() - : writerSchema_; + return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() : writerSchema_; } else { return writerSchemaBuilder_.getMessage(); } } /** - * - * *
        * Proto schema used to serialize the data.
        * 
@@ -762,8 +664,6 @@ public Builder setWriterSchema(com.google.cloud.bigquery.storage.v1beta2.ProtoSc return this; } /** - * - * *
        * Proto schema used to serialize the data.
        * 
@@ -782,21 +682,17 @@ public Builder setWriterSchema( return this; } /** - * - * *
        * Proto schema used to serialize the data.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; */ - public Builder mergeWriterSchema( - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema value) { + public Builder mergeWriterSchema(com.google.cloud.bigquery.storage.v1beta2.ProtoSchema value) { if (writerSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && writerSchema_ != null - && writerSchema_ - != com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + writerSchema_ != null && + writerSchema_ != com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance()) { getWriterSchemaBuilder().mergeFrom(value); } else { writerSchema_ = value; @@ -809,8 +705,6 @@ public Builder mergeWriterSchema( return this; } /** - * - * *
        * Proto schema used to serialize the data.
        * 
@@ -828,42 +722,33 @@ public Builder clearWriterSchema() { return this; } /** - * - * *
        * Proto schema used to serialize the data.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; */ - public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder - getWriterSchemaBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder getWriterSchemaBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWriterSchemaFieldBuilder().getBuilder(); } /** - * - * *
        * Proto schema used to serialize the data.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; */ - public com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder - getWriterSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder getWriterSchemaOrBuilder() { if (writerSchemaBuilder_ != null) { return writerSchemaBuilder_.getMessageOrBuilder(); } else { - return writerSchema_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() - : writerSchema_; + return writerSchema_ == null ? + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() : writerSchema_; } } /** - * - * *
        * Proto schema used to serialize the data.
        * 
@@ -871,17 +756,14 @@ public Builder clearWriterSchema() { * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder> getWriterSchemaFieldBuilder() { if (writerSchemaBuilder_ == null) { - writerSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder>( - getWriterSchema(), getParentForChildren(), isClean()); + writerSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder>( + getWriterSchema(), + getParentForChildren(), + isClean()); writerSchema_ = null; } return writerSchemaBuilder_; @@ -889,47 +771,34 @@ public Builder clearWriterSchema() { private com.google.cloud.bigquery.storage.v1beta2.ProtoRows rows_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoRows, - com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, - com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder> - rowsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ProtoRows, com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder> rowsBuilder_; /** - * - * *
        * Serialized row data in protobuf message format.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; - * * @return Whether the rows field is set. */ public boolean hasRows() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
        * Serialized row data in protobuf message format.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; - * * @return The rows. */ public com.google.cloud.bigquery.storage.v1beta2.ProtoRows getRows() { if (rowsBuilder_ == null) { - return rows_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() - : rows_; + return rows_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() : rows_; } else { return rowsBuilder_.getMessage(); } } /** - * - * *
        * Serialized row data in protobuf message format.
        * 
@@ -950,8 +819,6 @@ public Builder setRows(com.google.cloud.bigquery.storage.v1beta2.ProtoRows value return this; } /** - * - * *
        * Serialized row data in protobuf message format.
        * 
@@ -970,8 +837,6 @@ public Builder setRows( return this; } /** - * - * *
        * Serialized row data in protobuf message format.
        * 
@@ -980,10 +845,9 @@ public Builder setRows( */ public Builder mergeRows(com.google.cloud.bigquery.storage.v1beta2.ProtoRows value) { if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && rows_ != null - && rows_ - != com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + rows_ != null && + rows_ != com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance()) { getRowsBuilder().mergeFrom(value); } else { rows_ = value; @@ -996,8 +860,6 @@ public Builder mergeRows(com.google.cloud.bigquery.storage.v1beta2.ProtoRows val return this; } /** - * - * *
        * Serialized row data in protobuf message format.
        * 
@@ -1015,8 +877,6 @@ public Builder clearRows() { return this; } /** - * - * *
        * Serialized row data in protobuf message format.
        * 
@@ -1029,8 +889,6 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder getRowsBuilde return getRowsFieldBuilder().getBuilder(); } /** - * - * *
        * Serialized row data in protobuf message format.
        * 
@@ -1041,14 +899,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder getRowsOrBui if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilder(); } else { - return rows_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() - : rows_; + return rows_ == null ? + com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() : rows_; } } /** - * - * *
        * Serialized row data in protobuf message format.
        * 
@@ -1056,22 +911,18 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder getRowsOrBui * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoRows, - com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, - com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ProtoRows, com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoRows, - com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, - com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder>( - getRows(), getParentForChildren(), isClean()); + rowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ProtoRows, com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder>( + getRows(), + getParentForChildren(), + isClean()); rows_ = null; } return rowsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1084,45 +935,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) - private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData(); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProtoData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1134,23 +981,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int rowsCase_ = 0; private java.lang.Object rows_; - public enum RowsCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PROTO_ROWS(4), ROWS_NOT_SET(0); private final int value; - private RowsCase(int value) { this.value = value; } @@ -1166,31 +1010,26 @@ public static RowsCase valueOf(int value) { public static RowsCase forNumber(int value) { switch (value) { - case 4: - return PROTO_ROWS; - case 0: - return ROWS_NOT_SET; - default: - return null; + case 4: return PROTO_ROWS; + case 0: return ROWS_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RowsCase getRowsCase() { - return RowsCase.forNumber(rowsCase_); + public RowsCase + getRowsCase() { + return RowsCase.forNumber( + rowsCase_); } public static final int WRITE_STREAM_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object writeStream_ = ""; /** - * - * *
    * Required. The stream that is the target of the append operation. This value must be
    * specified for the initial request. If subsequent requests specify the
@@ -1199,10 +1038,7 @@ public RowsCase getRowsCase() {
    * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ @java.lang.Override @@ -1211,15 +1047,14 @@ public java.lang.String getWriteStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; } } /** - * - * *
    * Required. The stream that is the target of the append operation. This value must be
    * specified for the initial request. If subsequent requests specify the
@@ -1228,18 +1063,17 @@ public java.lang.String getWriteStream() {
    * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ @java.lang.Override - public com.google.protobuf.ByteString getWriteStreamBytes() { + public com.google.protobuf.ByteString + getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeStream_ = b; return b; } else { @@ -1250,8 +1084,6 @@ public com.google.protobuf.ByteString getWriteStreamBytes() { public static final int OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value offset_; /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1260,7 +1092,6 @@ public com.google.protobuf.ByteString getWriteStreamBytes() {
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ @java.lang.Override @@ -1268,8 +1099,6 @@ public boolean hasOffset() { return offset_ != null; } /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1278,7 +1107,6 @@ public boolean hasOffset() {
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ @java.lang.Override @@ -1286,8 +1114,6 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1304,14 +1130,11 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
 
   public static final int PROTO_ROWS_FIELD_NUMBER = 4;
   /**
-   *
-   *
    * 
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * * @return Whether the protoRows field is set. */ @java.lang.Override @@ -1319,27 +1142,21 @@ public boolean hasProtoRows() { return rowsCase_ == 4; } /** - * - * *
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * * @return The protoRows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData getProtoRows() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); } /** - * - * *
    * Rows in proto format.
    * 
@@ -1347,29 +1164,23 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData get * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder - getProtoRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); } public static final int TRACE_ID_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object traceId_ = ""; /** - * - * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; - * * @return The traceId. */ @java.lang.Override @@ -1378,30 +1189,30 @@ public java.lang.String getTraceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; } } /** - * - * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; - * * @return The bytes for traceId. */ @java.lang.Override - public com.google.protobuf.ByteString getTraceIdBytes() { + public com.google.protobuf.ByteString + getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); traceId_ = b; return b; } else { @@ -1410,7 +1221,6 @@ public com.google.protobuf.ByteString getTraceIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1428,7 +1238,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeStream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, writeStream_); } @@ -1436,8 +1247,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, getOffset()); } if (rowsCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_); + output.writeMessage(4, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, traceId_); @@ -1455,12 +1265,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, writeStream_); } if (offset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOffset()); } if (rowsCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, traceId_); @@ -1473,24 +1283,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest other = - (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest other = (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) obj; - if (!getWriteStream().equals(other.getWriteStream())) return false; + if (!getWriteStream() + .equals(other.getWriteStream())) return false; if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { - if (!getOffset().equals(other.getOffset())) return false; + if (!getOffset() + .equals(other.getOffset())) return false; } - if (!getTraceId().equals(other.getTraceId())) return false; + if (!getTraceId() + .equals(other.getTraceId())) return false; if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 4: - if (!getProtoRows().equals(other.getProtoRows())) return false; + if (!getProtoRows() + .equals(other.getProtoRows())) return false; break; case 0: default: @@ -1528,136 +1341,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `AppendRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1678,9 +1484,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; } @java.lang.Override @@ -1699,11 +1505,8 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest result = - new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest result = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1715,18 +1518,20 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AppendRowsR result.writeStream_ = writeStream_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build(); + result.offset_ = offsetBuilder_ == null + ? offset_ + : offsetBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.traceId_ = traceId_; } } - private void buildPartialOneofs( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest result) { + private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest result) { result.rowsCase_ = rowsCase_; result.rows_ = this.rows_; - if (rowsCase_ == 4 && protoRowsBuilder_ != null) { + if (rowsCase_ == 4 && + protoRowsBuilder_ != null) { result.rows_ = protoRowsBuilder_.build(); } } @@ -1735,39 +1540,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest)other); } else { super.mergeFrom(other); return this; @@ -1775,8 +1579,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.getDefaultInstance()) return this; if (!other.getWriteStream().isEmpty()) { writeStream_ = other.writeStream_; bitField0_ |= 0x00000001; @@ -1791,15 +1594,13 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AppendRowsReq onChanged(); } switch (other.getRowsCase()) { - case PROTO_ROWS: - { - mergeProtoRows(other.getProtoRows()); - break; - } - case ROWS_NOT_SET: - { - break; - } + case PROTO_ROWS: { + mergeProtoRows(other.getProtoRows()); + break; + } + case ROWS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1832,37 +1633,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - writeStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - input.readMessage(getProtoRowsFieldBuilder().getBuilder(), extensionRegistry); - rowsCase_ = 4; - break; - } // case 34 - case 50: - { - traceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + writeStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + input.readMessage( + getProtoRowsFieldBuilder().getBuilder(), + extensionRegistry); + rowsCase_ = 4; + break; + } // case 34 + case 50: { + traceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1872,12 +1672,12 @@ public Builder mergeFrom( } // finally return this; } - private int rowsCase_ = 0; private java.lang.Object rows_; - - public RowsCase getRowsCase() { - return RowsCase.forNumber(rowsCase_); + public RowsCase + getRowsCase() { + return RowsCase.forNumber( + rowsCase_); } public Builder clearRows() { @@ -1891,8 +1691,6 @@ public Builder clearRows() { private java.lang.Object writeStream_ = ""; /** - * - * *
      * Required. The stream that is the target of the append operation. This value must be
      * specified for the initial request. If subsequent requests specify the
@@ -1901,16 +1699,14 @@ public Builder clearRows() {
      * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ public java.lang.String getWriteStream() { java.lang.Object ref = writeStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; @@ -1919,8 +1715,6 @@ public java.lang.String getWriteStream() { } } /** - * - * *
      * Required. The stream that is the target of the append operation. This value must be
      * specified for the initial request. If subsequent requests specify the
@@ -1929,17 +1723,16 @@ public java.lang.String getWriteStream() {
      * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ - public com.google.protobuf.ByteString getWriteStreamBytes() { + public com.google.protobuf.ByteString + getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeStream_ = b; return b; } else { @@ -1947,8 +1740,6 @@ public com.google.protobuf.ByteString getWriteStreamBytes() { } } /** - * - * *
      * Required. The stream that is the target of the append operation. This value must be
      * specified for the initial request. If subsequent requests specify the
@@ -1957,25 +1748,19 @@ public com.google.protobuf.ByteString getWriteStreamBytes() {
      * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStream(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStream( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } writeStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The stream that is the target of the append operation. This value must be
      * specified for the initial request. If subsequent requests specify the
@@ -1984,10 +1769,7 @@ public Builder setWriteStream(java.lang.String value) {
      * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearWriteStream() { @@ -1997,8 +1779,6 @@ public Builder clearWriteStream() { return this; } /** - * - * *
      * Required. The stream that is the target of the append operation. This value must be
      * specified for the initial request. If subsequent requests specify the
@@ -2007,17 +1787,13 @@ public Builder clearWriteStream() {
      * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStreamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); writeStream_ = value; bitField0_ |= 0x00000001; @@ -2027,13 +1803,8 @@ public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - offsetBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; /** - * - * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2042,15 +1813,12 @@ public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2059,7 +1827,6 @@ public boolean hasOffset() {
      * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -2070,8 +1837,6 @@ public com.google.protobuf.Int64Value getOffset() { } } /** - * - * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2095,8 +1860,6 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2106,7 +1869,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value offset = 2;
      */
-    public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setOffset(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (offsetBuilder_ == null) {
         offset_ = builderForValue.build();
       } else {
@@ -2117,8 +1881,6 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2130,9 +1892,9 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
      */
     public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       if (offsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && offset_ != null
-            && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          offset_ != null &&
+          offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
           getOffsetBuilder().mergeFrom(value);
         } else {
           offset_ = value;
@@ -2145,8 +1907,6 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2167,8 +1927,6 @@ public Builder clearOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2184,8 +1942,6 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
       return getOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2199,12 +1955,11 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
       if (offsetBuilder_ != null) {
         return offsetBuilder_.getMessageOrBuilder();
       } else {
-        return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+        return offset_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
       }
     }
     /**
-     *
-     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2215,37 +1970,27 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
      * .google.protobuf.Int64Value offset = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getOffsetFieldBuilder() {
       if (offsetBuilder_ == null) {
-        offsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getOffset(), getParentForChildren(), isClean());
+        offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getOffset(),
+                getParentForChildren(),
+                isClean());
         offset_ = null;
       }
       return offsetBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData,
-            com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder>
-        protoRowsBuilder_;
+        com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder> protoRowsBuilder_;
     /**
-     *
-     *
      * 
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; * @return Whether the protoRows field is set. */ @java.lang.Override @@ -2253,15 +1998,11 @@ public boolean hasProtoRows() { return rowsCase_ == 4; } /** - * - * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; * @return The protoRows. */ @java.lang.Override @@ -2270,28 +2011,22 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData get if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); } else { if (rowsCase_ == 4) { return protoRowsBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); } } /** - * - * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ - public Builder setProtoRows( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData value) { + public Builder setProtoRows(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData value) { if (protoRowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2305,18 +2040,14 @@ public Builder setProtoRows( return this; } /** - * - * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ public Builder setProtoRows( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder builderForValue) { if (protoRowsBuilder_ == null) { rows_ = builderForValue.build(); onChanged(); @@ -2327,27 +2058,18 @@ public Builder setProtoRows( return this; } /** - * - * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ - public Builder mergeProtoRows( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData value) { + public Builder mergeProtoRows(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData value) { if (protoRowsBuilder_ == null) { - if (rowsCase_ == 4 - && rows_ - != com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - .getDefaultInstance()) { - rows_ = - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.newBuilder( - (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_) - .mergeFrom(value) - .buildPartial(); + if (rowsCase_ == 4 && + rows_ != com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance()) { + rows_ = com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.newBuilder((com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_) + .mergeFrom(value).buildPartial(); } else { rows_ = value; } @@ -2363,14 +2085,11 @@ public Builder mergeProtoRows( return this; } /** - * - * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ public Builder clearProtoRows() { if (protoRowsBuilder_ == null) { @@ -2389,68 +2108,49 @@ public Builder clearProtoRows() { return this; } /** - * - * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder - getProtoRowsBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder getProtoRowsBuilder() { return getProtoRowsFieldBuilder().getBuilder(); } /** - * - * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder - getProtoRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder() { if ((rowsCase_ == 4) && (protoRowsBuilder_ != null)) { return protoRowsBuilder_.getMessageOrBuilder(); } else { if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); } } /** - * - * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder> getProtoRowsFieldBuilder() { if (protoRowsBuilder_ == null) { if (!(rowsCase_ == 4)) { - rows_ = - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData - .getDefaultInstance(); + rows_ = com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); } - protoRowsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder>( + protoRowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_, getParentForChildren(), isClean()); @@ -2463,21 +2163,19 @@ public Builder clearProtoRows() { private java.lang.Object traceId_ = ""; /** - * - * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; - * * @return The traceId. */ public java.lang.String getTraceId() { java.lang.Object ref = traceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; @@ -2486,22 +2184,21 @@ public java.lang.String getTraceId() { } } /** - * - * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; - * * @return The bytes for traceId. */ - public com.google.protobuf.ByteString getTraceIdBytes() { + public com.google.protobuf.ByteString + getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); traceId_ = b; return b; } else { @@ -2509,37 +2206,30 @@ public com.google.protobuf.ByteString getTraceIdBytes() { } } /** - * - * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; - * * @param value The traceId to set. * @return This builder for chaining. */ - public Builder setTraceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTraceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } traceId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; - * * @return This builder for chaining. */ public Builder clearTraceId() { @@ -2549,31 +2239,27 @@ public Builder clearTraceId() { return this; } /** - * - * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; - * * @param value The bytes for traceId to set. * @return This builder for chaining. */ - public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTraceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); traceId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2583,12 +2269,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest(); } @@ -2597,27 +2283,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppendRowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppendRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2632,4 +2318,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java index 8b721dcaf2..d42f115212 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface AppendRowsRequestOrBuilder - extends +public interface AppendRowsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The stream that is the target of the append operation. This value must be
    * specified for the initial request. If subsequent requests specify the
@@ -34,16 +16,11 @@ public interface AppendRowsRequestOrBuilder
    * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ java.lang.String getWriteStream(); /** - * - * *
    * Required. The stream that is the target of the append operation. This value must be
    * specified for the initial request. If subsequent requests specify the
@@ -52,17 +29,13 @@ public interface AppendRowsRequestOrBuilder
    * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ - com.google.protobuf.ByteString getWriteStreamBytes(); + com.google.protobuf.ByteString + getWriteStreamBytes(); /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -71,13 +44,10 @@ public interface AppendRowsRequestOrBuilder
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ boolean hasOffset(); /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -86,13 +56,10 @@ public interface AppendRowsRequestOrBuilder
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** - * - * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -105,67 +72,53 @@ public interface AppendRowsRequestOrBuilder
   com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder();
 
   /**
-   *
-   *
    * 
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * * @return Whether the protoRows field is set. */ boolean hasProtoRows(); /** - * - * *
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; - * * @return The protoRows. */ com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData getProtoRows(); /** - * - * *
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder - getProtoRowsOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder(); /** - * - * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; - * * @return The traceId. */ java.lang.String getTraceId(); /** - * - * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; - * * @return The bytes for traceId. */ - com.google.protobuf.ByteString getTraceIdBytes(); + com.google.protobuf.ByteString + getTraceIdBytes(); public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.RowsCase getRowsCase(); } diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java similarity index 69% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java index 76d315ceac..9be99785e0 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java @@ -1,104 +1,77 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Response message for `AppendRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsResponse} */ -public final class AppendRowsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AppendRowsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) AppendRowsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AppendRowsResponse.newBuilder() to construct. private AppendRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AppendRowsResponse() {} + private AppendRowsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AppendRowsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.Builder.class); } - public interface AppendResultOrBuilder - extends + public interface AppendResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; - * * @return Whether the offset field is set. */ boolean hasOffset(); /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; - * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
@@ -109,65 +82,58 @@ public interface AppendResultOrBuilder
     com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder();
   }
   /**
-   *
-   *
    * 
    * AppendResult is returned for successful append requests.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult} */ - public static final class AppendResult extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AppendResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) AppendResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AppendResult.newBuilder() to construct. private AppendResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AppendResult() {} + private AppendResult() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AppendResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.class, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder - .class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private com.google.protobuf.Int64Value offset_; /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; - * * @return Whether the offset field is set. */ @java.lang.Override @@ -175,15 +141,12 @@ public boolean hasOffset() { return offset_ != null; } /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; - * * @return The offset. */ @java.lang.Override @@ -191,8 +154,6 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** - * - * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
@@ -206,7 +167,6 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
-
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -218,7 +178,8 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output)
+                        throws java.io.IOException {
       if (offset_ != null) {
         output.writeMessage(1, getOffset());
       }
@@ -232,7 +193,8 @@ public int getSerializedSize() {
 
       size = 0;
       if (offset_ != null) {
-        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOffset());
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, getOffset());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -242,18 +204,17 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-        return true;
+       return true;
       }
-      if (!(obj
-          instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)) {
+      if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult other =
-          (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) obj;
+      com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult other = (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) obj;
 
       if (hasOffset() != other.hasOffset()) return false;
       if (hasOffset()) {
-        if (!getOffset().equals(other.getOffset())) return false;
+        if (!getOffset()
+            .equals(other.getOffset())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -275,101 +236,88 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseFrom(java.nio.ByteBuffer data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseFrom(
-            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseFrom(com.google.protobuf.ByteString data)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseFrom(
-            com.google.protobuf.ByteString data,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
+        com.google.protobuf.ByteString data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseDelimitedFrom(
-            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
     }
-
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        parseFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-          PARSER, input, extensionRegistry);
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() {
-      return newBuilder();
-    }
-
+    public Builder newBuilderForType() { return newBuilder(); }
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-
-    public static Builder newBuilder(
-        com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult prototype) {
+    public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
-
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -379,43 +327,39 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
-     *
-     *
      * 
      * AppendResult is returned for successful append requests.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.class, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder - .class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -429,22 +373,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult build() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -452,22 +393,19 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result = - new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult buildPartial() { + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build(); + result.offset_ = offsetBuilder_ == null + ? offset_ + : offsetBuilder_.build(); } } @@ -475,54 +413,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance()) return this; if (other.hasOffset()) { mergeOffset(other.getOffset()); } @@ -552,19 +482,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -574,40 +504,30 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - offsetBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; /** - * - * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
        * 
* * .google.protobuf.Int64Value offset = 1; - * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
        * 
* * .google.protobuf.Int64Value offset = 1; - * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -618,8 +538,6 @@ public com.google.protobuf.Int64Value getOffset() { } } /** - * - * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -641,8 +559,6 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -650,7 +566,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
        *
        * .google.protobuf.Int64Value offset = 1;
        */
-      public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
+      public Builder setOffset(
+          com.google.protobuf.Int64Value.Builder builderForValue) {
         if (offsetBuilder_ == null) {
           offset_ = builderForValue.build();
         } else {
@@ -661,8 +578,6 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
         return this;
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -672,9 +587,9 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
        */
       public Builder mergeOffset(com.google.protobuf.Int64Value value) {
         if (offsetBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0)
-              && offset_ != null
-              && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0) &&
+            offset_ != null &&
+            offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
             getOffsetBuilder().mergeFrom(value);
           } else {
             offset_ = value;
@@ -687,8 +602,6 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
         return this;
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -707,8 +620,6 @@ public Builder clearOffset() {
         return this;
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -722,8 +633,6 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
         return getOffsetFieldBuilder().getBuilder();
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -735,12 +644,11 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
         if (offsetBuilder_ != null) {
           return offsetBuilder_.getMessageOrBuilder();
         } else {
-          return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+          return offset_ == null ?
+              com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
         }
       }
       /**
-       *
-       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -749,22 +657,18 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
        * .google.protobuf.Int64Value offset = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Int64Value,
-              com.google.protobuf.Int64Value.Builder,
-              com.google.protobuf.Int64ValueOrBuilder>
+          com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
           getOffsetFieldBuilder() {
         if (offsetBuilder_ == null) {
-          offsetBuilder_ =
-              new com.google.protobuf.SingleFieldBuilderV3<
-                  com.google.protobuf.Int64Value,
-                  com.google.protobuf.Int64Value.Builder,
-                  com.google.protobuf.Int64ValueOrBuilder>(
-                  getOffset(), getParentForChildren(), isClean());
+          offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                  getOffset(),
+                  getParentForChildren(),
+                  isClean());
           offset_ = null;
         }
         return offsetBuilder_;
       }
-
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -777,45 +681,41 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
+
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)
-    private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        DEFAULT_INSTANCE;
-
+    private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult DEFAULT_INSTANCE;
     static {
-      DEFAULT_INSTANCE =
-          new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult();
+      DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult();
     }
 
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        getDefaultInstance() {
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser PARSER =
-        new com.google.protobuf.AbstractParser() {
-          @java.lang.Override
-          public AppendResult parsePartialFrom(
-              com.google.protobuf.CodedInputStream input,
-              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-              throws com.google.protobuf.InvalidProtocolBufferException {
-            Builder builder = newBuilder();
-            try {
-              builder.mergeFrom(input, extensionRegistry);
-            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-              throw e.setUnfinishedMessage(builder.buildPartial());
-            } catch (com.google.protobuf.UninitializedMessageException e) {
-              throw e.asInvalidProtocolBufferException()
-                  .setUnfinishedMessage(builder.buildPartial());
-            } catch (java.io.IOException e) {
-              throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                  .setUnfinishedMessage(builder.buildPartial());
-            }
-            return builder.buildPartial();
-          }
-        };
+    private static final com.google.protobuf.Parser
+        PARSER = new com.google.protobuf.AbstractParser() {
+      @java.lang.Override
+      public AppendResult parsePartialFrom(
+          com.google.protobuf.CodedInputStream input,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        Builder builder = newBuilder();
+        try {
+          builder.mergeFrom(input, extensionRegistry);
+        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+          throw e.setUnfinishedMessage(builder.buildPartial());
+        } catch (com.google.protobuf.UninitializedMessageException e) {
+          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+        } catch (java.io.IOException e) {
+          throw new com.google.protobuf.InvalidProtocolBufferException(e)
+              .setUnfinishedMessage(builder.buildPartial());
+        }
+        return builder.buildPartial();
+      }
+    };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -827,24 +727,21 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
-        getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
+
   }
 
   private int responseCase_ = 0;
   private java.lang.Object response_;
-
   public enum ResponseCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     APPEND_RESULT(1),
     ERROR(2),
     RESPONSE_NOT_SET(0);
     private final int value;
-
     private ResponseCase(int value) {
       this.value = value;
     }
@@ -860,37 +757,30 @@ public static ResponseCase valueOf(int value) {
 
     public static ResponseCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return APPEND_RESULT;
-        case 2:
-          return ERROR;
-        case 0:
-          return RESPONSE_NOT_SET;
-        default:
-          return null;
+        case 1: return APPEND_RESULT;
+        case 2: return ERROR;
+        case 0: return RESPONSE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ResponseCase getResponseCase() {
-    return ResponseCase.forNumber(responseCase_);
+  public ResponseCase
+  getResponseCase() {
+    return ResponseCase.forNumber(
+        responseCase_);
   }
 
   public static final int APPEND_RESULT_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; * @return Whether the appendResult field is set. */ @java.lang.Override @@ -898,50 +788,37 @@ public boolean hasAppendResult() { return responseCase_ == 1; } /** - * - * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; * @return The appendResult. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - getAppendResult() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getAppendResult() { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); } /** - * - * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder - getAppendResultOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder() { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); } public static final int ERROR_FIELD_NUMBER = 2; /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -960,7 +837,6 @@ public boolean hasAppendResult() {
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ @java.lang.Override @@ -968,8 +844,6 @@ public boolean hasError() { return responseCase_ == 2; } /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -988,19 +862,16 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (responseCase_ == 2) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -1023,7 +894,7 @@ public com.google.rpc.Status getError() {
   @java.lang.Override
   public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
     if (responseCase_ == 2) {
-      return (com.google.rpc.Status) response_;
+       return (com.google.rpc.Status) response_;
     }
     return com.google.rpc.Status.getDefaultInstance();
   }
@@ -1031,8 +902,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int UPDATED_SCHEMA_FIELD_NUMBER = 3;
   private com.google.cloud.bigquery.storage.v1beta2.TableSchema updatedSchema_;
   /**
-   *
-   *
    * 
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -1040,7 +909,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
    * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; - * * @return Whether the updatedSchema field is set. */ @java.lang.Override @@ -1048,8 +916,6 @@ public boolean hasUpdatedSchema() { return updatedSchema_ != null; } /** - * - * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -1057,18 +923,13 @@ public boolean hasUpdatedSchema() {
    * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; - * * @return The updatedSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableSchema getUpdatedSchema() { - return updatedSchema_ == null - ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() - : updatedSchema_; + return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : updatedSchema_; } /** - * - * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -1078,15 +939,11 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema getUpdatedSchema()
    * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder
-      getUpdatedSchemaOrBuilder() {
-    return updatedSchema_ == null
-        ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()
-        : updatedSchema_;
+  public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getUpdatedSchemaOrBuilder() {
+    return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : updatedSchema_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1098,10 +955,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (responseCase_ == 1) {
-      output.writeMessage(
-          1, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_);
+      output.writeMessage(1, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_);
     }
     if (responseCase_ == 2) {
       output.writeMessage(2, (com.google.rpc.Status) response_);
@@ -1119,19 +976,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (responseCase_ == 1) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              1,
-              (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)
-                  response_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_);
     }
     if (responseCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.rpc.Status) response_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.rpc.Status) response_);
     }
     if (updatedSchema_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdatedSchema());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, getUpdatedSchema());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1141,25 +995,27 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse other =
-        (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) obj;
+    com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse other = (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) obj;
 
     if (hasUpdatedSchema() != other.hasUpdatedSchema()) return false;
     if (hasUpdatedSchema()) {
-      if (!getUpdatedSchema().equals(other.getUpdatedSchema())) return false;
+      if (!getUpdatedSchema()
+          .equals(other.getUpdatedSchema())) return false;
     }
     if (!getResponseCase().equals(other.getResponseCase())) return false;
     switch (responseCase_) {
       case 1:
-        if (!getAppendResult().equals(other.getAppendResult())) return false;
+        if (!getAppendResult()
+            .equals(other.getAppendResult())) return false;
         break;
       case 2:
-        if (!getError().equals(other.getError())) return false;
+        if (!getError()
+            .equals(other.getError())) return false;
         break;
       case 0:
       default:
@@ -1197,136 +1053,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response message for `AppendRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1348,14 +1197,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.getDefaultInstance(); } @@ -1370,33 +1218,31 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result = - new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { - result.updatedSchema_ = - updatedSchemaBuilder_ == null ? updatedSchema_ : updatedSchemaBuilder_.build(); + result.updatedSchema_ = updatedSchemaBuilder_ == null + ? updatedSchema_ + : updatedSchemaBuilder_.build(); } } - private void buildPartialOneofs( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result) { + private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result) { result.responseCase_ = responseCase_; result.response_ = this.response_; - if (responseCase_ == 1 && appendResultBuilder_ != null) { + if (responseCase_ == 1 && + appendResultBuilder_ != null) { result.response_ = appendResultBuilder_.build(); } - if (responseCase_ == 2 && errorBuilder_ != null) { + if (responseCase_ == 2 && + errorBuilder_ != null) { result.response_ = errorBuilder_.build(); } } @@ -1405,39 +1251,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse)other); } else { super.mergeFrom(other); return this; @@ -1445,27 +1290,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.getDefaultInstance()) return this; if (other.hasUpdatedSchema()) { mergeUpdatedSchema(other.getUpdatedSchema()); } switch (other.getResponseCase()) { - case APPEND_RESULT: - { - mergeAppendResult(other.getAppendResult()); - break; - } - case ERROR: - { - mergeError(other.getError()); - break; - } - case RESPONSE_NOT_SET: - { - break; - } + case APPEND_RESULT: { + mergeAppendResult(other.getAppendResult()); + break; + } + case ERROR: { + mergeError(other.getError()); + break; + } + case RESPONSE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1493,31 +1333,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getAppendResultFieldBuilder().getBuilder(), extensionRegistry); - responseCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); - responseCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdatedSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getAppendResultFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getErrorFieldBuilder().getBuilder(), + extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdatedSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1527,12 +1369,12 @@ public Builder mergeFrom( } // finally return this; } - private int responseCase_ = 0; private java.lang.Object response_; - - public ResponseCase getResponseCase() { - return ResponseCase.forNumber(responseCase_); + public ResponseCase + getResponseCase() { + return ResponseCase.forNumber( + responseCase_); } public Builder clearResponse() { @@ -1545,21 +1387,13 @@ public Builder clearResponse() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder> - appendResultBuilder_; + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder> appendResultBuilder_; /** - * - * *
      * Result if the append is successful.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; * @return Whether the appendResult field is set. */ @java.lang.Override @@ -1567,49 +1401,35 @@ public boolean hasAppendResult() { return responseCase_ == 1; } /** - * - * *
      * Result if the append is successful.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; * @return The appendResult. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - getAppendResult() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getAppendResult() { if (appendResultBuilder_ == null) { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) - response_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); } else { if (responseCase_ == 1) { return appendResultBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); } } /** - * - * *
      * Result if the append is successful.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; */ - public Builder setAppendResult( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult value) { + public Builder setAppendResult(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult value) { if (appendResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1623,19 +1443,14 @@ public Builder setAppendResult( return this; } /** - * - * *
      * Result if the append is successful.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; */ public Builder setAppendResult( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder builderForValue) { if (appendResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1646,29 +1461,18 @@ public Builder setAppendResult( return this; } /** - * - * *
      * Result if the append is successful.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; */ - public Builder mergeAppendResult( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult value) { + public Builder mergeAppendResult(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult value) { if (appendResultBuilder_ == null) { - if (responseCase_ == 1 - && response_ - != com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - .getDefaultInstance()) { - response_ = - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.newBuilder( - (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) - response_) - .mergeFrom(value) - .buildPartial(); + if (responseCase_ == 1 && + response_ != com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance()) { + response_ = com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.newBuilder((com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_) + .mergeFrom(value).buildPartial(); } else { response_ = value; } @@ -1684,15 +1488,11 @@ public Builder mergeAppendResult( return this; } /** - * - * *
      * Result if the append is successful.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; */ public Builder clearAppendResult() { if (appendResultBuilder_ == null) { @@ -1711,74 +1511,50 @@ public Builder clearAppendResult() { return this; } /** - * - * *
      * Result if the append is successful.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; */ - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder - getAppendResultBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder getAppendResultBuilder() { return getAppendResultFieldBuilder().getBuilder(); } /** - * - * *
      * Result if the append is successful.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder - getAppendResultOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder() { if ((responseCase_ == 1) && (appendResultBuilder_ != null)) { return appendResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) - response_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - .getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); } } /** - * - * *
      * Result if the append is successful.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder> getAppendResultFieldBuilder() { if (appendResultBuilder_ == null) { if (!(responseCase_ == 1)) { - response_ = - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult - .getDefaultInstance(); + response_ = com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); } - appendResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder>( - (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) - response_, + appendResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder>( + (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_, getParentForChildren(), isClean()); response_ = null; @@ -1789,11 +1565,8 @@ public Builder clearAppendResult() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; /** - * - * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1812,7 +1585,6 @@ public Builder clearAppendResult() {
      * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ @java.lang.Override @@ -1820,8 +1592,6 @@ public boolean hasError() { return responseCase_ == 2; } /** - * - * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1840,7 +1610,6 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 2; - * * @return The error. */ @java.lang.Override @@ -1858,8 +1627,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1893,8 +1660,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1914,7 +1679,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 2;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         response_ = builderForValue.build();
         onChanged();
@@ -1925,8 +1691,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1948,11 +1712,10 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (responseCase_ == 2 && response_ != com.google.rpc.Status.getDefaultInstance()) {
-          response_ =
-              com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (responseCase_ == 2 &&
+            response_ != com.google.rpc.Status.getDefaultInstance()) {
+          response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
+              .mergeFrom(value).buildPartial();
         } else {
           response_ = value;
         }
@@ -1968,8 +1731,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2006,8 +1767,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2031,8 +1790,6 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2064,8 +1821,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2086,18 +1841,17 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
         if (!(responseCase_ == 2)) {
           response_ = com.google.rpc.Status.getDefaultInstance();
         }
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(
-                (com.google.rpc.Status) response_, getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                (com.google.rpc.Status) response_,
+                getParentForChildren(),
+                isClean());
         response_ = null;
       }
       responseCase_ = 2;
@@ -2107,13 +1861,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.bigquery.storage.v1beta2.TableSchema updatedSchema_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.TableSchema,
-            com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>
-        updatedSchemaBuilder_;
+        com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> updatedSchemaBuilder_;
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2121,15 +1870,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; - * * @return Whether the updatedSchema field is set. */ public boolean hasUpdatedSchema() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2137,21 +1883,16 @@ public boolean hasUpdatedSchema() {
      * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; - * * @return The updatedSchema. */ public com.google.cloud.bigquery.storage.v1beta2.TableSchema getUpdatedSchema() { if (updatedSchemaBuilder_ == null) { - return updatedSchema_ == null - ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() - : updatedSchema_; + return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : updatedSchema_; } else { return updatedSchemaBuilder_.getMessage(); } } /** - * - * *
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2174,8 +1915,6 @@ public Builder setUpdatedSchema(com.google.cloud.bigquery.storage.v1beta2.TableS
       return this;
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2196,8 +1935,6 @@ public Builder setUpdatedSchema(
       return this;
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2208,10 +1945,9 @@ public Builder setUpdatedSchema(
      */
     public Builder mergeUpdatedSchema(com.google.cloud.bigquery.storage.v1beta2.TableSchema value) {
       if (updatedSchemaBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && updatedSchema_ != null
-            && updatedSchema_
-                != com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          updatedSchema_ != null &&
+          updatedSchema_ != com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) {
           getUpdatedSchemaBuilder().mergeFrom(value);
         } else {
           updatedSchema_ = value;
@@ -2224,8 +1960,6 @@ public Builder mergeUpdatedSchema(com.google.cloud.bigquery.storage.v1beta2.Tabl
       return this;
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2245,8 +1979,6 @@ public Builder clearUpdatedSchema() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2261,8 +1993,6 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getUpdatedS
       return getUpdatedSchemaFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2271,19 +2001,15 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getUpdatedS
      *
      * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder
-        getUpdatedSchemaOrBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getUpdatedSchemaOrBuilder() {
       if (updatedSchemaBuilder_ != null) {
         return updatedSchemaBuilder_.getMessageOrBuilder();
       } else {
-        return updatedSchema_ == null
-            ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()
-            : updatedSchema_;
+        return updatedSchema_ == null ?
+            com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : updatedSchema_;
       }
     }
     /**
-     *
-     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2293,24 +2019,21 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getUpdatedS
      * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.TableSchema,
-            com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>
+        com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> 
         getUpdatedSchemaFieldBuilder() {
       if (updatedSchemaBuilder_ == null) {
-        updatedSchemaBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1beta2.TableSchema,
-                com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder,
-                com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>(
-                getUpdatedSchema(), getParentForChildren(), isClean());
+        updatedSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>(
+                getUpdatedSchema(),
+                getParentForChildren(),
+                isClean());
         updatedSchema_ = null;
       }
       return updatedSchemaBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2320,13 +2043,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse)
-  private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse();
   }
@@ -2335,27 +2057,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AppendRowsResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AppendRowsResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2370,4 +2092,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java
similarity index 83%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java
index 5d920cd579..6eebce822a 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java
@@ -1,70 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
-public interface AppendRowsResponseOrBuilder
-    extends
+public interface AppendRowsResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; * @return Whether the appendResult field is set. */ boolean hasAppendResult(); /** - * - * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; * @return The appendResult. */ com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getAppendResult(); /** - * - * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; - * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; */ - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder - getAppendResultOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder(); /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -83,13 +53,10 @@ public interface AppendRowsResponseOrBuilder
    * 
* * .google.rpc.Status error = 2; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -108,13 +75,10 @@ public interface AppendRowsResponseOrBuilder
    * 
* * .google.rpc.Status error = 2; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -137,8 +101,6 @@ public interface AppendRowsResponseOrBuilder
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -146,13 +108,10 @@ public interface AppendRowsResponseOrBuilder
    * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; - * * @return Whether the updatedSchema field is set. */ boolean hasUpdatedSchema(); /** - * - * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -160,13 +119,10 @@ public interface AppendRowsResponseOrBuilder
    * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; - * * @return The updatedSchema. */ com.google.cloud.bigquery.storage.v1beta2.TableSchema getUpdatedSchema(); /** - * - * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -177,6 +133,5 @@ public interface AppendRowsResponseOrBuilder
    */
   com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getUpdatedSchemaOrBuilder();
 
-  public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.ResponseCase
-      getResponseCase();
+  public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.ResponseCase getResponseCase();
 }
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java
new file mode 100644
index 0000000000..b569f579af
--- /dev/null
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java
@@ -0,0 +1,80 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1beta2/arrow.proto
+
+package com.google.cloud.bigquery.storage.v1beta2;
+
+public final class ArrowProto {
+  private ArrowProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n1google/cloud/bigquery/storage/v1beta2/" +
+      "arrow.proto\022%google.cloud.bigquery.stora" +
+      "ge.v1beta2\"(\n\013ArrowSchema\022\031\n\021serialized_" +
+      "schema\030\001 \001(\014\"3\n\020ArrowRecordBatch\022\037\n\027seri" +
+      "alized_record_batch\030\001 \001(\014\"\266\001\n\031ArrowSeria" +
+      "lizationOptions\022W\n\006format\030\001 \001(\0162G.google" +
+      ".cloud.bigquery.storage.v1beta2.ArrowSer" +
+      "ializationOptions.Format\"@\n\006Format\022\026\n\022FO" +
+      "RMAT_UNSPECIFIED\020\000\022\016\n\nARROW_0_14\020\001\022\016\n\nAR" +
+      "ROW_0_15\020\002B~\n)com.google.cloud.bigquery." +
+      "storage.v1beta2B\nArrowProtoP\001ZCcloud.goo" +
+      "gle.com/go/bigquery/storage/apiv1beta2/s" +
+      "toragepb;storagepbb\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+        });
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor,
+        new java.lang.String[] { "SerializedSchema", });
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor,
+        new java.lang.String[] { "SerializedRecordBatch", });
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor,
+        new java.lang.String[] { "Format", });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java
similarity index 65%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java
index f0f649a876..80590ac870 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java
@@ -1,84 +1,61 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/arrow.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
- *
- *
  * 
  * Arrow RecordBatch.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch} */ -public final class ArrowRecordBatch extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ArrowRecordBatch extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) ArrowRecordBatchOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ArrowRecordBatch.newBuilder() to construct. private ArrowRecordBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ArrowRecordBatch() { serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ArrowRecordBatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.class, - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder.class); } public static final int SERIALIZED_RECORD_BATCH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedRecordBatch_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * IPC-serialized Arrow RecordBatch.
    * 
* * bytes serialized_record_batch = 1; - * * @return The serializedRecordBatch. */ @java.lang.Override @@ -87,7 +64,6 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -99,7 +75,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!serializedRecordBatch_.isEmpty()) { output.writeBytes(1, serializedRecordBatch_); } @@ -113,7 +90,8 @@ public int getSerializedSize() { size = 0; if (!serializedRecordBatch_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedRecordBatch_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serializedRecordBatch_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,15 +101,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch other = - (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) obj; + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch other = (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) obj; - if (!getSerializedRecordBatch().equals(other.getSerializedRecordBatch())) return false; + if (!getSerializedRecordBatch() + .equals(other.getSerializedRecordBatch())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -151,136 +129,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Arrow RecordBatch.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.class, - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -290,9 +261,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; } @java.lang.Override @@ -311,11 +282,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch result = - new com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch result = new com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -331,39 +299,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ArrowRecord public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch)other); } else { super.mergeFrom(other); return this; @@ -371,8 +338,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance()) return this; if (other.getSerializedRecordBatch() != com.google.protobuf.ByteString.EMPTY) { setSerializedRecordBatch(other.getSerializedRecordBatch()); } @@ -402,19 +368,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - serializedRecordBatch_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + serializedRecordBatch_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -424,20 +388,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.ByteString serializedRecordBatch_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; - * * @return The serializedRecordBatch. */ @java.lang.Override @@ -445,35 +404,27 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { return serializedRecordBatch_; } /** - * - * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; - * * @param value The serializedRecordBatch to set. * @return This builder for chaining. */ public Builder setSerializedRecordBatch(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } serializedRecordBatch_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; - * * @return This builder for chaining. */ public Builder clearSerializedRecordBatch() { @@ -482,9 +433,9 @@ public Builder clearSerializedRecordBatch() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -494,12 +445,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) private static final com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch(); } @@ -508,27 +459,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowRecordBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowRecordBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -543,4 +494,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java new file mode 100644 index 0000000000..70c01bd2a7 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/arrow.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface ArrowRecordBatchOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * IPC-serialized Arrow RecordBatch.
+   * 
+ * + * bytes serialized_record_batch = 1; + * @return The serializedRecordBatch. + */ + com.google.protobuf.ByteString getSerializedRecordBatch(); +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java similarity index 66% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java index 0852638cea..27b6db6840 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Arrow schema as specified in
  * https://arrow.apache.org/docs/python/api/datatypes.html
@@ -31,57 +14,52 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowSchema}
  */
-public final class ArrowSchema extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ArrowSchema extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ArrowSchema)
     ArrowSchemaOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ArrowSchema.newBuilder() to construct.
   private ArrowSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ArrowSchema() {
     serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ArrowSchema();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1beta2.ArrowProto
-        .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1beta2.ArrowProto
-        .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.class,
-            com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder.class);
+            com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.class, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder.class);
   }
 
   public static final int SERIALIZED_SCHEMA_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
   /**
-   *
-   *
    * 
    * IPC serialized Arrow schema.
    * 
* * bytes serialized_schema = 1; - * * @return The serializedSchema. */ @java.lang.Override @@ -90,7 +68,6 @@ public com.google.protobuf.ByteString getSerializedSchema() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,7 +79,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!serializedSchema_.isEmpty()) { output.writeBytes(1, serializedSchema_); } @@ -116,7 +94,8 @@ public int getSerializedSize() { size = 0; if (!serializedSchema_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedSchema_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serializedSchema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -126,15 +105,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema other = - (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) obj; + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema other = (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) obj; - if (!getSerializedSchema().equals(other.getSerializedSchema())) return false; + if (!getSerializedSchema() + .equals(other.getSerializedSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,104 +133,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Arrow schema as specified in
    * https://arrow.apache.org/docs/python/api/datatypes.html
@@ -262,32 +233,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowSchema}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ArrowSchema)
       com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.class,
-              com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.class, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -297,9 +269,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
     }
 
     @java.lang.Override
@@ -318,11 +290,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema buildPartial() {
-      com.google.cloud.bigquery.storage.v1beta2.ArrowSchema result =
-          new com.google.cloud.bigquery.storage.v1beta2.ArrowSchema(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.storage.v1beta2.ArrowSchema result = new com.google.cloud.bigquery.storage.v1beta2.ArrowSchema(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -338,39 +307,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ArrowSchema)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -378,8 +346,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema other) {
-      if (other == com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance()) return this;
       if (other.getSerializedSchema() != com.google.protobuf.ByteString.EMPTY) {
         setSerializedSchema(other.getSerializedSchema());
       }
@@ -409,19 +376,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                serializedSchema_ = input.readBytes();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              serializedSchema_ = input.readBytes();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -431,19 +396,15 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
     /**
-     *
-     *
      * 
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; - * * @return The serializedSchema. */ @java.lang.Override @@ -451,35 +412,27 @@ public com.google.protobuf.ByteString getSerializedSchema() { return serializedSchema_; } /** - * - * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; - * * @param value The serializedSchema to set. * @return This builder for chaining. */ public Builder setSerializedSchema(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } serializedSchema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; - * * @return This builder for chaining. */ public Builder clearSerializedSchema() { @@ -488,9 +441,9 @@ public Builder clearSerializedSchema() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -500,12 +453,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ArrowSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ArrowSchema) private static final com.google.cloud.bigquery.storage.v1beta2.ArrowSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ArrowSchema(); } @@ -514,27 +467,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -549,4 +502,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java new file mode 100644 index 0000000000..f86fe84d59 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/arrow.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface ArrowSchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowSchema) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * IPC serialized Arrow schema.
+   * 
+ * + * bytes serialized_schema = 1; + * @return The serializedSchema. + */ + com.google.protobuf.ByteString getSerializedSchema(); +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java similarity index 60% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java index fa9f13c85e..3b63dd5f3e 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java @@ -1,85 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Contains options specific to Arrow Serialization.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions} */ -public final class ArrowSerializationOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ArrowSerializationOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) ArrowSerializationOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ArrowSerializationOptions.newBuilder() to construct. private ArrowSerializationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ArrowSerializationOptions() { format_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ArrowSerializationOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.class, - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.class, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder.class); } /** - * - * *
    * The IPC format to use when serializing Arrow streams.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format} */ - public enum Format implements com.google.protobuf.ProtocolMessageEnum { + public enum Format + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * If unspecied the IPC format as of 0.15 release will be used.
      * 
@@ -88,8 +66,6 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum { */ FORMAT_UNSPECIFIED(0), /** - * - * *
      * Use the legacy IPC message format as of Apache Arrow Release 0.14.
      * 
@@ -98,8 +74,6 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum { */ ARROW_0_14(1), /** - * - * *
      * Use the message format as of Apache Arrow Release 0.15.
      * 
@@ -111,8 +85,6 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * If unspecied the IPC format as of 0.15 release will be used.
      * 
@@ -121,8 +93,6 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Use the legacy IPC message format as of Apache Arrow Release 0.14.
      * 
@@ -131,8 +101,6 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ARROW_0_14_VALUE = 1; /** - * - * *
      * Use the message format as of Apache Arrow Release 0.15.
      * 
@@ -141,6 +109,7 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ARROW_0_15_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -165,51 +134,49 @@ public static Format valueOf(int value) { */ public static Format forNumber(int value) { switch (value) { - case 0: - return FORMAT_UNSPECIFIED; - case 1: - return ARROW_0_14; - case 2: - return ARROW_0_15; - default: - return null; + case 0: return FORMAT_UNSPECIFIED; + case 1: return ARROW_0_14; + case 2: return ARROW_0_15; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Format> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Format findValueByNumber(int number) { + return Format.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Format findValueByNumber(int number) { - return Format.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDescriptor().getEnumTypes().get(0); } private static final Format[] VALUES = values(); - public static Format valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Format valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -229,45 +196,30 @@ private Format(int value) { public static final int FORMAT_FIELD_NUMBER = 1; private int format_ = 0; /** - * - * *
    * The Arrow IPC format to use.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
    * The Arrow IPC format to use.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; * @return The format. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format getFormat() { - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format result = - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.forNumber( - format_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format getFormat() { + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format result = com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.forNumber(format_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,11 +231,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (format_ - != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format - .FORMAT_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (format_ != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(1, format_); } getUnknownFields().writeTo(output); @@ -295,11 +245,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (format_ - != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format - .FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, format_); + if (format_ != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, format_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -309,13 +257,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions other = - (com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) obj; + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions other = (com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) obj; if (format_ != other.format_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -337,138 +284,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains options specific to Arrow Serialization.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.class, - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.class, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -478,16 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance(); } @java.lang.Override @@ -501,17 +437,13 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions build @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions result = - new com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions result = new com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.format_ = format_; @@ -522,51 +454,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance()) return this; if (other.format_ != 0) { setFormatValue(other.getFormatValue()); } @@ -596,19 +523,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - format_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + format_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -618,36 +543,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int format_ = 0; /** - * - * *
      * The Arrow IPC format to use.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; * @return The enum numeric value on the wire for format. */ - @java.lang.Override - public int getFormatValue() { + @java.lang.Override public int getFormatValue() { return format_; } /** - * - * *
      * The Arrow IPC format to use.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ @@ -658,41 +573,28 @@ public Builder setFormatValue(int value) { return this; } /** - * - * *
      * The Arrow IPC format to use.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; * @return The format. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format getFormat() { - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format result = - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.forNumber( - format_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format result = com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.forNumber(format_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.UNRECOGNIZED : result; } /** - * - * *
      * The Arrow IPC format to use.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; * @param value The format to set. * @return This builder for chaining. */ - public Builder setFormat( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format value) { + public Builder setFormat(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format value) { if (value == null) { throw new NullPointerException(); } @@ -702,15 +604,11 @@ public Builder setFormat( return this; } /** - * - * *
      * The Arrow IPC format to use.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; * @return This builder for chaining. */ public Builder clearFormat() { @@ -719,9 +617,9 @@ public Builder clearFormat() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -731,43 +629,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) - private static final com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions(); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowSerializationOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowSerializationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -779,8 +675,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java similarity index 51% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java index 133e8b1903..54f3c813e5 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java @@ -1,51 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface ArrowSerializationOptionsOrBuilder - extends +public interface ArrowSerializationOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Arrow IPC format to use.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** - * - * *
    * The Arrow IPC format to use.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; * @return The format. */ com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format getFormat(); diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java new file mode 100644 index 0000000000..7beb185a37 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/avro.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public final class AvroProto { + private AvroProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/bigquery/storage/v1beta2/" + + "avro.proto\022%google.cloud.bigquery.storag" + + "e.v1beta2\"\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"" + + "*\n\010AvroRows\022\036\n\026serialized_binary_rows\030\001 " + + "\001(\014B}\n)com.google.cloud.bigquery.storage" + + ".v1beta2B\tAvroProtoP\001ZCcloud.google.com/" + + "go/bigquery/storage/apiv1beta2/storagepb" + + ";storagepbb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor, + new java.lang.String[] { "Schema", }); + internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor, + new java.lang.String[] { "SerializedBinaryRows", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java index 1bb668dc90..3e95ce3db3 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java @@ -1,84 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Avro rows.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AvroRows} */ -public final class AvroRows extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AvroRows extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AvroRows) AvroRowsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AvroRows.newBuilder() to construct. private AvroRows(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AvroRows() { serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AvroRows(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AvroRows.class, - com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AvroRows.class, com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder.class); } public static final int SERIALIZED_BINARY_ROWS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedBinaryRows_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
    * Binary serialized rows in a block.
    * 
* * bytes serialized_binary_rows = 1; - * * @return The serializedBinaryRows. */ @java.lang.Override @@ -87,7 +64,6 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -99,7 +75,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!serializedBinaryRows_.isEmpty()) { output.writeBytes(1, serializedBinaryRows_); } @@ -113,7 +90,8 @@ public int getSerializedSize() { size = 0; if (!serializedBinaryRows_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedBinaryRows_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, serializedBinaryRows_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,15 +101,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AvroRows)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.AvroRows other = - (com.google.cloud.bigquery.storage.v1beta2.AvroRows) obj; + com.google.cloud.bigquery.storage.v1beta2.AvroRows other = (com.google.cloud.bigquery.storage.v1beta2.AvroRows) obj; - if (!getSerializedBinaryRows().equals(other.getSerializedBinaryRows())) return false; + if (!getSerializedBinaryRows() + .equals(other.getSerializedBinaryRows())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -151,135 +129,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AvroRows prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Avro rows.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AvroRows} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AvroRows) com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AvroRows.class, - com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AvroRows.class, com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.AvroRows.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -289,9 +261,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; } @java.lang.Override @@ -310,11 +282,8 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRows build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroRows buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AvroRows result = - new com.google.cloud.bigquery.storage.v1beta2.AvroRows(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.AvroRows result = new com.google.cloud.bigquery.storage.v1beta2.AvroRows(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -330,39 +299,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AvroRows re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AvroRows) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AvroRows) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AvroRows)other); } else { super.mergeFrom(other); return this; @@ -370,8 +338,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AvroRows other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance()) return this; if (other.getSerializedBinaryRows() != com.google.protobuf.ByteString.EMPTY) { setSerializedBinaryRows(other.getSerializedBinaryRows()); } @@ -401,19 +368,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - serializedBinaryRows_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + serializedBinaryRows_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,20 +388,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.ByteString serializedBinaryRows_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; - * * @return The serializedBinaryRows. */ @java.lang.Override @@ -444,35 +404,27 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { return serializedBinaryRows_; } /** - * - * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; - * * @param value The serializedBinaryRows to set. * @return This builder for chaining. */ public Builder setSerializedBinaryRows(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } serializedBinaryRows_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; - * * @return This builder for chaining. */ public Builder clearSerializedBinaryRows() { @@ -481,9 +433,9 @@ public Builder clearSerializedBinaryRows() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -493,12 +445,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AvroRows) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AvroRows) private static final com.google.cloud.bigquery.storage.v1beta2.AvroRows DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AvroRows(); } @@ -507,27 +459,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.AvroRows getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroRows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroRows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -542,4 +494,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.AvroRows getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java new file mode 100644 index 0000000000..3ad59856ae --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/avro.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface AvroRowsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AvroRows) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Binary serialized rows in a block.
+   * 
+ * + * bytes serialized_binary_rows = 1; + * @return The serializedBinaryRows. + */ + com.google.protobuf.ByteString getSerializedBinaryRows(); +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java similarity index 66% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java index 25fae92701..f965a6fb09 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java @@ -1,86 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Avro schema.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AvroSchema} */ -public final class AvroSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AvroSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AvroSchema) AvroSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AvroSchema.newBuilder() to construct. private AvroSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AvroSchema() { schema_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AvroSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.class, - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.class, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** - * - * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; - * * @return The schema. */ @java.lang.Override @@ -89,30 +66,30 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** - * - * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; - * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -121,7 +98,6 @@ public com.google.protobuf.ByteString getSchemaBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -133,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -157,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AvroSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.AvroSchema other = - (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) obj; + com.google.cloud.bigquery.storage.v1beta2.AvroSchema other = (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) obj; - if (!getSchema().equals(other.getSchema())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -185,135 +162,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AvroSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Avro schema.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AvroSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AvroSchema) com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.class, - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.class, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.AvroSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -323,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto - .internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; } @java.lang.Override @@ -344,11 +315,8 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AvroSchema result = - new com.google.cloud.bigquery.storage.v1beta2.AvroSchema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.AvroSchema result = new com.google.cloud.bigquery.storage.v1beta2.AvroSchema(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -364,39 +332,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AvroSchema public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AvroSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AvroSchema) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AvroSchema)other); } else { super.mergeFrom(other); return this; @@ -404,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AvroSchema other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -437,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -459,26 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object schema_ = ""; /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; - * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -487,22 +448,21 @@ public java.lang.String getSchema() { } } /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; - * * @return The bytes for schema. */ - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -510,37 +470,30 @@ public com.google.protobuf.ByteString getSchemaBytes() { } } /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; - * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; - * * @return This builder for chaining. */ public Builder clearSchema() { @@ -550,31 +503,27 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; - * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -584,12 +533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AvroSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AvroSchema) private static final com.google.cloud.bigquery.storage.v1beta2.AvroSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AvroSchema(); } @@ -598,27 +547,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.AvroSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java similarity index 51% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java index 03ac8890e5..410287e41a 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface AvroSchemaOrBuilder - extends +public interface AvroSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AvroSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; - * * @return The schema. */ java.lang.String getSchema(); /** - * - * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; - * * @return The bytes for schema. */ - com.google.protobuf.ByteString getSchemaBytes(); + com.google.protobuf.ByteString + getSchemaBytes(); } diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java similarity index 66% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java index e62b521218..a41f14e28d 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Request message for `BatchCommitWriteStreams`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest} */ -public final class BatchCommitWriteStreamsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchCommitWriteStreamsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) BatchCommitWriteStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchCommitWriteStreamsRequest.newBuilder() to construct. - private BatchCommitWriteStreamsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCommitWriteStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchCommitWriteStreamsRequest() { parent_ = ""; writeStreams_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,44 +26,39 @@ private BatchCommitWriteStreamsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchCommitWriteStreamsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Parent table that all the streams should belong to, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -91,30 +67,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent table that all the streams should belong to, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -123,46 +99,37 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int WRITE_STREAMS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList writeStreams_; /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the writeStreams. */ - public com.google.protobuf.ProtocolStringList getWriteStreamsList() { + public com.google.protobuf.ProtocolStringList + getWriteStreamsList() { return writeStreams_; } /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of writeStreams. */ public int getWriteStreamsCount() { return writeStreams_.size(); } /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The writeStreams at the given index. */ @@ -170,23 +137,20 @@ public java.lang.String getWriteStreams(int index) { return writeStreams_.get(index); } /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - public com.google.protobuf.ByteString getWriteStreamsBytes(int index) { + public com.google.protobuf.ByteString + getWriteStreamsBytes(int index) { return writeStreams_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,7 +162,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -233,17 +198,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest)) { + if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest other = - (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest other = (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getWriteStreamsList().equals(other.getWriteStreamsList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getWriteStreamsList() + .equals(other.getWriteStreamsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,139 +232,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `BatchCommitWriteStreams`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.Builder - .class); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,22 +366,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest build() { - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -435,18 +387,14 @@ public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result = - new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest(this); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result = new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result) { if (((bitField0_ & 0x00000002) != 0)) { writeStreams_ = writeStreams_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); @@ -454,8 +402,7 @@ private void buildPartialRepeatedFields( result.writeStreams_ = writeStreams_; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -466,52 +413,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -553,26 +494,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureWriteStreamsIsMutable(); - writeStreams_.add(s); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureWriteStreamsIsMutable(); + writeStreams_.add(s); + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,26 +520,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent table that all the streams should belong to, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -610,22 +545,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent table that all the streams should belong to, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -633,37 +567,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent table that all the streams should belong to, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Parent table that all the streams should belong to, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { @@ -673,22 +600,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Parent table that all the streams should belong to, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -696,52 +619,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList writeStreams_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList writeStreams_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureWriteStreamsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { writeStreams_ = new com.google.protobuf.LazyStringArrayList(writeStreams_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the writeStreams. */ - public com.google.protobuf.ProtocolStringList getWriteStreamsList() { + public com.google.protobuf.ProtocolStringList + getWriteStreamsList() { return writeStreams_.getUnmodifiableView(); } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of writeStreams. */ public int getWriteStreamsCount() { return writeStreams_.size(); } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The writeStreams at the given index. */ @@ -749,90 +662,76 @@ public java.lang.String getWriteStreams(int index) { return writeStreams_.get(index); } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - public com.google.protobuf.ByteString getWriteStreamsBytes(int index) { + public com.google.protobuf.ByteString + getWriteStreamsBytes(int index) { return writeStreams_.getByteString(index); } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index to set the value at. * @param value The writeStreams to set. * @return This builder for chaining. */ - public Builder setWriteStreams(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStreams( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureWriteStreamsIsMutable(); writeStreams_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The writeStreams to add. * @return This builder for chaining. */ - public Builder addWriteStreams(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addWriteStreams( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureWriteStreamsIsMutable(); writeStreams_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param values The writeStreams to add. * @return This builder for chaining. */ - public Builder addAllWriteStreams(java.lang.Iterable values) { + public Builder addAllWriteStreams( + java.lang.Iterable values) { ensureWriteStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, writeStreams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, writeStreams_); onChanged(); return this; } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearWriteStreams() { @@ -842,30 +741,26 @@ public Builder clearWriteStreams() { return this; } /** - * - * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes of the writeStreams to add. * @return This builder for chaining. */ - public Builder addWriteStreamsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addWriteStreamsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureWriteStreamsIsMutable(); writeStreams_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,44 +770,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCommitWriteStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCommitWriteStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -924,8 +816,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java index d06e88a517..2f98d380cc 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java @@ -1,103 +1,72 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface BatchCommitWriteStreamsRequestOrBuilder - extends +public interface BatchCommitWriteStreamsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent table that all the streams should belong to, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Parent table that all the streams should belong to, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return A list containing the writeStreams. */ - java.util.List getWriteStreamsList(); + java.util.List + getWriteStreamsList(); /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The count of writeStreams. */ int getWriteStreamsCount(); /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the element to return. * @return The writeStreams at the given index. */ java.lang.String getWriteStreams(int index); /** - * - * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - com.google.protobuf.ByteString getWriteStreamsBytes(int index); + com.google.protobuf.ByteString + getWriteStreamsBytes(int index); } diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java similarity index 73% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java index 1a42ef4ec9..1f0863fd66 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java @@ -1,79 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Response message for `BatchCommitWriteStreams`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse} */ -public final class BatchCommitWriteStreamsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BatchCommitWriteStreamsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) BatchCommitWriteStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BatchCommitWriteStreamsResponse.newBuilder() to construct. - private BatchCommitWriteStreamsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCommitWriteStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchCommitWriteStreamsResponse() { streamErrors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BatchCommitWriteStreamsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.Builder - .class); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.Builder.class); } public static final int COMMIT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp commitTime_; /** - * - * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -81,7 +58,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return Whether the commitTime field is set. */ @java.lang.Override @@ -89,8 +65,6 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** - * - * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -98,7 +72,6 @@ public boolean hasCommitTime() {
    * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return The commitTime. */ @java.lang.Override @@ -106,8 +79,6 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** - * - * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -122,12 +93,9 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
   }
 
   public static final int STREAM_ERRORS_FIELD_NUMBER = 2;
-
   @SuppressWarnings("serial")
   private java.util.List streamErrors_;
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -139,13 +107,10 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
    * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
    */
   @java.lang.Override
-  public java.util.List
-      getStreamErrorsList() {
+  public java.util.List getStreamErrorsList() {
     return streamErrors_;
   }
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -157,13 +122,11 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
    * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getStreamErrorsOrBuilderList() {
     return streamErrors_;
   }
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -179,8 +142,6 @@ public int getStreamErrorsCount() {
     return streamErrors_.size();
   }
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -196,8 +157,6 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError getStreamErrors(in
     return streamErrors_.get(index);
   }
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -215,7 +174,6 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder getStream
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -227,7 +185,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (commitTime_ != null) {
       output.writeMessage(1, getCommitTime());
     }
@@ -244,10 +203,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (commitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommitTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getCommitTime());
     }
     for (int i = 0; i < streamErrors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, streamErrors_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, streamErrors_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -257,20 +218,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
-    if (!(obj
-        instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)) {
+    if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse other =
-        (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) obj;
+    com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse other = (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) obj;
 
     if (hasCommitTime() != other.hasCommitTime()) return false;
     if (hasCommitTime()) {
-      if (!getCommitTime().equals(other.getCommitTime())) return false;
+      if (!getCommitTime()
+          .equals(other.getCommitTime())) return false;
     }
-    if (!getStreamErrorsList().equals(other.getStreamErrorsList())) return false;
+    if (!getStreamErrorsList()
+        .equals(other.getStreamErrorsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -296,139 +257,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Response message for `BatchCommitWriteStreams`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.Builder - .class); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -449,22 +400,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse build() { - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -472,20 +420,15 @@ public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse - buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result = - new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse(this); + public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse buildPartial() { + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result = new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result) { if (streamErrorsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { streamErrors_ = java.util.Collections.unmodifiableList(streamErrors_); @@ -497,11 +440,12 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); + result.commitTime_ = commitTimeBuilder_ == null + ? commitTime_ + : commitTimeBuilder_.build(); } } @@ -509,52 +453,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.getDefaultInstance()) return this; if (other.hasCommitTime()) { mergeCommitTime(other.getCommitTime()); } @@ -576,10 +514,9 @@ public Builder mergeFrom( streamErrorsBuilder_ = null; streamErrors_ = other.streamErrors_; bitField0_ = (bitField0_ & ~0x00000002); - streamErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStreamErrorsFieldBuilder() - : null; + streamErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamErrorsFieldBuilder() : null; } else { streamErrorsBuilder_.addAllMessages(other.streamErrors_); } @@ -611,33 +548,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.bigquery.storage.v1beta2.StorageError m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta2.StorageError.parser(), - extensionRegistry); - if (streamErrorsBuilder_ == null) { - ensureStreamErrorsIsMutable(); - streamErrors_.add(m); - } else { - streamErrorsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCommitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.bigquery.storage.v1beta2.StorageError m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta2.StorageError.parser(), + extensionRegistry); + if (streamErrorsBuilder_ == null) { + ensureStreamErrorsIsMutable(); + streamErrors_.add(m); + } else { + streamErrorsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -647,18 +583,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - commitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; /** - * - * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -666,15 +596,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -682,21 +609,16 @@ public boolean hasCommitTime() {
      * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** - * - * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -719,8 +641,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -729,7 +649,8 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp commit_time = 1;
      */
-    public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setCommitTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (commitTimeBuilder_ == null) {
         commitTime_ = builderForValue.build();
       } else {
@@ -740,8 +661,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -752,9 +671,9 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal
      */
     public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
       if (commitTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && commitTime_ != null
-            && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          commitTime_ != null &&
+          commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getCommitTimeBuilder().mergeFrom(value);
         } else {
           commitTime_ = value;
@@ -767,8 +686,6 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -788,8 +705,6 @@ public Builder clearCommitTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -804,8 +719,6 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() {
       return getCommitTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -818,14 +731,11 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
       if (commitTimeBuilder_ != null) {
         return commitTimeBuilder_.getMessageOrBuilder();
       } else {
-        return commitTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : commitTime_;
+        return commitTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -835,43 +745,32 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * .google.protobuf.Timestamp commit_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getCommitTimeFieldBuilder() {
       if (commitTimeBuilder_ == null) {
-        commitTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getCommitTime(), getParentForChildren(), isClean());
+        commitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getCommitTime(),
+                getParentForChildren(),
+                isClean());
         commitTime_ = null;
       }
       return commitTimeBuilder_;
     }
 
     private java.util.List streamErrors_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureStreamErrorsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        streamErrors_ =
-            new java.util.ArrayList(
-                streamErrors_);
+        streamErrors_ = new java.util.ArrayList(streamErrors_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.StorageError,
-            com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder>
-        streamErrorsBuilder_;
+        com.google.cloud.bigquery.storage.v1beta2.StorageError, com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder, com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder> streamErrorsBuilder_;
 
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -882,8 +781,7 @@ private void ensureStreamErrorsIsMutable() {
      *
      * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
      */
-    public java.util.List
-        getStreamErrorsList() {
+    public java.util.List getStreamErrorsList() {
       if (streamErrorsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(streamErrors_);
       } else {
@@ -891,8 +789,6 @@ private void ensureStreamErrorsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -911,8 +807,6 @@ public int getStreamErrorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -931,8 +825,6 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError getStreamErrors(in
       }
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -958,8 +850,6 @@ public Builder setStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -982,8 +872,6 @@ public Builder setStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1008,8 +896,6 @@ public Builder addStreamErrors(com.google.cloud.bigquery.storage.v1beta2.Storage
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1035,8 +921,6 @@ public Builder addStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1059,8 +943,6 @@ public Builder addStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1083,8 +965,6 @@ public Builder addStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1096,11 +976,11 @@ public Builder addStreamErrors(
      * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
      */
     public Builder addAllStreamErrors(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (streamErrorsBuilder_ == null) {
         ensureStreamErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streamErrors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, streamErrors_);
         onChanged();
       } else {
         streamErrorsBuilder_.addAllMessages(values);
@@ -1108,8 +988,6 @@ public Builder addAllStreamErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1131,8 +1009,6 @@ public Builder clearStreamErrors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1154,8 +1030,6 @@ public Builder removeStreamErrors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1171,8 +1045,6 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder getStreamE
       return getStreamErrorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1186,14 +1058,11 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder getStreamE
     public com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder getStreamErrorsOrBuilder(
         int index) {
       if (streamErrorsBuilder_ == null) {
-        return streamErrors_.get(index);
-      } else {
+        return streamErrors_.get(index);  } else {
         return streamErrorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1204,8 +1073,8 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder getStream
      *
      * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
      */
-    public java.util.List
-        getStreamErrorsOrBuilderList() {
+    public java.util.List 
+         getStreamErrorsOrBuilderList() {
       if (streamErrorsBuilder_ != null) {
         return streamErrorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1213,8 +1082,6 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder getStream
       }
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1226,12 +1093,10 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder getStream
      * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
      */
     public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder addStreamErrorsBuilder() {
-      return getStreamErrorsFieldBuilder()
-          .addBuilder(com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance());
+      return getStreamErrorsFieldBuilder().addBuilder(
+          com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1244,13 +1109,10 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder addStreamE
      */
     public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder addStreamErrorsBuilder(
         int index) {
-      return getStreamErrorsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance());
+      return getStreamErrorsFieldBuilder().addBuilder(
+          index, com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1261,30 +1123,27 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder addStreamE
      *
      * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
      */
-    public java.util.List
-        getStreamErrorsBuilderList() {
+    public java.util.List 
+         getStreamErrorsBuilderList() {
       return getStreamErrorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.StorageError,
-            com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder>
+        com.google.cloud.bigquery.storage.v1beta2.StorageError, com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder, com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder> 
         getStreamErrorsFieldBuilder() {
       if (streamErrorsBuilder_ == null) {
-        streamErrorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1beta2.StorageError,
-                com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder,
-                com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder>(
-                streamErrors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        streamErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1beta2.StorageError, com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder, com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder>(
+                streamErrors_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         streamErrors_ = null;
       }
       return streamErrorsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1294,44 +1153,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)
-  private static final com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse DEFAULT_INSTANCE;
   static {
-    DEFAULT_INSTANCE =
-        new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse();
+    DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse();
   }
 
-  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
-      getDefaultInstance() {
+  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BatchCommitWriteStreamsResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BatchCommitWriteStreamsResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1343,8 +1199,9 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java
similarity index 83%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java
index 4ee30d3923..e16034d461 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
-public interface BatchCommitWriteStreamsResponseOrBuilder
-    extends
+public interface BatchCommitWriteStreamsResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -33,13 +15,10 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** - * - * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -47,13 +26,10 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    * 
* * .google.protobuf.Timestamp commit_time = 1; - * * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** - * - * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -65,8 +41,6 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
   com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -77,10 +51,9 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    *
    * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
    */
-  java.util.List getStreamErrorsList();
+  java.util.List 
+      getStreamErrorsList();
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -93,8 +66,6 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    */
   com.google.cloud.bigquery.storage.v1beta2.StorageError getStreamErrors(int index);
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -107,8 +78,6 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    */
   int getStreamErrorsCount();
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -119,11 +88,9 @@ public interface BatchCommitWriteStreamsResponseOrBuilder
    *
    * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
    */
-  java.util.List
+  java.util.List 
       getStreamErrorsOrBuilderList();
   /**
-   *
-   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java
similarity index 61%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java
index 36b64bd143..35fed86db0 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java
@@ -1,88 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
- *
- *
  * 
  * Request message for `CreateReadSession`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest} */ -public final class CreateReadSessionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateReadSessionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) CreateReadSessionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateReadSessionRequest.newBuilder() to construct. private CreateReadSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateReadSessionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateReadSessionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.class, - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -127,16 +100,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int READ_SESSION_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta2.ReadSession readSession_; /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the readSession field is set. */ @java.lang.Override @@ -144,47 +112,32 @@ public boolean hasReadSession() { return readSession_ != null; } /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The readSession. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession getReadSession() { - return readSession_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() - : readSession_; + return readSession_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() : readSession_; } /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder getReadSessionOrBuilder() { - return readSession_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() - : readSession_; + return readSession_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() : readSession_; } public static final int MAX_STREAM_COUNT_FIELD_NUMBER = 3; private int maxStreamCount_ = 0; /** - * - * *
    * Max initial number of streams. If unset or zero, the server will
    * provide a value of streams so as to produce reasonable throughput. Must be
@@ -196,7 +149,6 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder getReadSes
    * 
* * int32 max_stream_count = 3; - * * @return The maxStreamCount. */ @java.lang.Override @@ -205,7 +157,6 @@ public int getMaxStreamCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -240,10 +192,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readSession_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadSession()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getReadSession()); } if (maxStreamCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxStreamCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxStreamCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -253,20 +207,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest other = - (com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest other = (com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasReadSession() != other.hasReadSession()) return false; if (hasReadSession()) { - if (!getReadSession().equals(other.getReadSession())) return false; + if (!getReadSession() + .equals(other.getReadSession())) return false; } - if (getMaxStreamCount() != other.getMaxStreamCount()) return false; + if (getMaxStreamCount() + != other.getMaxStreamCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,138 +248,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `CreateReadSession`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.class, - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -439,16 +386,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.getDefaultInstance(); } @java.lang.Override @@ -462,24 +407,21 @@ public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest build( @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest result = - new com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest result = new com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readSession_ = - readSessionBuilder_ == null ? readSession_ : readSessionBuilder_.build(); + result.readSession_ = readSessionBuilder_ == null + ? readSession_ + : readSessionBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxStreamCount_ = maxStreamCount_; @@ -490,51 +432,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -572,31 +509,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getReadSessionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - maxStreamCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getReadSessionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + maxStreamCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -606,28 +541,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -636,24 +566,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -661,41 +588,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -705,24 +621,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -732,58 +642,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.storage.v1beta2.ReadSession readSession_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder> - readSessionBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ReadSession, com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder> readSessionBuilder_; /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the readSession field is set. */ public boolean hasReadSession() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The readSession. */ public com.google.cloud.bigquery.storage.v1beta2.ReadSession getReadSession() { if (readSessionBuilder_ == null) { - return readSession_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() - : readSession_; + return readSession_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() : readSession_; } else { return readSessionBuilder_.getMessage(); } } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReadSession(com.google.cloud.bigquery.storage.v1beta2.ReadSession value) { if (readSessionBuilder_ == null) { @@ -799,15 +690,11 @@ public Builder setReadSession(com.google.cloud.bigquery.storage.v1beta2.ReadSess return this; } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setReadSession( com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder builderForValue) { @@ -821,22 +708,17 @@ public Builder setReadSession( return this; } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeReadSession(com.google.cloud.bigquery.storage.v1beta2.ReadSession value) { if (readSessionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && readSession_ != null - && readSession_ - != com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + readSession_ != null && + readSession_ != com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance()) { getReadSessionBuilder().mergeFrom(value); } else { readSession_ = value; @@ -849,15 +731,11 @@ public Builder mergeReadSession(com.google.cloud.bigquery.storage.v1beta2.ReadSe return this; } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearReadSession() { bitField0_ = (bitField0_ & ~0x00000002); @@ -870,15 +748,11 @@ public Builder clearReadSession() { return this; } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder getReadSessionBuilder() { bitField0_ |= 0x00000002; @@ -886,58 +760,43 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder getReadSess return getReadSessionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder - getReadSessionOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder getReadSessionOrBuilder() { if (readSessionBuilder_ != null) { return readSessionBuilder_.getMessageOrBuilder(); } else { - return readSession_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() - : readSession_; + return readSession_ == null ? + com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() : readSession_; } } /** - * - * *
      * Required. Session to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ReadSession, com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder> getReadSessionFieldBuilder() { if (readSessionBuilder_ == null) { - readSessionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder>( - getReadSession(), getParentForChildren(), isClean()); + readSessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ReadSession, com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder>( + getReadSession(), + getParentForChildren(), + isClean()); readSession_ = null; } return readSessionBuilder_; } - private int maxStreamCount_; + private int maxStreamCount_ ; /** - * - * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -949,7 +808,6 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder getReadSess
      * 
* * int32 max_stream_count = 3; - * * @return The maxStreamCount. */ @java.lang.Override @@ -957,8 +815,6 @@ public int getMaxStreamCount() { return maxStreamCount_; } /** - * - * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -970,20 +826,17 @@ public int getMaxStreamCount() {
      * 
* * int32 max_stream_count = 3; - * * @param value The maxStreamCount to set. * @return This builder for chaining. */ public Builder setMaxStreamCount(int value) { - + maxStreamCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -995,7 +848,6 @@ public Builder setMaxStreamCount(int value) {
      * 
* * int32 max_stream_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxStreamCount() { @@ -1004,9 +856,9 @@ public Builder clearMaxStreamCount() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1016,43 +868,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReadSessionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReadSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1064,8 +914,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java index 3ce93c86fd..91c0fe9601 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java @@ -1,103 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface CreateReadSessionRequestOrBuilder - extends +public interface CreateReadSessionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the readSession field is set. */ boolean hasReadSession(); /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The readSession. */ com.google.cloud.bigquery.storage.v1beta2.ReadSession getReadSession(); /** - * - * *
    * Required. Session to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder getReadSessionOrBuilder(); /** - * - * *
    * Max initial number of streams. If unset or zero, the server will
    * provide a value of streams so as to produce reasonable throughput. Must be
@@ -109,7 +68,6 @@ public interface CreateReadSessionRequestOrBuilder
    * 
* * int32 max_stream_count = 3; - * * @return The maxStreamCount. */ int getMaxStreamCount(); diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java similarity index 58% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java index d1c9cadbcc..49de91d80c 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Request message for `CreateWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest} */ -public final class CreateWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateWriteStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) CreateWriteStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateWriteStreamRequest.newBuilder() to construct. private CreateWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateWriteStreamRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. Reference to the table to which the stream belongs, in the format
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,32 +66,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Reference to the table to which the stream belongs, in the format
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -127,16 +100,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int WRITE_STREAM_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta2.WriteStream writeStream_; /** - * - * *
    * Required. Stream to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the writeStream field is set. */ @java.lang.Override @@ -144,44 +112,30 @@ public boolean hasWriteStream() { return writeStream_ != null; } /** - * - * *
    * Required. Stream to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The writeStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream() { - return writeStream_ == null - ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() - : writeStream_; + return writeStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() : writeStream_; } /** - * - * *
    * Required. Stream to be created.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder getWriteStreamOrBuilder() { - return writeStream_ == null - ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() - : writeStream_; + return writeStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() : writeStream_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +147,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -213,7 +168,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (writeStream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWriteStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getWriteStream()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -223,18 +179,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest other = - (com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasWriteStream() != other.hasWriteStream()) return false; if (hasWriteStream()) { - if (!getWriteStream().equals(other.getWriteStream())) return false; + if (!getWriteStream() + .equals(other.getWriteStream())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -259,138 +216,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `CreateWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -405,16 +353,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.getDefaultInstance(); } @java.lang.Override @@ -428,24 +374,21 @@ public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest build( @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest result = - new com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.writeStream_ = - writeStreamBuilder_ == null ? writeStream_ : writeStreamBuilder_.build(); + result.writeStream_ = writeStreamBuilder_ == null + ? writeStream_ + : writeStreamBuilder_.build(); } } @@ -453,51 +396,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -532,25 +470,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getWriteStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getWriteStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -560,28 +497,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -590,24 +522,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -615,41 +544,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -659,24 +577,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -686,58 +598,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.storage.v1beta2.WriteStream writeStream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.WriteStream, - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, - com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder> - writeStreamBuilder_; + com.google.cloud.bigquery.storage.v1beta2.WriteStream, com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder> writeStreamBuilder_; /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the writeStream field is set. */ public boolean hasWriteStream() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The writeStream. */ public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream() { if (writeStreamBuilder_ == null) { - return writeStream_ == null - ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() - : writeStream_; + return writeStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() : writeStream_; } else { return writeStreamBuilder_.getMessage(); } } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWriteStream(com.google.cloud.bigquery.storage.v1beta2.WriteStream value) { if (writeStreamBuilder_ == null) { @@ -753,15 +646,11 @@ public Builder setWriteStream(com.google.cloud.bigquery.storage.v1beta2.WriteStr return this; } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setWriteStream( com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder builderForValue) { @@ -775,22 +664,17 @@ public Builder setWriteStream( return this; } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeWriteStream(com.google.cloud.bigquery.storage.v1beta2.WriteStream value) { if (writeStreamBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && writeStream_ != null - && writeStream_ - != com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + writeStream_ != null && + writeStream_ != com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance()) { getWriteStreamBuilder().mergeFrom(value); } else { writeStream_ = value; @@ -803,15 +687,11 @@ public Builder mergeWriteStream(com.google.cloud.bigquery.storage.v1beta2.WriteS return this; } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearWriteStream() { bitField0_ = (bitField0_ & ~0x00000002); @@ -824,15 +704,11 @@ public Builder clearWriteStream() { return this; } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder getWriteStreamBuilder() { bitField0_ |= 0x00000002; @@ -840,56 +716,43 @@ public com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder getWriteStr return getWriteStreamFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder - getWriteStreamOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder getWriteStreamOrBuilder() { if (writeStreamBuilder_ != null) { return writeStreamBuilder_.getMessageOrBuilder(); } else { - return writeStream_ == null - ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() - : writeStream_; + return writeStream_ == null ? + com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() : writeStream_; } } /** - * - * *
      * Required. Stream to be created.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.WriteStream, - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, - com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.WriteStream, com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder> getWriteStreamFieldBuilder() { if (writeStreamBuilder_ == null) { - writeStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.WriteStream, - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, - com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder>( - getWriteStream(), getParentForChildren(), isClean()); + writeStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.WriteStream, com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder>( + getWriteStream(), + getParentForChildren(), + isClean()); writeStream_ = null; } return writeStreamBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -899,43 +762,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -947,8 +808,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java new file mode 100644 index 0000000000..cca21cca1c --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface CreateWriteStreamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Reference to the table to which the stream belongs, in the format
+   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Reference to the table to which the stream belongs, in the format
+   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Stream to be created.
+   * 
+ * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the writeStream field is set. + */ + boolean hasWriteStream(); + /** + *
+   * Required. Stream to be created.
+   * 
+ * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The writeStream. + */ + com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream(); + /** + *
+   * Required. Stream to be created.
+   * 
+ * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder getWriteStreamOrBuilder(); +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java index 16f9360238..788f735937 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java @@ -1,38 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Data format for input or output data.
  * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.DataFormat} */ -public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { - /** DATA_FORMAT_UNSPECIFIED = 0; */ +public enum DataFormat + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DATA_FORMAT_UNSPECIFIED = 0; + */ DATA_FORMAT_UNSPECIFIED(0), /** - * - * *
    * Avro is a standard open source row based file format.
    * See https://avro.apache.org/ for more details.
@@ -42,8 +26,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   AVRO(1),
   /**
-   *
-   *
    * 
    * Arrow is a standard open source column-based message format.
    * See https://arrow.apache.org/ for more details.
@@ -55,11 +37,11 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
   UNRECOGNIZED(-1),
   ;
 
-  /** DATA_FORMAT_UNSPECIFIED = 0; */
+  /**
+   * DATA_FORMAT_UNSPECIFIED = 0;
+   */
   public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0;
   /**
-   *
-   *
    * 
    * Avro is a standard open source row based file format.
    * See https://avro.apache.org/ for more details.
@@ -69,8 +51,6 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int AVRO_VALUE = 1;
   /**
-   *
-   *
    * 
    * Arrow is a standard open source column-based message format.
    * See https://arrow.apache.org/ for more details.
@@ -80,6 +60,7 @@ public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int ARROW_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -104,51 +85,49 @@ public static DataFormat valueOf(int value) {
    */
   public static DataFormat forNumber(int value) {
     switch (value) {
-      case 0:
-        return DATA_FORMAT_UNSPECIFIED;
-      case 1:
-        return AVRO;
-      case 2:
-        return ARROW;
-      default:
-        return null;
+      case 0: return DATA_FORMAT_UNSPECIFIED;
+      case 1: return AVRO;
+      case 2: return ARROW;
+      default: return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap
+      internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public DataFormat findValueByNumber(int number) {
-          return DataFormat.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      DataFormat> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public DataFormat findValueByNumber(int number) {
+            return DataFormat.forNumber(number);
+          }
+        };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor()
-        .getEnumTypes()
-        .get(0);
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final DataFormat[] VALUES = values();
 
-  public static DataFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static DataFormat valueOf(
+      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -164,3 +143,4 @@ private DataFormat(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1beta2.DataFormat)
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java
similarity index 59%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java
index 75875b945f..b3292e961a 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java
@@ -1,88 +1,63 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
- *
- *
  * 
  * Request message for invoking `FinalizeWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest} */ -public final class FinalizeWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FinalizeWriteStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) FinalizeWriteStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FinalizeWriteStreamRequest.newBuilder() to construct. private FinalizeWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FinalizeWriteStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FinalizeWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the stream to finalize, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,32 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the stream to finalize, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -161,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest other = - (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,138 +162,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for invoking `FinalizeWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -330,16 +294,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.getDefaultInstance(); } @java.lang.Override @@ -353,17 +315,13 @@ public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest buil @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest result = - new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -374,51 +332,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -450,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -472,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -502,24 +448,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -527,41 +470,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -571,33 +503,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -607,43 +533,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FinalizeWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinalizeWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,8 +579,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java new file mode 100644 index 0000000000..0d0321ea05 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface FinalizeWriteStreamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the stream to finalize, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the stream to finalize, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java similarity index 60% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java index c5dfa7acfc..21958af51e 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Response message for `FinalizeWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse} */ -public final class FinalizeWriteStreamResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FinalizeWriteStreamResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) FinalizeWriteStreamResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FinalizeWriteStreamResponse.newBuilder() to construct. private FinalizeWriteStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FinalizeWriteStreamResponse() {} + private FinalizeWriteStreamResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FinalizeWriteStreamResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.Builder.class); } public static final int ROW_COUNT_FIELD_NUMBER = 1; private long rowCount_ = 0L; /** - * - * *
    * Number of rows in the finalized stream.
    * 
* * int64 row_count = 1; - * * @return The rowCount. */ @java.lang.Override @@ -84,7 +63,6 @@ public long getRowCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,7 +74,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (rowCount_ != 0L) { output.writeInt64(1, rowCount_); } @@ -110,7 +89,8 @@ public int getSerializedSize() { size = 0; if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,15 +100,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse other = - (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) obj; + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse other = (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) obj; - if (getRowCount() != other.getRowCount()) return false; + if (getRowCount() + != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -141,145 +121,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for `FinalizeWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -289,16 +261,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.getDefaultInstance(); } @java.lang.Override @@ -312,17 +282,13 @@ public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse bui @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse result = - new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse result = new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.rowCount_ = rowCount_; @@ -333,51 +299,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.getDefaultInstance()) return this; if (other.getRowCount() != 0L) { setRowCount(other.getRowCount()); } @@ -407,19 +368,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -429,19 +388,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long rowCount_; + private long rowCount_ ; /** - * - * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; - * * @return The rowCount. */ @java.lang.Override @@ -449,33 +404,27 @@ public long getRowCount() { return rowCount_; } /** - * - * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; - * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; - * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -484,9 +433,9 @@ public Builder clearRowCount() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -496,43 +445,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) - private static final com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse(); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FinalizeWriteStreamResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinalizeWriteStreamResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -544,8 +491,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java new file mode 100644 index 0000000000..86314fd7c3 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface FinalizeWriteStreamResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Number of rows in the finalized stream.
+   * 
+ * + * int64 row_count = 1; + * @return The rowCount. + */ + long getRowCount(); +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java similarity index 67% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java index c1664eecaf..0e36e5633a 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Request message for `FlushRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FlushRowsRequest} */ -public final class FlushRowsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FlushRowsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) FlushRowsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FlushRowsRequest.newBuilder() to construct. private FlushRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FlushRowsRequest() { writeStream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FlushRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.Builder.class); } public static final int WRITE_STREAM_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object writeStream_ = ""; /** - * - * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getWriteStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; } } /** - * - * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ @java.lang.Override - public com.google.protobuf.ByteString getWriteStreamBytes() { + public com.google.protobuf.ByteString + getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeStream_ = b; return b; } else { @@ -125,15 +98,12 @@ public com.google.protobuf.ByteString getWriteStreamBytes() { public static final int OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value offset_; /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ @java.lang.Override @@ -141,15 +111,12 @@ public boolean hasOffset() { return offset_ != null; } /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ @java.lang.Override @@ -157,8 +124,6 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
@@ -172,7 +137,6 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -184,7 +148,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeStream_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, writeStream_);
     }
@@ -204,7 +169,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, writeStream_);
     }
     if (offset_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOffset());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getOffset());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -214,18 +180,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest other =
-        (com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) obj;
+    com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest other = (com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) obj;
 
-    if (!getWriteStream().equals(other.getWriteStream())) return false;
+    if (!getWriteStream()
+        .equals(other.getWriteStream())) return false;
     if (hasOffset() != other.hasOffset()) return false;
     if (hasOffset()) {
-      if (!getOffset().equals(other.getOffset())) return false;
+      if (!getOffset()
+          .equals(other.getOffset())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -250,136 +217,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Request message for `FlushRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FlushRowsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -394,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; } @java.lang.Override @@ -415,11 +375,8 @@ public com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest result = - new com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest result = new com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -430,7 +387,9 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRe result.writeStream_ = writeStream_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build(); + result.offset_ = offsetBuilder_ == null + ? offset_ + : offsetBuilder_.build(); } } @@ -438,39 +397,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest)other); } else { super.mergeFrom(other); return this; @@ -478,8 +436,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.getDefaultInstance()) return this; if (!other.getWriteStream().isEmpty()) { writeStream_ = other.writeStream_; bitField0_ |= 0x00000001; @@ -514,25 +471,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - writeStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + writeStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getOffsetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -542,27 +498,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object writeStream_ = ""; /** - * - * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ public java.lang.String getWriteStream() { java.lang.Object ref = writeStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; @@ -571,23 +522,20 @@ public java.lang.String getWriteStream() { } } /** - * - * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ - public com.google.protobuf.ByteString getWriteStreamBytes() { + public com.google.protobuf.ByteString + getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); writeStream_ = b; return b; } else { @@ -595,39 +543,28 @@ public com.google.protobuf.ByteString getWriteStreamBytes() { } } /** - * - * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStream(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStream( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } writeStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearWriteStream() { @@ -637,23 +574,17 @@ public Builder clearWriteStream() { return this; } /** - * - * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setWriteStreamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); writeStream_ = value; bitField0_ |= 0x00000001; @@ -663,35 +594,26 @@ public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, - com.google.protobuf.Int64Value.Builder, - com.google.protobuf.Int64ValueOrBuilder> - offsetBuilder_; + com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; /** - * - * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
      * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
      * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -702,8 +624,6 @@ public com.google.protobuf.Int64Value getOffset() { } } /** - * - * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -725,8 +645,6 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -734,7 +652,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value offset = 2;
      */
-    public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setOffset(
+        com.google.protobuf.Int64Value.Builder builderForValue) {
       if (offsetBuilder_ == null) {
         offset_ = builderForValue.build();
       } else {
@@ -745,8 +664,6 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -756,9 +673,9 @@ public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue)
      */
     public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       if (offsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && offset_ != null
-            && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          offset_ != null &&
+          offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
           getOffsetBuilder().mergeFrom(value);
         } else {
           offset_ = value;
@@ -771,8 +688,6 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -791,8 +706,6 @@ public Builder clearOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -806,8 +719,6 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
       return getOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -819,12 +730,11 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
       if (offsetBuilder_ != null) {
         return offsetBuilder_.getMessageOrBuilder();
       } else {
-        return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+        return offset_ == null ?
+            com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
       }
     }
     /**
-     *
-     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -833,24 +743,21 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
      * .google.protobuf.Int64Value offset = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value,
-            com.google.protobuf.Int64Value.Builder,
-            com.google.protobuf.Int64ValueOrBuilder>
+        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
         getOffsetFieldBuilder() {
       if (offsetBuilder_ == null) {
-        offsetBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Int64Value,
-                com.google.protobuf.Int64Value.Builder,
-                com.google.protobuf.Int64ValueOrBuilder>(
-                getOffset(), getParentForChildren(), isClean());
+        offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
+                getOffset(),
+                getParentForChildren(),
+                isClean());
         offset_ = null;
       }
       return offsetBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -860,12 +767,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.FlushRowsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.FlushRowsRequest)
   private static final com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest();
   }
@@ -874,27 +781,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public FlushRowsRequest parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public FlushRowsRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -909,4 +816,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java
similarity index 58%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java
index e1491363a4..2246e97f5e 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java
@@ -1,86 +1,53 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
-public interface FlushRowsRequestOrBuilder
-    extends
+public interface FlushRowsRequestOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FlushRowsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Required. The stream that is the target of the flush operation.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The writeStream. */ java.lang.String getWriteStream(); /** - * - * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for writeStream. */ - com.google.protobuf.ByteString getWriteStreamBytes(); + com.google.protobuf.ByteString + getWriteStreamBytes(); /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return Whether the offset field is set. */ boolean hasOffset(); /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; - * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** - * - * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java
similarity index 65%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java
index 09d0e513e5..7ca2606016 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java
@@ -1,81 +1,60 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
- *
- *
  * 
  * Respond message for `FlushRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FlushRowsResponse} */ -public final class FlushRowsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FlushRowsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) FlushRowsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FlushRowsResponse.newBuilder() to construct. private FlushRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private FlushRowsResponse() {} + private FlushRowsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FlushRowsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private long offset_ = 0L; /** - * - * *
    * The rows before this offset (including this offset) are flushed.
    * 
* * int64 offset = 1; - * * @return The offset. */ @java.lang.Override @@ -84,7 +63,6 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -96,7 +74,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (offset_ != 0L) { output.writeInt64(1, offset_); } @@ -110,7 +89,8 @@ public int getSerializedSize() { size = 0; if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, offset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -120,15 +100,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse other = - (com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) obj; + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse other = (com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) obj; - if (getOffset() != other.getOffset()) return false; + if (getOffset() + != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -141,143 +121,137 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Respond message for `FlushRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FlushRowsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -287,9 +261,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; } @java.lang.Override @@ -308,11 +282,8 @@ public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse result = - new com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse result = new com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -328,39 +299,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse)other); } else { super.mergeFrom(other); return this; @@ -368,8 +338,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.getDefaultInstance()) return this; if (other.getOffset() != 0L) { setOffset(other.getOffset()); } @@ -399,19 +368,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + offset_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,19 +388,15 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private long offset_; + private long offset_ ; /** - * - * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; - * * @return The offset. */ @java.lang.Override @@ -441,33 +404,27 @@ public long getOffset() { return offset_; } /** - * - * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; - * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -476,9 +433,9 @@ public Builder clearOffset() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -488,12 +445,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) private static final com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse(); } @@ -502,27 +459,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FlushRowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlushRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -537,4 +494,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java new file mode 100644 index 0000000000..a9ea318974 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface FlushRowsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The rows before this offset (including this offset) are flushed.
+   * 
+ * + * int64 offset = 1; + * @return The offset. + */ + long getOffset(); +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java similarity index 61% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java index 412310c7a2..7fb4479760 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Request message for `GetWriteStreamRequest`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest} */ -public final class GetWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetWriteStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) GetWriteStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetWriteStreamRequest.newBuilder() to construct. private GetWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetWriteStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,32 +66,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -161,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest other = - (com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,136 +162,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GetWriteStreamRequest`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,14 +294,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.getDefaultInstance(); } @@ -350,17 +315,13 @@ public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest result = - new com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -371,50 +332,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -446,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -468,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -498,24 +448,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -523,41 +470,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -567,33 +503,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,43 +533,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,8 +579,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java new file mode 100644 index 0000000000..1d115c103e --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface GetWriteStreamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the stream to get, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the stream to get, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java new file mode 100644 index 0000000000..0b812399b6 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java @@ -0,0 +1,68 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/protobuf.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public final class ProtoBufProto { + private ProtoBufProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/bigquery/storage/v1beta2/" + + "protobuf.proto\022%google.cloud.bigquery.st" + + "orage.v1beta2\032 google/protobuf/descripto" + + "r.proto\"I\n\013ProtoSchema\022:\n\020proto_descript" + + "or\030\001 \001(\0132 .google.protobuf.DescriptorPro" + + "to\"$\n\tProtoRows\022\027\n\017serialized_rows\030\001 \003(\014" + + "B\201\001\n)com.google.cloud.bigquery.storage.v" + + "1beta2B\rProtoBufProtoP\001ZCcloud.google.co" + + "m/go/bigquery/storage/apiv1beta2/storage" + + "pb;storagepbb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DescriptorProtos.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor, + new java.lang.String[] { "ProtoDescriptor", }); + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor, + new java.lang.String[] { "SerializedRows", }); + com.google.protobuf.DescriptorProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java similarity index 68% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java index 4f92ff6d18..af9286fe84 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java @@ -1,71 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto package com.google.cloud.bigquery.storage.v1beta2; -/** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoRows} */ -public final class ProtoRows extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoRows} + */ +public final class ProtoRows extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ProtoRows) ProtoRowsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProtoRows.newBuilder() to construct. private ProtoRows(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProtoRows() { serializedRows_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProtoRows(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ProtoRows.class, - com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ProtoRows.class, com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder.class); } public static final int SERIALIZED_ROWS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List serializedRows_; /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -73,16 +55,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated bytes serialized_rows = 1; - * * @return A list containing the serializedRows. */ @java.lang.Override - public java.util.List getSerializedRowsList() { + public java.util.List + getSerializedRowsList() { return serializedRows_; } /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -90,15 +70,12 @@ public java.util.List getSerializedRowsList() {
    * 
* * repeated bytes serialized_rows = 1; - * * @return The count of serializedRows. */ public int getSerializedRowsCount() { return serializedRows_.size(); } /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -106,7 +83,6 @@ public int getSerializedRowsCount() {
    * 
* * repeated bytes serialized_rows = 1; - * * @param index The index of the element to return. * @return The serializedRows at the given index. */ @@ -115,7 +91,6 @@ public com.google.protobuf.ByteString getSerializedRows(int index) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +102,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < serializedRows_.size(); i++) { output.writeBytes(1, serializedRows_.get(i)); } @@ -143,8 +119,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < serializedRows_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(serializedRows_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeBytesSizeNoTag(serializedRows_.get(i)); } size += dataSize; size += 1 * getSerializedRowsList().size(); @@ -157,15 +133,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ProtoRows)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ProtoRows other = - (com.google.cloud.bigquery.storage.v1beta2.ProtoRows) obj; + com.google.cloud.bigquery.storage.v1beta2.ProtoRows other = (com.google.cloud.bigquery.storage.v1beta2.ProtoRows) obj; - if (!getSerializedRowsList().equals(other.getSerializedRowsList())) return false; + if (!getSerializedRowsList() + .equals(other.getSerializedRowsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,127 +163,125 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ProtoRows prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoRows} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoRows} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ProtoRows) com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ProtoRows.class, - com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ProtoRows.class, com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ProtoRows.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -317,9 +291,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; } @java.lang.Override @@ -338,18 +312,14 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoRows build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ProtoRows buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ProtoRows result = - new com.google.cloud.bigquery.storage.v1beta2.ProtoRows(this); + com.google.cloud.bigquery.storage.v1beta2.ProtoRows result = new com.google.cloud.bigquery.storage.v1beta2.ProtoRows(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1beta2.ProtoRows result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.ProtoRows result) { if (((bitField0_ & 0x00000001) != 0)) { serializedRows_ = java.util.Collections.unmodifiableList(serializedRows_); bitField0_ = (bitField0_ & ~0x00000001); @@ -365,39 +335,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ProtoRows r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ProtoRows) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ProtoRows) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ProtoRows)other); } else { super.mergeFrom(other); return this; @@ -405,8 +374,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ProtoRows other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance()) return this; if (!other.serializedRows_.isEmpty()) { if (serializedRows_.isEmpty()) { serializedRows_ = other.serializedRows_; @@ -443,20 +411,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.protobuf.ByteString v = input.readBytes(); - ensureSerializedRowsIsMutable(); - serializedRows_.add(v); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.protobuf.ByteString v = input.readBytes(); + ensureSerializedRowsIsMutable(); + serializedRows_.add(v); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -466,12 +432,9 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List serializedRows_ = - java.util.Collections.emptyList(); - + private java.util.List serializedRows_ = java.util.Collections.emptyList(); private void ensureSerializedRowsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { serializedRows_ = new java.util.ArrayList(serializedRows_); @@ -479,8 +442,6 @@ private void ensureSerializedRowsIsMutable() { } } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -488,17 +449,14 @@ private void ensureSerializedRowsIsMutable() {
      * 
* * repeated bytes serialized_rows = 1; - * * @return A list containing the serializedRows. */ - public java.util.List getSerializedRowsList() { - return ((bitField0_ & 0x00000001) != 0) - ? java.util.Collections.unmodifiableList(serializedRows_) - : serializedRows_; + public java.util.List + getSerializedRowsList() { + return ((bitField0_ & 0x00000001) != 0) ? + java.util.Collections.unmodifiableList(serializedRows_) : serializedRows_; } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -506,15 +464,12 @@ public java.util.List getSerializedRowsList() {
      * 
* * repeated bytes serialized_rows = 1; - * * @return The count of serializedRows. */ public int getSerializedRowsCount() { return serializedRows_.size(); } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -522,7 +477,6 @@ public int getSerializedRowsCount() {
      * 
* * repeated bytes serialized_rows = 1; - * * @param index The index of the element to return. * @return The serializedRows at the given index. */ @@ -530,8 +484,6 @@ public com.google.protobuf.ByteString getSerializedRows(int index) { return serializedRows_.get(index); } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -539,23 +491,19 @@ public com.google.protobuf.ByteString getSerializedRows(int index) {
      * 
* * repeated bytes serialized_rows = 1; - * * @param index The index to set the value at. * @param value The serializedRows to set. * @return This builder for chaining. */ - public Builder setSerializedRows(int index, com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSerializedRows( + int index, com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } ensureSerializedRowsIsMutable(); serializedRows_.set(index, value); onChanged(); return this; } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -563,22 +511,17 @@ public Builder setSerializedRows(int index, com.google.protobuf.ByteString value
      * 
* * repeated bytes serialized_rows = 1; - * * @param value The serializedRows to add. * @return This builder for chaining. */ public Builder addSerializedRows(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + if (value == null) { throw new NullPointerException(); } ensureSerializedRowsIsMutable(); serializedRows_.add(value); onChanged(); return this; } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -586,20 +529,18 @@ public Builder addSerializedRows(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes serialized_rows = 1; - * * @param values The serializedRows to add. * @return This builder for chaining. */ public Builder addAllSerializedRows( java.lang.Iterable values) { ensureSerializedRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serializedRows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, serializedRows_); onChanged(); return this; } /** - * - * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -607,7 +548,6 @@ public Builder addAllSerializedRows(
      * 
* * repeated bytes serialized_rows = 1; - * * @return This builder for chaining. */ public Builder clearSerializedRows() { @@ -616,9 +556,9 @@ public Builder clearSerializedRows() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,12 +568,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ProtoRows) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ProtoRows) private static final com.google.cloud.bigquery.storage.v1beta2.ProtoRows DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ProtoRows(); } @@ -642,27 +582,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoRows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProtoRows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -677,4 +617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ProtoRows getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java similarity index 68% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java index 1381178f75..9c130fe5f8 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface ProtoRowsOrBuilder - extends +public interface ProtoRowsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ProtoRows) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -33,13 +15,10 @@ public interface ProtoRowsOrBuilder
    * 
* * repeated bytes serialized_rows = 1; - * * @return A list containing the serializedRows. */ java.util.List getSerializedRowsList(); /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -47,13 +26,10 @@ public interface ProtoRowsOrBuilder
    * 
* * repeated bytes serialized_rows = 1; - * * @return The count of serializedRows. */ int getSerializedRowsCount(); /** - * - * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -61,7 +37,6 @@ public interface ProtoRowsOrBuilder
    * 
* * repeated bytes serialized_rows = 1; - * * @param index The index of the element to return. * @return The serializedRows at the given index. */ diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java similarity index 69% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java index 9d3ec977ab..8ffc47a2a6 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java @@ -1,75 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * ProtoSchema describes the schema of the serialized protocol buffer data rows.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoSchema} */ -public final class ProtoSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ProtoSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ProtoSchema) ProtoSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ProtoSchema.newBuilder() to construct. private ProtoSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ProtoSchema() {} + private ProtoSchema() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ProtoSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.class, - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.class, com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder.class); } public static final int PROTO_DESCRIPTOR_FIELD_NUMBER = 1; private com.google.protobuf.DescriptorProtos.DescriptorProto protoDescriptor_; /** - * - * *
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
@@ -77,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return Whether the protoDescriptor field is set. */ @java.lang.Override @@ -85,8 +64,6 @@ public boolean hasProtoDescriptor() { return protoDescriptor_ != null; } /** - * - * *
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
@@ -94,18 +71,13 @@ public boolean hasProtoDescriptor() {
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return The protoDescriptor. */ @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor() { - return protoDescriptor_ == null - ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() - : protoDescriptor_; + return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_; } /** - * - * *
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
@@ -115,15 +87,11 @@ public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor()
    * .google.protobuf.DescriptorProto proto_descriptor = 1;
    */
   @java.lang.Override
-  public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder
-      getProtoDescriptorOrBuilder() {
-    return protoDescriptor_ == null
-        ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()
-        : protoDescriptor_;
+  public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtoDescriptorOrBuilder() {
+    return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -141,7 +109,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (protoDescriptor_ != null) {
       output.writeMessage(1, getProtoDescriptor());
     }
@@ -155,7 +124,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (protoDescriptor_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProtoDescriptor());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getProtoDescriptor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -165,17 +135,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ProtoSchema)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1beta2.ProtoSchema other =
-        (com.google.cloud.bigquery.storage.v1beta2.ProtoSchema) obj;
+    com.google.cloud.bigquery.storage.v1beta2.ProtoSchema other = (com.google.cloud.bigquery.storage.v1beta2.ProtoSchema) obj;
 
     if (hasProtoDescriptor() != other.hasProtoDescriptor()) return false;
     if (hasProtoDescriptor()) {
-      if (!getProtoDescriptor().equals(other.getProtoDescriptor())) return false;
+      if (!getProtoDescriptor()
+          .equals(other.getProtoDescriptor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -198,136 +168,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.bigquery.storage.v1beta2.ProtoSchema prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ProtoSchema prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * ProtoSchema describes the schema of the serialized protocol buffer data rows.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ProtoSchema) com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.class, - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.class, com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +304,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; } @java.lang.Override @@ -362,11 +325,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema result = - new com.google.cloud.bigquery.storage.v1beta2.ProtoSchema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema result = new com.google.cloud.bigquery.storage.v1beta2.ProtoSchema(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -374,8 +334,9 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema buildPartial() { private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ProtoSchema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.protoDescriptor_ = - protoDescriptorBuilder_ == null ? protoDescriptor_ : protoDescriptorBuilder_.build(); + result.protoDescriptor_ = protoDescriptorBuilder_ == null + ? protoDescriptor_ + : protoDescriptorBuilder_.build(); } } @@ -383,39 +344,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ProtoSchema public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ProtoSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ProtoSchema) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ProtoSchema)other); } else { super.mergeFrom(other); return this; @@ -423,8 +383,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ProtoSchema other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance()) return this; if (other.hasProtoDescriptor()) { mergeProtoDescriptor(other.getProtoDescriptor()); } @@ -459,19 +418,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getProtoDescriptorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getProtoDescriptorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -481,18 +440,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.DescriptorProtos.DescriptorProto protoDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DescriptorProtos.DescriptorProto, - com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, - com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> - protoDescriptorBuilder_; + com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> protoDescriptorBuilder_; /** - * - * *
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -500,15 +453,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return Whether the protoDescriptor field is set. */ public boolean hasProtoDescriptor() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -516,21 +466,16 @@ public boolean hasProtoDescriptor() {
      * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return The protoDescriptor. */ public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor() { if (protoDescriptorBuilder_ == null) { - return protoDescriptor_ == null - ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() - : protoDescriptor_; + return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_; } else { return protoDescriptorBuilder_.getMessage(); } } /** - * - * *
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -553,8 +498,6 @@ public Builder setProtoDescriptor(com.google.protobuf.DescriptorProtos.Descripto
       return this;
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -575,8 +518,6 @@ public Builder setProtoDescriptor(
       return this;
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -585,13 +526,11 @@ public Builder setProtoDescriptor(
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public Builder mergeProtoDescriptor(
-        com.google.protobuf.DescriptorProtos.DescriptorProto value) {
+    public Builder mergeProtoDescriptor(com.google.protobuf.DescriptorProtos.DescriptorProto value) {
       if (protoDescriptorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && protoDescriptor_ != null
-            && protoDescriptor_
-                != com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          protoDescriptor_ != null &&
+          protoDescriptor_ != com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) {
           getProtoDescriptorBuilder().mergeFrom(value);
         } else {
           protoDescriptor_ = value;
@@ -604,8 +543,6 @@ public Builder mergeProtoDescriptor(
       return this;
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -625,8 +562,6 @@ public Builder clearProtoDescriptor() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -635,15 +570,12 @@ public Builder clearProtoDescriptor() {
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder
-        getProtoDescriptorBuilder() {
+    public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getProtoDescriptorBuilder() {
       bitField0_ |= 0x00000001;
       onChanged();
       return getProtoDescriptorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -652,19 +584,15 @@ public Builder clearProtoDescriptor() {
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder
-        getProtoDescriptorOrBuilder() {
+    public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtoDescriptorOrBuilder() {
       if (protoDescriptorBuilder_ != null) {
         return protoDescriptorBuilder_.getMessageOrBuilder();
       } else {
-        return protoDescriptor_ == null
-            ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()
-            : protoDescriptor_;
+        return protoDescriptor_ == null ?
+            com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_;
       }
     }
     /**
-     *
-     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -674,24 +602,21 @@ public Builder clearProtoDescriptor() {
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.DescriptorProtos.DescriptorProto,
-            com.google.protobuf.DescriptorProtos.DescriptorProto.Builder,
-            com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>
+        com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 
         getProtoDescriptorFieldBuilder() {
       if (protoDescriptorBuilder_ == null) {
-        protoDescriptorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.DescriptorProtos.DescriptorProto,
-                com.google.protobuf.DescriptorProtos.DescriptorProto.Builder,
-                com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>(
-                getProtoDescriptor(), getParentForChildren(), isClean());
+        protoDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>(
+                getProtoDescriptor(),
+                getParentForChildren(),
+                isClean());
         protoDescriptor_ = null;
       }
       return protoDescriptorBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -701,12 +626,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ProtoSchema)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ProtoSchema)
   private static final com.google.cloud.bigquery.storage.v1beta2.ProtoSchema DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ProtoSchema();
   }
@@ -715,27 +640,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ProtoSchema parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ProtoSchema parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -750,4 +675,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java
similarity index 71%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java
index bc76d4a88e..9ad82e4562 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
-public interface ProtoSchemaOrBuilder
-    extends
+public interface ProtoSchemaOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ProtoSchema)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
@@ -33,13 +15,10 @@ public interface ProtoSchemaOrBuilder
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return Whether the protoDescriptor field is set. */ boolean hasProtoDescriptor(); /** - * - * *
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
@@ -47,13 +26,10 @@ public interface ProtoSchemaOrBuilder
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; - * * @return The protoDescriptor. */ com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor(); /** - * - * *
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java
similarity index 64%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java
index bcd7f664c5..56bf839134 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java
@@ -1,87 +1,62 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
- *
- *
  * 
  * Request message for `ReadRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadRowsRequest} */ -public final class ReadRowsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReadRowsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) ReadRowsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReadRowsRequest.newBuilder() to construct. private ReadRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadRowsRequest() { readStream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.class, - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.Builder.class); } public static final int READ_STREAM_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object readStream_ = ""; /** - * - * *
    * Required. Stream to read rows from.
    * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The readStream. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getReadStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readStream_ = s; return s; } } /** - * - * *
    * Required. Stream to read rows from.
    * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for readStream. */ @java.lang.Override - public com.google.protobuf.ByteString getReadStreamBytes() { + public com.google.protobuf.ByteString + getReadStreamBytes() { java.lang.Object ref = readStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); readStream_ = b; return b; } else { @@ -125,8 +98,6 @@ public com.google.protobuf.ByteString getReadStreamBytes() { public static final int OFFSET_FIELD_NUMBER = 2; private long offset_ = 0L; /** - * - * *
    * The offset requested must be less than the last row read from Read.
    * Requesting a larger offset is undefined. If not specified, start reading
@@ -134,7 +105,6 @@ public com.google.protobuf.ByteString getReadStreamBytes() {
    * 
* * int64 offset = 2; - * * @return The offset. */ @java.lang.Override @@ -143,7 +113,6 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,7 +124,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readStream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, readStream_); } @@ -175,7 +145,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, readStream_); } if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, offset_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -185,16 +156,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest other = - (com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest other = (com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) obj; - if (!getReadStream().equals(other.getReadStream())) return false; - if (getOffset() != other.getOffset()) return false; + if (!getReadStream() + .equals(other.getReadStream())) return false; + if (getOffset() + != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -209,143 +181,137 @@ public int hashCode() { hash = (37 * hash) + READ_STREAM_FIELD_NUMBER; hash = (53 * hash) + getReadStream().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `ReadRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadRowsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.class, - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -356,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; } @java.lang.Override @@ -377,11 +343,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest result = - new com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest result = new com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -400,39 +363,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadRowsReq public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest)other); } else { super.mergeFrom(other); return this; @@ -440,8 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.getDefaultInstance()) return this; if (!other.getReadStream().isEmpty()) { readStream_ = other.readStream_; bitField0_ |= 0x00000001; @@ -476,25 +437,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - readStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - offset_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + readStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + offset_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -504,27 +462,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object readStream_ = ""; /** - * - * *
      * Required. Stream to read rows from.
      * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The readStream. */ public java.lang.String getReadStream() { java.lang.Object ref = readStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readStream_ = s; return s; @@ -533,23 +486,20 @@ public java.lang.String getReadStream() { } } /** - * - * *
      * Required. Stream to read rows from.
      * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for readStream. */ - public com.google.protobuf.ByteString getReadStreamBytes() { + public com.google.protobuf.ByteString + getReadStreamBytes() { java.lang.Object ref = readStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); readStream_ = b; return b; } else { @@ -557,39 +507,28 @@ public com.google.protobuf.ByteString getReadStreamBytes() { } } /** - * - * *
      * Required. Stream to read rows from.
      * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The readStream to set. * @return This builder for chaining. */ - public Builder setReadStream(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReadStream( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } readStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Stream to read rows from.
      * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearReadStream() { @@ -599,23 +538,17 @@ public Builder clearReadStream() { return this; } /** - * - * *
      * Required. Stream to read rows from.
      * 
* - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for readStream to set. * @return This builder for chaining. */ - public Builder setReadStreamBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReadStreamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); readStream_ = value; bitField0_ |= 0x00000001; @@ -623,10 +556,8 @@ public Builder setReadStreamBytes(com.google.protobuf.ByteString value) { return this; } - private long offset_; + private long offset_ ; /** - * - * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -634,7 +565,6 @@ public Builder setReadStreamBytes(com.google.protobuf.ByteString value) {
      * 
* * int64 offset = 2; - * * @return The offset. */ @java.lang.Override @@ -642,8 +572,6 @@ public long getOffset() { return offset_; } /** - * - * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -651,20 +579,17 @@ public long getOffset() {
      * 
* * int64 offset = 2; - * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -672,7 +597,6 @@ public Builder setOffset(long value) {
      * 
* * int64 offset = 2; - * * @return This builder for chaining. */ public Builder clearOffset() { @@ -681,9 +605,9 @@ public Builder clearOffset() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -693,12 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) private static final com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest(); } @@ -707,27 +631,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadRowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -742,4 +666,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java new file mode 100644 index 0000000000..e125fcea9e --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java @@ -0,0 +1,41 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface ReadRowsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Stream to read rows from.
+   * 
+ * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The readStream. + */ + java.lang.String getReadStream(); + /** + *
+   * Required. Stream to read rows from.
+   * 
+ * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for readStream. + */ + com.google.protobuf.ByteString + getReadStreamBytes(); + + /** + *
+   * The offset requested must be less than the last row read from Read.
+   * Requesting a larger offset is undefined. If not specified, start reading
+   * from offset zero.
+   * 
+ * + * int64 offset = 2; + * @return The offset. + */ + long getOffset(); +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java similarity index 68% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java index 69a977cecd..57bf5c493d 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Response from calling `ReadRows` may include row data, progress and
  * throttling information.
@@ -28,56 +11,52 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadRowsResponse}
  */
-public final class ReadRowsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReadRowsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadRowsResponse)
     ReadRowsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReadRowsResponse.newBuilder() to construct.
   private ReadRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ReadRowsResponse() {}
+  private ReadRowsResponse() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReadRowsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-        .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-        .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.class,
-            com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.Builder.class);
+            com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.Builder.class);
   }
 
   private int rowsCase_ = 0;
   private java.lang.Object rows_;
-
   public enum RowsCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AVRO_ROWS(3),
     ARROW_RECORD_BATCH(4),
     ROWS_NOT_SET(0);
     private final int value;
-
     private RowsCase(int value) {
       this.value = value;
     }
@@ -93,38 +72,32 @@ public static RowsCase valueOf(int value) {
 
     public static RowsCase forNumber(int value) {
       switch (value) {
-        case 3:
-          return AVRO_ROWS;
-        case 4:
-          return ARROW_RECORD_BATCH;
-        case 0:
-          return ROWS_NOT_SET;
-        default:
-          return null;
+        case 3: return AVRO_ROWS;
+        case 4: return ARROW_RECORD_BATCH;
+        case 0: return ROWS_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RowsCase getRowsCase() {
-    return RowsCase.forNumber(rowsCase_);
+  public RowsCase
+  getRowsCase() {
+    return RowsCase.forNumber(
+        rowsCase_);
   }
 
   private int schemaCase_ = 0;
   private java.lang.Object schema_;
-
   public enum SchemaCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AVRO_SCHEMA(7),
     ARROW_SCHEMA(8),
     SCHEMA_NOT_SET(0);
     private final int value;
-
     private SchemaCase(int value) {
       this.value = value;
     }
@@ -140,36 +113,30 @@ public static SchemaCase valueOf(int value) {
 
     public static SchemaCase forNumber(int value) {
       switch (value) {
-        case 7:
-          return AVRO_SCHEMA;
-        case 8:
-          return ARROW_SCHEMA;
-        case 0:
-          return SCHEMA_NOT_SET;
-        default:
-          return null;
+        case 7: return AVRO_SCHEMA;
+        case 8: return ARROW_SCHEMA;
+        case 0: return SCHEMA_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SchemaCase getSchemaCase() {
-    return SchemaCase.forNumber(schemaCase_);
+  public SchemaCase
+  getSchemaCase() {
+    return SchemaCase.forNumber(
+        schemaCase_);
   }
 
   public static final int AVRO_ROWS_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; - * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -177,26 +144,21 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** - * - * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; - * * @return The avroRows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroRows getAvroRows() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance(); } /** - * - * *
    * Serialized row data in AVRO format.
    * 
@@ -206,21 +168,18 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRows getAvroRows() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder getAvroRowsOrBuilder() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance(); } public static final int ARROW_RECORD_BATCH_FIELD_NUMBER = 4; /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; - * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -228,26 +187,21 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; - * * @return The arrowRecordBatch. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getArrowRecordBatch() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance(); } /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
@@ -255,10 +209,9 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getArrowRecord * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder - getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance(); } @@ -266,14 +219,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getArrowRecord public static final int ROW_COUNT_FIELD_NUMBER = 6; private long rowCount_ = 0L; /** - * - * *
    * Number of serialized rows in the rows block.
    * 
* * int64 row_count = 6; - * * @return The rowCount. */ @java.lang.Override @@ -284,14 +234,11 @@ public long getRowCount() { public static final int STATS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta2.StreamStats stats_; /** - * - * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; - * * @return Whether the stats field is set. */ @java.lang.Override @@ -299,25 +246,18 @@ public boolean hasStats() { return stats_ != null; } /** - * - * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; - * * @return The stats. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StreamStats getStats() { - return stats_ == null - ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() - : stats_; + return stats_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() : stats_; } /** - * - * *
    * Statistics for the stream.
    * 
@@ -326,23 +266,18 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats getStats() { */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder getStatsOrBuilder() { - return stats_ == null - ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() - : stats_; + return stats_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() : stats_; } public static final int THROTTLE_STATE_FIELD_NUMBER = 5; private com.google.cloud.bigquery.storage.v1beta2.ThrottleState throttleState_; /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; - * * @return Whether the throttleState field is set. */ @java.lang.Override @@ -350,26 +285,19 @@ public boolean hasThrottleState() { return throttleState_ != null; } /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; - * * @return The throttleState. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ThrottleState getThrottleState() { - return throttleState_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() - : throttleState_; + return throttleState_ == null ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() : throttleState_; } /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
@@ -378,25 +306,17 @@ public com.google.cloud.bigquery.storage.v1beta2.ThrottleState getThrottleState(
    * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder
-      getThrottleStateOrBuilder() {
-    return throttleState_ == null
-        ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()
-        : throttleState_;
+  public com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder getThrottleStateOrBuilder() {
+    return throttleState_ == null ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() : throttleState_;
   }
 
   public static final int AVRO_SCHEMA_FIELD_NUMBER = 7;
   /**
-   *
-   *
    * 
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -404,56 +324,42 @@ public boolean hasAvroSchema() { return schemaCase_ == 7; } /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema() { if (schemaCase_ == 7) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { if (schemaCase_ == 7) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } public static final int ARROW_SCHEMA_FIELD_NUMBER = 8; /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -461,46 +367,36 @@ public boolean hasArrowSchema() { return schemaCase_ == 8; } /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema() { if (schemaCase_ == 8) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if (schemaCase_ == 8) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -512,7 +408,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (stats_ != null) { output.writeMessage(2, getStats()); } @@ -544,33 +441,32 @@ public int getSerializedSize() { size = 0; if (stats_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStats()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStats()); } if (rowsCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_); } if (rowsCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_); } if (throttleState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getThrottleState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getThrottleState()); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, rowCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, rowCount_); } if (schemaCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_); } if (schemaCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -580,30 +476,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse other = - (com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse other = (com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) obj; - if (getRowCount() != other.getRowCount()) return false; + if (getRowCount() + != other.getRowCount()) return false; if (hasStats() != other.hasStats()) return false; if (hasStats()) { - if (!getStats().equals(other.getStats())) return false; + if (!getStats() + .equals(other.getStats())) return false; } if (hasThrottleState() != other.hasThrottleState()) return false; if (hasThrottleState()) { - if (!getThrottleState().equals(other.getThrottleState())) return false; + if (!getThrottleState() + .equals(other.getThrottleState())) return false; } if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 3: - if (!getAvroRows().equals(other.getAvroRows())) return false; + if (!getAvroRows() + .equals(other.getAvroRows())) return false; break; case 4: - if (!getArrowRecordBatch().equals(other.getArrowRecordBatch())) return false; + if (!getArrowRecordBatch() + .equals(other.getArrowRecordBatch())) return false; break; case 0: default: @@ -611,10 +511,12 @@ public boolean equals(final java.lang.Object obj) { if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 7: - if (!getAvroSchema().equals(other.getAvroSchema())) return false; + if (!getAvroSchema() + .equals(other.getAvroSchema())) return false; break; case 8: - if (!getArrowSchema().equals(other.getArrowSchema())) return false; + if (!getArrowSchema() + .equals(other.getArrowSchema())) return false; break; case 0: default: @@ -631,7 +533,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getRowCount()); if (hasStats()) { hash = (37 * hash) + STATS_FIELD_NUMBER; hash = (53 * hash) + getStats().hashCode(); @@ -670,104 +573,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response from calling `ReadRows` may include row data, progress and
    * throttling information.
@@ -775,32 +670,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadRowsResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadRowsResponse)
       com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.class,
-              com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -836,9 +732,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -857,11 +753,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse buildPartial() {
-      com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse result =
-          new com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse result = new com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -873,30 +766,36 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRes
         result.rowCount_ = rowCount_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build();
+        result.stats_ = statsBuilder_ == null
+            ? stats_
+            : statsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.throttleState_ =
-            throttleStateBuilder_ == null ? throttleState_ : throttleStateBuilder_.build();
+        result.throttleState_ = throttleStateBuilder_ == null
+            ? throttleState_
+            : throttleStateBuilder_.build();
       }
     }
 
-    private void buildPartialOneofs(
-        com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse result) {
+    private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse result) {
       result.rowsCase_ = rowsCase_;
       result.rows_ = this.rows_;
-      if (rowsCase_ == 3 && avroRowsBuilder_ != null) {
+      if (rowsCase_ == 3 &&
+          avroRowsBuilder_ != null) {
         result.rows_ = avroRowsBuilder_.build();
       }
-      if (rowsCase_ == 4 && arrowRecordBatchBuilder_ != null) {
+      if (rowsCase_ == 4 &&
+          arrowRecordBatchBuilder_ != null) {
         result.rows_ = arrowRecordBatchBuilder_.build();
       }
       result.schemaCase_ = schemaCase_;
       result.schema_ = this.schema_;
-      if (schemaCase_ == 7 && avroSchemaBuilder_ != null) {
+      if (schemaCase_ == 7 &&
+          avroSchemaBuilder_ != null) {
         result.schema_ = avroSchemaBuilder_.build();
       }
-      if (schemaCase_ == 8 && arrowSchemaBuilder_ != null) {
+      if (schemaCase_ == 8 &&
+          arrowSchemaBuilder_ != null) {
         result.schema_ = arrowSchemaBuilder_.build();
       }
     }
@@ -905,39 +804,38 @@ private void buildPartialOneofs(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -945,8 +843,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse other) {
-      if (other == com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.getDefaultInstance()) return this;
       if (other.getRowCount() != 0L) {
         setRowCount(other.getRowCount());
       }
@@ -957,36 +854,30 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRespo
         mergeThrottleState(other.getThrottleState());
       }
       switch (other.getRowsCase()) {
-        case AVRO_ROWS:
-          {
-            mergeAvroRows(other.getAvroRows());
-            break;
-          }
-        case ARROW_RECORD_BATCH:
-          {
-            mergeArrowRecordBatch(other.getArrowRecordBatch());
-            break;
-          }
-        case ROWS_NOT_SET:
-          {
-            break;
-          }
+        case AVRO_ROWS: {
+          mergeAvroRows(other.getAvroRows());
+          break;
+        }
+        case ARROW_RECORD_BATCH: {
+          mergeArrowRecordBatch(other.getArrowRecordBatch());
+          break;
+        }
+        case ROWS_NOT_SET: {
+          break;
+        }
       }
       switch (other.getSchemaCase()) {
-        case AVRO_SCHEMA:
-          {
-            mergeAvroSchema(other.getAvroSchema());
-            break;
-          }
-        case ARROW_SCHEMA:
-          {
-            mergeArrowSchema(other.getArrowSchema());
-            break;
-          }
-        case SCHEMA_NOT_SET:
-          {
-            break;
-          }
+        case AVRO_SCHEMA: {
+          mergeAvroSchema(other.getAvroSchema());
+          break;
+        }
+        case ARROW_SCHEMA: {
+          mergeArrowSchema(other.getArrowSchema());
+          break;
+        }
+        case SCHEMA_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1014,56 +905,59 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18:
-              {
-                input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getAvroRowsFieldBuilder().getBuilder(), extensionRegistry);
-                rowsCase_ = 3;
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(
-                    getArrowRecordBatchFieldBuilder().getBuilder(), extensionRegistry);
-                rowsCase_ = 4;
-                break;
-              } // case 34
-            case 42:
-              {
-                input.readMessage(getThrottleStateFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 48:
-              {
-                rowCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 48
-            case 58:
-              {
-                input.readMessage(getAvroSchemaFieldBuilder().getBuilder(), extensionRegistry);
-                schemaCase_ = 7;
-                break;
-              } // case 58
-            case 66:
-              {
-                input.readMessage(getArrowSchemaFieldBuilder().getBuilder(), extensionRegistry);
-                schemaCase_ = 8;
-                break;
-              } // case 66
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 18: {
+              input.readMessage(
+                  getStatsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getAvroRowsFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              rowsCase_ = 3;
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getArrowRecordBatchFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              rowsCase_ = 4;
+              break;
+            } // case 34
+            case 42: {
+              input.readMessage(
+                  getThrottleStateFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 48: {
+              rowCount_ = input.readInt64();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 48
+            case 58: {
+              input.readMessage(
+                  getAvroSchemaFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              schemaCase_ = 7;
+              break;
+            } // case 58
+            case 66: {
+              input.readMessage(
+                  getArrowSchemaFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              schemaCase_ = 8;
+              break;
+            } // case 66
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1073,12 +967,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int rowsCase_ = 0;
     private java.lang.Object rows_;
-
-    public RowsCase getRowsCase() {
-      return RowsCase.forNumber(rowsCase_);
+    public RowsCase
+        getRowsCase() {
+      return RowsCase.forNumber(
+          rowsCase_);
     }
 
     public Builder clearRows() {
@@ -1090,9 +984,10 @@ public Builder clearRows() {
 
     private int schemaCase_ = 0;
     private java.lang.Object schema_;
-
-    public SchemaCase getSchemaCase() {
-      return SchemaCase.forNumber(schemaCase_);
+    public SchemaCase
+        getSchemaCase() {
+      return SchemaCase.forNumber(
+          schemaCase_);
     }
 
     public Builder clearSchema() {
@@ -1105,19 +1000,13 @@ public Builder clearSchema() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.AvroRows,
-            com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder>
-        avroRowsBuilder_;
+        com.google.cloud.bigquery.storage.v1beta2.AvroRows, com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder> avroRowsBuilder_;
     /**
-     *
-     *
      * 
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; - * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -1125,14 +1014,11 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; - * * @return The avroRows. */ @java.lang.Override @@ -1150,8 +1036,6 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRows getAvroRows() { } } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1172,8 +1056,6 @@ public Builder setAvroRows(com.google.cloud.bigquery.storage.v1beta2.AvroRows va return this; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1192,8 +1074,6 @@ public Builder setAvroRows( return this; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1202,13 +1082,10 @@ public Builder setAvroRows( */ public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1beta2.AvroRows value) { if (avroRowsBuilder_ == null) { - if (rowsCase_ == 3 - && rows_ != com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance()) { - rows_ = - com.google.cloud.bigquery.storage.v1beta2.AvroRows.newBuilder( - (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_) - .mergeFrom(value) - .buildPartial(); + if (rowsCase_ == 3 && + rows_ != com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance()) { + rows_ = com.google.cloud.bigquery.storage.v1beta2.AvroRows.newBuilder((com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_) + .mergeFrom(value).buildPartial(); } else { rows_ = value; } @@ -1224,8 +1101,6 @@ public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1beta2.AvroRows return this; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1249,8 +1124,6 @@ public Builder clearAvroRows() { return this; } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1261,8 +1134,6 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder getAvroRowsBui return getAvroRowsFieldBuilder().getBuilder(); } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1281,8 +1152,6 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder getAvroRowsOr } } /** - * - * *
      * Serialized row data in AVRO format.
      * 
@@ -1290,19 +1159,14 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder getAvroRowsOr * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroRows, - com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder, - com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.AvroRows, com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder> getAvroRowsFieldBuilder() { if (avroRowsBuilder_ == null) { if (!(rowsCase_ == 3)) { rows_ = com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance(); } - avroRowsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroRows, - com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder, - com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder>( + avroRowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.AvroRows, com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_, getParentForChildren(), isClean()); @@ -1314,19 +1178,13 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder getAvroRowsOr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder> - arrowRecordBatchBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder> arrowRecordBatchBuilder_; /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; - * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -1334,14 +1192,11 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; - * * @return The arrowRecordBatch. */ @java.lang.Override @@ -1359,16 +1214,13 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getArrowRecord } } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ - public Builder setArrowRecordBatch( - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch value) { + public Builder setArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1382,8 +1234,6 @@ public Builder setArrowRecordBatch( return this; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1402,26 +1252,18 @@ public Builder setArrowRecordBatch( return this; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ - public Builder mergeArrowRecordBatch( - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch value) { + public Builder mergeArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { - if (rowsCase_ == 4 - && rows_ - != com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch - .getDefaultInstance()) { - rows_ = - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.newBuilder( - (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_) - .mergeFrom(value) - .buildPartial(); + if (rowsCase_ == 4 && + rows_ != com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance()) { + rows_ = com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.newBuilder((com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_) + .mergeFrom(value).buildPartial(); } else { rows_ = value; } @@ -1437,8 +1279,6 @@ public Builder mergeArrowRecordBatch( return this; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1462,21 +1302,16 @@ public Builder clearArrowRecordBatch() { return this; } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ - public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder - getArrowRecordBatchBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder getArrowRecordBatchBuilder() { return getArrowRecordBatchFieldBuilder().getBuilder(); } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1484,8 +1319,7 @@ public Builder clearArrowRecordBatch() { * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder - getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { if ((rowsCase_ == 4) && (arrowRecordBatchBuilder_ != null)) { return arrowRecordBatchBuilder_.getMessageOrBuilder(); } else { @@ -1496,8 +1330,6 @@ public Builder clearArrowRecordBatch() { } } /** - * - * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1505,19 +1337,14 @@ public Builder clearArrowRecordBatch() { * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder> getArrowRecordBatchFieldBuilder() { if (arrowRecordBatchBuilder_ == null) { if (!(rowsCase_ == 4)) { rows_ = com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance(); } - arrowRecordBatchBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder>( + arrowRecordBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_, getParentForChildren(), isClean()); @@ -1528,16 +1355,13 @@ public Builder clearArrowRecordBatch() { return arrowRecordBatchBuilder_; } - private long rowCount_; + private long rowCount_ ; /** - * - * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; - * * @return The rowCount. */ @java.lang.Override @@ -1545,33 +1369,27 @@ public long getRowCount() { return rowCount_; } /** - * - * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; - * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; - * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -1583,47 +1401,34 @@ public Builder clearRowCount() { private com.google.cloud.bigquery.storage.v1beta2.StreamStats stats_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, - com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder> - statsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.StreamStats, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder> statsBuilder_; /** - * - * *
      * Statistics for the stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; - * * @return Whether the stats field is set. */ public boolean hasStats() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Statistics for the stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; - * * @return The stats. */ public com.google.cloud.bigquery.storage.v1beta2.StreamStats getStats() { if (statsBuilder_ == null) { - return stats_ == null - ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() - : stats_; + return stats_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() : stats_; } else { return statsBuilder_.getMessage(); } } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1644,8 +1449,6 @@ public Builder setStats(com.google.cloud.bigquery.storage.v1beta2.StreamStats va return this; } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1664,8 +1467,6 @@ public Builder setStats( return this; } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1674,10 +1475,9 @@ public Builder setStats( */ public Builder mergeStats(com.google.cloud.bigquery.storage.v1beta2.StreamStats value) { if (statsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && stats_ != null - && stats_ - != com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + stats_ != null && + stats_ != com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance()) { getStatsBuilder().mergeFrom(value); } else { stats_ = value; @@ -1690,8 +1490,6 @@ public Builder mergeStats(com.google.cloud.bigquery.storage.v1beta2.StreamStats return this; } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1709,8 +1507,6 @@ public Builder clearStats() { return this; } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1723,8 +1519,6 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder getStatsBui return getStatsFieldBuilder().getBuilder(); } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1735,14 +1529,11 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder getStatsOr if (statsBuilder_ != null) { return statsBuilder_.getMessageOrBuilder(); } else { - return stats_ == null - ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() - : stats_; + return stats_ == null ? + com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() : stats_; } } /** - * - * *
      * Statistics for the stream.
      * 
@@ -1750,17 +1541,14 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder getStatsOr * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, - com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.StreamStats, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder> getStatsFieldBuilder() { if (statsBuilder_ == null) { - statsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, - com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder>( - getStats(), getParentForChildren(), isClean()); + statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.StreamStats, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder>( + getStats(), + getParentForChildren(), + isClean()); stats_ = null; } return statsBuilder_; @@ -1768,49 +1556,36 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder getStatsOr private com.google.cloud.bigquery.storage.v1beta2.ThrottleState throttleState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ThrottleState, - com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder, - com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder> - throttleStateBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ThrottleState, com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder> throttleStateBuilder_; /** - * - * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; - * * @return Whether the throttleState field is set. */ public boolean hasThrottleState() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; - * * @return The throttleState. */ public com.google.cloud.bigquery.storage.v1beta2.ThrottleState getThrottleState() { if (throttleStateBuilder_ == null) { - return throttleState_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() - : throttleState_; + return throttleState_ == null ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() : throttleState_; } else { return throttleStateBuilder_.getMessage(); } } /** - * - * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1832,8 +1607,6 @@ public Builder setThrottleState(com.google.cloud.bigquery.storage.v1beta2.Thrott
       return this;
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1853,8 +1626,6 @@ public Builder setThrottleState(
       return this;
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1862,13 +1633,11 @@ public Builder setThrottleState(
      *
      * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5;
      */
-    public Builder mergeThrottleState(
-        com.google.cloud.bigquery.storage.v1beta2.ThrottleState value) {
+    public Builder mergeThrottleState(com.google.cloud.bigquery.storage.v1beta2.ThrottleState value) {
       if (throttleStateBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0)
-            && throttleState_ != null
-            && throttleState_
-                != com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0) &&
+          throttleState_ != null &&
+          throttleState_ != com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()) {
           getThrottleStateBuilder().mergeFrom(value);
         } else {
           throttleState_ = value;
@@ -1881,8 +1650,6 @@ public Builder mergeThrottleState(
       return this;
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1901,8 +1668,6 @@ public Builder clearThrottleState() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1910,15 +1675,12 @@ public Builder clearThrottleState() {
      *
      * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder
-        getThrottleStateBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder getThrottleStateBuilder() {
       bitField0_ |= 0x00000010;
       onChanged();
       return getThrottleStateFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1926,19 +1688,15 @@ public Builder clearThrottleState() {
      *
      * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder
-        getThrottleStateOrBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder getThrottleStateOrBuilder() {
       if (throttleStateBuilder_ != null) {
         return throttleStateBuilder_.getMessageOrBuilder();
       } else {
-        return throttleState_ == null
-            ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()
-            : throttleState_;
+        return throttleState_ == null ?
+            com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() : throttleState_;
       }
     }
     /**
-     *
-     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1947,38 +1705,27 @@ public Builder clearThrottleState() {
      * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.ThrottleState,
-            com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder>
+        com.google.cloud.bigquery.storage.v1beta2.ThrottleState, com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder> 
         getThrottleStateFieldBuilder() {
       if (throttleStateBuilder_ == null) {
-        throttleStateBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1beta2.ThrottleState,
-                com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder,
-                com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder>(
-                getThrottleState(), getParentForChildren(), isClean());
+        throttleStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1beta2.ThrottleState, com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder>(
+                getThrottleState(),
+                getParentForChildren(),
+                isClean());
         throttleState_ = null;
       }
       return throttleStateBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.AvroSchema,
-            com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder>
-        avroSchemaBuilder_;
+        com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> avroSchemaBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -1986,16 +1733,11 @@ public boolean hasAvroSchema() { return schemaCase_ == 7; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ @java.lang.Override @@ -2013,15 +1755,11 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema() { } } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchema value) { if (avroSchemaBuilder_ == null) { @@ -2037,15 +1775,11 @@ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchem return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAvroSchema( com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder builderForValue) { @@ -2059,26 +1793,18 @@ public Builder setAvroSchema( return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchema value) { if (avroSchemaBuilder_ == null) { - if (schemaCase_ == 7 - && schema_ - != com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.newBuilder( - (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 7 && + schema_ != com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) { + schema_ = com.google.cloud.bigquery.storage.v1beta2.AvroSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -2094,15 +1820,11 @@ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSch return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAvroSchema() { if (avroSchemaBuilder_ == null) { @@ -2121,29 +1843,21 @@ public Builder clearAvroSchema() { return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder getAvroSchemaBuilder() { return getAvroSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { @@ -2157,30 +1871,21 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSche } } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroSchema, - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> getAvroSchemaFieldBuilder() { if (avroSchemaBuilder_ == null) { if (!(schemaCase_ == 7)) { schema_ = com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } - avroSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroSchema, - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder>( + avroSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_, getParentForChildren(), isClean()); @@ -2192,21 +1897,13 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSche } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> - arrowSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> arrowSchemaBuilder_; /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -2214,16 +1911,11 @@ public boolean hasArrowSchema() { return schemaCase_ == 8; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ @java.lang.Override @@ -2241,15 +1933,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema() { } } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { @@ -2265,15 +1953,11 @@ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSch return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setArrowSchema( com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder builderForValue) { @@ -2287,26 +1971,18 @@ public Builder setArrowSchema( return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { - if (schemaCase_ == 8 - && schema_ - != com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.newBuilder( - (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 8 && + schema_ != com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance()) { + schema_ = com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -2322,15 +1998,11 @@ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowS return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearArrowSchema() { if (arrowSchemaBuilder_ == null) { @@ -2349,33 +2021,24 @@ public Builder clearArrowSchema() { return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder getArrowSchemaBuilder() { return getArrowSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder - getArrowSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if ((schemaCase_ == 8) && (arrowSchemaBuilder_ != null)) { return arrowSchemaBuilder_.getMessageOrBuilder(); } else { @@ -2386,30 +2049,21 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder getArrowSch } } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> getArrowSchemaFieldBuilder() { if (arrowSchemaBuilder_ == null) { if (!(schemaCase_ == 8)) { schema_ = com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } - arrowSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder>( + arrowSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_, getParentForChildren(), isClean()); @@ -2419,9 +2073,9 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder getArrowSch onChanged(); return arrowSchemaBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2431,12 +2085,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) private static final com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse(); } @@ -2445,27 +2099,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadRowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2480,4 +2134,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java index 9dac211a11..aae8074e96 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface ReadRowsResponseOrBuilder - extends +public interface ReadRowsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; - * * @return Whether the avroRows field is set. */ boolean hasAvroRows(); /** - * - * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; - * * @return The avroRows. */ com.google.cloud.bigquery.storage.v1beta2.AvroRows getAvroRows(); /** - * - * *
    * Serialized row data in AVRO format.
    * 
@@ -59,81 +35,61 @@ public interface ReadRowsResponseOrBuilder com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder getAvroRowsOrBuilder(); /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; - * * @return Whether the arrowRecordBatch field is set. */ boolean hasArrowRecordBatch(); /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; - * * @return The arrowRecordBatch. */ com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getArrowRecordBatch(); /** - * - * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder - getArrowRecordBatchOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder(); /** - * - * *
    * Number of serialized rows in the rows block.
    * 
* * int64 row_count = 6; - * * @return The rowCount. */ long getRowCount(); /** - * - * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; - * * @return Whether the stats field is set. */ boolean hasStats(); /** - * - * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; - * * @return The stats. */ com.google.cloud.bigquery.storage.v1beta2.StreamStats getStats(); /** - * - * *
    * Statistics for the stream.
    * 
@@ -143,34 +99,26 @@ public interface ReadRowsResponseOrBuilder com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder getStatsOrBuilder(); /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; - * * @return Whether the throttleState field is set. */ boolean hasThrottleState(); /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; - * * @return The throttleState. */ com.google.cloud.bigquery.storage.v1beta2.ThrottleState getThrottleState(); /** - * - * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
@@ -181,84 +129,56 @@ public interface ReadRowsResponseOrBuilder
   com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder getThrottleStateOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ boolean hasAvroSchema(); /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema(); /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ boolean hasArrowSchema(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder(); diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java similarity index 66% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java index a7d9cb4359..0661dd7b2c 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Information about the ReadSession.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession} */ -public final class ReadSession extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ReadSession extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadSession) ReadSessionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ReadSession.newBuilder() to construct. private ReadSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadSession() { name_ = ""; dataFormat_ = 0; @@ -46,62 +28,52 @@ private ReadSession() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ReadSession(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.class, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder.class); } - public interface TableModifiersOrBuilder - extends + public interface TableModifiersOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return Whether the snapshotTime field is set. */ boolean hasSnapshotTime(); /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return The snapshotTime. */ com.google.protobuf.Timestamp getSnapshotTime(); /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -111,63 +83,57 @@ public interface TableModifiersOrBuilder com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder(); } /** - * - * *
    * Additional attributes when reading a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers} */ - public static final class TableModifiers extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TableModifiers extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) TableModifiersOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableModifiers.newBuilder() to construct. private TableModifiers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TableModifiers() {} + private TableModifiers() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableModifiers(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.class, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder.class); } public static final int SNAPSHOT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp snapshotTime_; /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return Whether the snapshotTime field is set. */ @java.lang.Override @@ -175,25 +141,18 @@ public boolean hasSnapshotTime() { return snapshotTime_ != null; } /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return The snapshotTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSnapshotTime() { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } /** - * - * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -202,13 +161,10 @@ public com.google.protobuf.Timestamp getSnapshotTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,7 +176,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (snapshotTime_ != null) { output.writeMessage(1, getSnapshotTime()); } @@ -234,7 +191,8 @@ public int getSerializedSize() { size = 0; if (snapshotTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshotTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getSnapshotTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -244,17 +202,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers other = - (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers other = (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) obj; if (hasSnapshotTime() != other.hasSnapshotTime()) return false; if (hasSnapshotTime()) { - if (!getSnapshotTime().equals(other.getSnapshotTime())) return false; + if (!getSnapshotTime() + .equals(other.getSnapshotTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -277,95 +235,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -375,42 +325,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Additional attributes when reading a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.class, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -424,22 +371,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers build() { - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -448,21 +392,18 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers buil @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result = - new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result = new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.snapshotTime_ = - snapshotTimeBuilder_ == null ? snapshotTime_ : snapshotTimeBuilder_.build(); + result.snapshotTime_ = snapshotTimeBuilder_ == null + ? snapshotTime_ + : snapshotTimeBuilder_.build(); } } @@ -470,53 +411,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance()) return this; if (other.hasSnapshotTime()) { mergeSnapshotTime(other.getSnapshotTime()); } @@ -546,19 +480,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getSnapshotTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getSnapshotTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -568,52 +502,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp snapshotTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - snapshotTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> snapshotTimeBuilder_; /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return Whether the snapshotTime field is set. */ public boolean hasSnapshotTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; - * * @return The snapshotTime. */ public com.google.protobuf.Timestamp getSnapshotTime() { if (snapshotTimeBuilder_ == null) { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } else { return snapshotTimeBuilder_.getMessage(); } } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -634,15 +554,14 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; */ - public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSnapshotTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (snapshotTimeBuilder_ == null) { snapshotTime_ = builderForValue.build(); } else { @@ -653,8 +572,6 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -663,9 +580,9 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { if (snapshotTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && snapshotTime_ != null - && snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + snapshotTime_ != null && + snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSnapshotTimeBuilder().mergeFrom(value); } else { snapshotTime_ = value; @@ -678,8 +595,6 @@ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -697,8 +612,6 @@ public Builder clearSnapshotTime() { return this; } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -711,8 +624,6 @@ public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { return getSnapshotTimeFieldBuilder().getBuilder(); } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -723,14 +634,11 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { if (snapshotTimeBuilder_ != null) { return snapshotTimeBuilder_.getMessageOrBuilder(); } else { - return snapshotTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : snapshotTime_; + return snapshotTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; } } /** - * - * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -738,22 +646,18 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { * .google.protobuf.Timestamp snapshot_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getSnapshotTimeFieldBuilder() { if (snapshotTimeBuilder_ == null) { - snapshotTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getSnapshotTime(), getParentForChildren(), isClean()); + snapshotTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getSnapshotTime(), + getParentForChildren(), + isClean()); snapshotTime_ = null; } return snapshotTimeBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -766,44 +670,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) - private static final com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers(); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableModifiers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableModifiers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -815,20 +716,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface TableReadOptionsOrBuilder - extends + public interface TableReadOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -837,13 +735,11 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @return A list containing the selectedFields. */ - java.util.List getSelectedFieldsList(); + java.util.List + getSelectedFieldsList(); /** - * - * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -852,13 +748,10 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @return The count of selectedFields. */ int getSelectedFieldsCount(); /** - * - * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -867,14 +760,11 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the element to return. * @return The selectedFields at the given index. */ java.lang.String getSelectedFields(int index); /** - * - * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -883,15 +773,13 @@ public interface TableReadOptionsOrBuilder
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - com.google.protobuf.ByteString getSelectedFieldsBytes(int index); + com.google.protobuf.ByteString + getSelectedFieldsBytes(int index); /** - * - * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -904,13 +792,10 @@ public interface TableReadOptionsOrBuilder
      * 
* * string row_restriction = 2; - * * @return The rowRestriction. */ java.lang.String getRowRestriction(); /** - * - * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -923,73 +808,54 @@ public interface TableReadOptionsOrBuilder
      * 
* * string row_restriction = 2; - * * @return The bytes for rowRestriction. */ - com.google.protobuf.ByteString getRowRestrictionBytes(); + com.google.protobuf.ByteString + getRowRestrictionBytes(); /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the arrowSerializationOptions field is set. */ boolean hasArrowSerializationOptions(); /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The arrowSerializationOptions. */ - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - getArrowSerializationOptions(); + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getArrowSerializationOptions(); /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder - getArrowSerializationOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder(); } /** - * - * *
    * Options dictating how we read a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions} */ - public static final class TableReadOptions extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class TableReadOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) TableReadOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableReadOptions.newBuilder() to construct. private TableReadOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableReadOptions() { selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; rowRestriction_ = ""; @@ -997,37 +863,33 @@ private TableReadOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableReadOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.class, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder.class); } public static final int SELECTED_FIELDS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList selectedFields_; /** - * - * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -1036,15 +898,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * repeated string selected_fields = 1; - * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList + getSelectedFieldsList() { return selectedFields_; } /** - * - * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -1053,15 +913,12 @@ public com.google.protobuf.ProtocolStringList getSelectedFieldsList() {
      * 
* * repeated string selected_fields = 1; - * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** - * - * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -1070,7 +927,6 @@ public int getSelectedFieldsCount() {
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -1078,8 +934,6 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** - * - * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -1088,21 +942,18 @@ public java.lang.String getSelectedFields(int index) {
      * 
* * repeated string selected_fields = 1; - * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString + getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } public static final int ROW_RESTRICTION_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object rowRestriction_ = ""; /** - * - * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -1115,7 +966,6 @@ public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) {
      * 
* * string row_restriction = 2; - * * @return The rowRestriction. */ @java.lang.Override @@ -1124,15 +974,14 @@ public java.lang.String getRowRestriction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; } } /** - * - * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -1145,15 +994,16 @@ public java.lang.String getRowRestriction() {
      * 
* * string row_restriction = 2; - * * @return The bytes for rowRestriction. */ @java.lang.Override - public com.google.protobuf.ByteString getRowRestrictionBytes() { + public com.google.protobuf.ByteString + getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -1162,19 +1012,13 @@ public com.google.protobuf.ByteString getRowRestrictionBytes() { } public static final int ARROW_SERIALIZATION_OPTIONS_FIELD_NUMBER = 3; - private com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - arrowSerializationOptions_; + private com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrowSerializationOptions_; /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the arrowSerializationOptions field is set. */ @java.lang.Override @@ -1182,46 +1026,30 @@ public boolean hasArrowSerializationOptions() { return arrowSerializationOptions_ != null; } /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The arrowSerializationOptions. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - getArrowSerializationOptions() { - return arrowSerializationOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() - : arrowSerializationOptions_; + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getArrowSerializationOptions() { + return arrowSerializationOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() : arrowSerializationOptions_; } /** - * - * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder - getArrowSerializationOptionsOrBuilder() { - return arrowSerializationOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() - : arrowSerializationOptions_; + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder() { + return arrowSerializationOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() : arrowSerializationOptions_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1233,7 +1061,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < selectedFields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectedFields_.getRaw(i)); } @@ -1264,9 +1093,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rowRestriction_); } if (arrowSerializationOptions_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getArrowSerializationOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getArrowSerializationOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1276,21 +1104,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions)) { + if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions other = - (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions other = (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) obj; - if (!getSelectedFieldsList().equals(other.getSelectedFieldsList())) return false; - if (!getRowRestriction().equals(other.getRowRestriction())) return false; + if (!getSelectedFieldsList() + .equals(other.getSelectedFieldsList())) return false; + if (!getRowRestriction() + .equals(other.getRowRestriction())) return false; if (hasArrowSerializationOptions() != other.hasArrowSerializationOptions()) return false; if (hasArrowSerializationOptions()) { - if (!getArrowSerializationOptions().equals(other.getArrowSerializationOptions())) - return false; + if (!getArrowSerializationOptions() + .equals(other.getArrowSerializationOptions())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1319,95 +1147,87 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1417,43 +1237,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Options dictating how we read a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.class, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder - .class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder.class); } - // Construct using - // com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.newBuilder() - private Builder() {} + // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1470,22 +1286,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - .getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions build() { - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result = - buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1494,18 +1307,14 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions bu @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result = - new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions(this); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result = new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result) { if (((bitField0_ & 0x00000001) != 0)) { selectedFields_ = selectedFields_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -1513,17 +1322,15 @@ private void buildPartialRepeatedFields( result.selectedFields_ = selectedFields_; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.rowRestriction_ = rowRestriction_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.arrowSerializationOptions_ = - arrowSerializationOptionsBuilder_ == null - ? arrowSerializationOptions_ - : arrowSerializationOptionsBuilder_.build(); + result.arrowSerializationOptions_ = arrowSerializationOptionsBuilder_ == null + ? arrowSerializationOptions_ + : arrowSerializationOptionsBuilder_.build(); } } @@ -1531,54 +1338,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) { - return mergeFrom( - (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) other); + if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) { + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance()) return this; if (!other.selectedFields_.isEmpty()) { if (selectedFields_.isEmpty()) { selectedFields_ = other.selectedFields_; @@ -1623,33 +1422,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSelectedFieldsIsMutable(); - selectedFields_.add(s); - break; - } // case 10 - case 18: - { - rowRestriction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getArrowSerializationOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSelectedFieldsIsMutable(); + selectedFields_.add(s); + break; + } // case 10 + case 18: { + rowRestriction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getArrowSerializationOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1659,21 +1455,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList selectedFields_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSelectedFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { selectedFields_ = new com.google.protobuf.LazyStringArrayList(selectedFields_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1682,15 +1473,13 @@ private void ensureSelectedFieldsIsMutable() {
        * 
* * repeated string selected_fields = 1; - * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList + getSelectedFieldsList() { return selectedFields_.getUnmodifiableView(); } /** - * - * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1699,15 +1488,12 @@ public com.google.protobuf.ProtocolStringList getSelectedFieldsList() {
        * 
* * repeated string selected_fields = 1; - * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** - * - * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1716,7 +1502,6 @@ public int getSelectedFieldsCount() {
        * 
* * repeated string selected_fields = 1; - * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -1724,8 +1509,6 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** - * - * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1734,16 +1517,14 @@ public java.lang.String getSelectedFields(int index) {
        * 
* * repeated string selected_fields = 1; - * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString + getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } /** - * - * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1752,23 +1533,19 @@ public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) {
        * 
* * repeated string selected_fields = 1; - * * @param index The index to set the value at. * @param value The selectedFields to set. * @return This builder for chaining. */ - public Builder setSelectedFields(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSelectedFields( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSelectedFieldsIsMutable(); selectedFields_.set(index, value); onChanged(); return this; } /** - * - * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1777,22 +1554,18 @@ public Builder setSelectedFields(int index, java.lang.String value) {
        * 
* * repeated string selected_fields = 1; - * * @param value The selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFields(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSelectedFields( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureSelectedFieldsIsMutable(); selectedFields_.add(value); onChanged(); return this; } /** - * - * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1801,19 +1574,18 @@ public Builder addSelectedFields(java.lang.String value) {
        * 
* * repeated string selected_fields = 1; - * * @param values The selectedFields to add. * @return This builder for chaining. */ - public Builder addAllSelectedFields(java.lang.Iterable values) { + public Builder addAllSelectedFields( + java.lang.Iterable values) { ensureSelectedFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectedFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, selectedFields_); onChanged(); return this; } /** - * - * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1822,7 +1594,6 @@ public Builder addAllSelectedFields(java.lang.Iterable values)
        * 
* * repeated string selected_fields = 1; - * * @return This builder for chaining. */ public Builder clearSelectedFields() { @@ -1832,8 +1603,6 @@ public Builder clearSelectedFields() { return this; } /** - * - * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1842,14 +1611,12 @@ public Builder clearSelectedFields() {
        * 
* * repeated string selected_fields = 1; - * * @param value The bytes of the selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addSelectedFieldsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSelectedFieldsIsMutable(); selectedFields_.add(value); @@ -1859,8 +1626,6 @@ public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) { private java.lang.Object rowRestriction_ = ""; /** - * - * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -1873,13 +1638,13 @@ public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) {
        * 
* * string row_restriction = 2; - * * @return The rowRestriction. */ public java.lang.String getRowRestriction() { java.lang.Object ref = rowRestriction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; @@ -1888,8 +1653,6 @@ public java.lang.String getRowRestriction() { } } /** - * - * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -1902,14 +1665,15 @@ public java.lang.String getRowRestriction() {
        * 
* * string row_restriction = 2; - * * @return The bytes for rowRestriction. */ - public com.google.protobuf.ByteString getRowRestrictionBytes() { + public com.google.protobuf.ByteString + getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -1917,8 +1681,6 @@ public com.google.protobuf.ByteString getRowRestrictionBytes() { } } /** - * - * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -1931,22 +1693,18 @@ public com.google.protobuf.ByteString getRowRestrictionBytes() {
        * 
* * string row_restriction = 2; - * * @param value The rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestriction(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRowRestriction( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rowRestriction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -1959,7 +1717,6 @@ public Builder setRowRestriction(java.lang.String value) {
        * 
* * string row_restriction = 2; - * * @return This builder for chaining. */ public Builder clearRowRestriction() { @@ -1969,8 +1726,6 @@ public Builder clearRowRestriction() { return this; } /** - * - * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -1983,14 +1738,12 @@ public Builder clearRowRestriction() {
        * 
* * string row_restriction = 2; - * * @param value The bytes for rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestrictionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRowRestrictionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rowRestriction_ = value; bitField0_ |= 0x00000002; @@ -1998,66 +1751,43 @@ public Builder setRowRestrictionBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - arrowSerializationOptions_; + private com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrowSerializationOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder> - arrowSerializationOptionsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder> arrowSerializationOptionsBuilder_; /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the arrowSerializationOptions field is set. */ public boolean hasArrowSerializationOptions() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The arrowSerializationOptions. */ - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - getArrowSerializationOptions() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getArrowSerializationOptions() { if (arrowSerializationOptionsBuilder_ == null) { - return arrowSerializationOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - .getDefaultInstance() - : arrowSerializationOptions_; + return arrowSerializationOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() : arrowSerializationOptions_; } else { return arrowSerializationOptionsBuilder_.getMessage(); } } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setArrowSerializationOptions( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions value) { + public Builder setArrowSerializationOptions(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions value) { if (arrowSerializationOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2071,19 +1801,14 @@ public Builder setArrowSerializationOptions( return this; } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setArrowSerializationOptions( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder builderForValue) { if (arrowSerializationOptionsBuilder_ == null) { arrowSerializationOptions_ = builderForValue.build(); } else { @@ -2094,24 +1819,17 @@ public Builder setArrowSerializationOptions( return this; } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeArrowSerializationOptions( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions value) { + public Builder mergeArrowSerializationOptions(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions value) { if (arrowSerializationOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && arrowSerializationOptions_ != null - && arrowSerializationOptions_ - != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - .getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + arrowSerializationOptions_ != null && + arrowSerializationOptions_ != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance()) { getArrowSerializationOptionsBuilder().mergeFrom(value); } else { arrowSerializationOptions_ = value; @@ -2124,15 +1842,11 @@ public Builder mergeArrowSerializationOptions( return this; } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearArrowSerializationOptions() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2145,72 +1859,52 @@ public Builder clearArrowSerializationOptions() { return this; } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder - getArrowSerializationOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder getArrowSerializationOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getArrowSerializationOptionsFieldBuilder().getBuilder(); } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder - getArrowSerializationOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder() { if (arrowSerializationOptionsBuilder_ != null) { return arrowSerializationOptionsBuilder_.getMessageOrBuilder(); } else { - return arrowSerializationOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions - .getDefaultInstance() - : arrowSerializationOptions_; + return arrowSerializationOptions_ == null ? + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() : arrowSerializationOptions_; } } /** - * - * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder> getArrowSerializationOptionsFieldBuilder() { if (arrowSerializationOptionsBuilder_ == null) { - arrowSerializationOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder>( - getArrowSerializationOptions(), getParentForChildren(), isClean()); + arrowSerializationOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder>( + getArrowSerializationOptions(), + getParentForChildren(), + isClean()); arrowSerializationOptions_ = null; } return arrowSerializationOptionsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2223,45 +1917,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) - private static final com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions(); + DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions(); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableReadOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableReadOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2273,24 +1963,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int schemaCase_ = 0; private java.lang.Object schema_; - public enum SchemaCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AVRO_SCHEMA(4), ARROW_SCHEMA(5), SCHEMA_NOT_SET(0); private final int value; - private SchemaCase(int value) { this.value = value; } @@ -2306,40 +1993,33 @@ public static SchemaCase valueOf(int value) { public static SchemaCase forNumber(int value) { switch (value) { - case 4: - return AVRO_SCHEMA; - case 5: - return ARROW_SCHEMA; - case 0: - return SCHEMA_NOT_SET; - default: - return null; + case 4: return AVRO_SCHEMA; + case 5: return ARROW_SCHEMA; + case 0: return SCHEMA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -2348,30 +2028,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2382,17 +2062,13 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ @java.lang.Override @@ -2400,17 +2076,13 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ @java.lang.Override @@ -2418,16 +2090,13 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -2437,56 +2106,36 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int DATA_FORMAT_FIELD_NUMBER = 3; private int dataFormat_ = 0; /** - * - * *
    * Immutable. Data format of the output data.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override - public int getDataFormatValue() { + @java.lang.Override public int getDataFormatValue() { return dataFormat_; } /** - * - * *
    * Immutable. Data format of the output data.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The dataFormat. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.DataFormat getDataFormat() { - com.google.cloud.bigquery.storage.v1beta2.DataFormat result = - com.google.cloud.bigquery.storage.v1beta2.DataFormat.forNumber(dataFormat_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.DataFormat.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.DataFormat getDataFormat() { + com.google.cloud.bigquery.storage.v1beta2.DataFormat result = com.google.cloud.bigquery.storage.v1beta2.DataFormat.forNumber(dataFormat_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.DataFormat.UNRECOGNIZED : result; } public static final int AVRO_SCHEMA_FIELD_NUMBER = 4; /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -2494,56 +2143,42 @@ public boolean hasAvroSchema() { return schemaCase_ == 4; } /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema() { if (schemaCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { if (schemaCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } public static final int ARROW_SCHEMA_FIELD_NUMBER = 5; /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -2551,60 +2186,45 @@ public boolean hasArrowSchema() { return schemaCase_ == 5; } /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } public static final int TABLE_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
    * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The table. */ @java.lang.Override @@ -2613,32 +2233,30 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
    * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -2649,16 +2267,11 @@ public com.google.protobuf.ByteString getTableBytes() { public static final int TABLE_MODIFIERS_FIELD_NUMBER = 7; private com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers tableModifiers_; /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the tableModifiers field is set. */ @java.lang.Override @@ -2666,56 +2279,37 @@ public boolean hasTableModifiers() { return tableModifiers_ != null; } /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The tableModifiers. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getTableModifiers() { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() - : tableModifiers_; + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; } /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder - getTableModifiersOrBuilder() { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() - : tableModifiers_; + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder() { + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; } public static final int READ_OPTIONS_FIELD_NUMBER = 8; private com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions readOptions_; /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readOptions field is set. */ @java.lang.Override @@ -2723,52 +2317,33 @@ public boolean hasReadOptions() { return readOptions_ != null; } /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readOptions. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getReadOptions() { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - .getDefaultInstance() - : readOptions_; + return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; } /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder - getReadOptionsOrBuilder() { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - .getDefaultInstance() - : readOptions_; + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { + return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; } public static final int STREAMS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private java.util.List streams_; /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -2777,17 +2352,13 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions ge
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getStreamsList() { return streams_; } /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -2796,18 +2367,14 @@ public java.util.List getS
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getStreamsOrBuilderList() { return streams_; } /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -2816,17 +2383,13 @@ public java.util.List getS
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getStreamsCount() { return streams_.size(); } /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -2835,17 +2398,13 @@ public int getStreamsCount() {
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index) { return streams_.get(index); } /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -2854,9 +2413,7 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsOrBuilder( @@ -2865,7 +2422,6 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsO } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2877,16 +2433,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (expireTime_ != null) { output.writeMessage(2, getExpireTime()); } - if (dataFormat_ - != com.google.cloud.bigquery.storage.v1beta2.DataFormat.DATA_FORMAT_UNSPECIFIED - .getNumber()) { + if (dataFormat_ != com.google.cloud.bigquery.storage.v1beta2.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(3, dataFormat_); } if (schemaCase_ == 4) { @@ -2920,34 +2475,35 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExpireTime()); } - if (dataFormat_ - != com.google.cloud.bigquery.storage.v1beta2.DataFormat.DATA_FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, dataFormat_); + if (dataFormat_ != com.google.cloud.bigquery.storage.v1beta2.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, dataFormat_); } if (schemaCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_); } if (schemaCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, table_); } if (tableModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTableModifiers()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getTableModifiers()); } if (readOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReadOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getReadOptions()); } for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, streams_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2957,37 +2513,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadSession other = - (com.google.cloud.bigquery.storage.v1beta2.ReadSession) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadSession other = (com.google.cloud.bigquery.storage.v1beta2.ReadSession) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; + if (!getExpireTime() + .equals(other.getExpireTime())) return false; } if (dataFormat_ != other.dataFormat_) return false; - if (!getTable().equals(other.getTable())) return false; + if (!getTable() + .equals(other.getTable())) return false; if (hasTableModifiers() != other.hasTableModifiers()) return false; if (hasTableModifiers()) { - if (!getTableModifiers().equals(other.getTableModifiers())) return false; + if (!getTableModifiers() + .equals(other.getTableModifiers())) return false; } if (hasReadOptions() != other.hasReadOptions()) return false; if (hasReadOptions()) { - if (!getReadOptions().equals(other.getReadOptions())) return false; + if (!getReadOptions() + .equals(other.getReadOptions())) return false; } - if (!getStreamsList().equals(other.getStreamsList())) return false; + if (!getStreamsList() + .equals(other.getStreamsList())) return false; if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 4: - if (!getAvroSchema().equals(other.getAvroSchema())) return false; + if (!getAvroSchema() + .equals(other.getAvroSchema())) return false; break; case 5: - if (!getArrowSchema().equals(other.getArrowSchema())) return false; + if (!getArrowSchema() + .equals(other.getArrowSchema())) return false; break; case 0: default: @@ -3043,136 +2606,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.ReadSession prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadSession prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about the ReadSession.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadSession) com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.class, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadSession.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3214,9 +2770,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; } @java.lang.Override @@ -3235,19 +2791,15 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ReadSession result = - new com.google.cloud.bigquery.storage.v1beta2.ReadSession(this); + com.google.cloud.bigquery.storage.v1beta2.ReadSession result = new com.google.cloud.bigquery.storage.v1beta2.ReadSession(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1beta2.ReadSession result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.ReadSession result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -3265,7 +2817,9 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadSession result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null + ? expireTime_ + : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.dataFormat_ = dataFormat_; @@ -3274,22 +2828,26 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadSession result.table_ = table_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.tableModifiers_ = - tableModifiersBuilder_ == null ? tableModifiers_ : tableModifiersBuilder_.build(); + result.tableModifiers_ = tableModifiersBuilder_ == null + ? tableModifiers_ + : tableModifiersBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.readOptions_ = - readOptionsBuilder_ == null ? readOptions_ : readOptionsBuilder_.build(); + result.readOptions_ = readOptionsBuilder_ == null + ? readOptions_ + : readOptionsBuilder_.build(); } } private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.ReadSession result) { result.schemaCase_ = schemaCase_; result.schema_ = this.schema_; - if (schemaCase_ == 4 && avroSchemaBuilder_ != null) { + if (schemaCase_ == 4 && + avroSchemaBuilder_ != null) { result.schema_ = avroSchemaBuilder_.build(); } - if (schemaCase_ == 5 && arrowSchemaBuilder_ != null) { + if (schemaCase_ == 5 && + arrowSchemaBuilder_ != null) { result.schema_ = arrowSchemaBuilder_.build(); } } @@ -3298,39 +2856,38 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.ReadSe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadSession) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadSession)other); } else { super.mergeFrom(other); return this; @@ -3338,8 +2895,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadSession other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -3380,30 +2936,26 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadSession o streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000100); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStreamsFieldBuilder() - : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamsFieldBuilder() : null; } else { streamsBuilder_.addAllMessages(other.streams_); } } } switch (other.getSchemaCase()) { - case AVRO_SCHEMA: - { - mergeAvroSchema(other.getAvroSchema()); - break; - } - case ARROW_SCHEMA: - { - mergeArrowSchema(other.getArrowSchema()); - break; - } - case SCHEMA_NOT_SET: - { - break; - } + case AVRO_SCHEMA: { + mergeAvroSchema(other.getAvroSchema()); + break; + } + case ARROW_SCHEMA: { + mergeArrowSchema(other.getArrowSchema()); + break; + } + case SCHEMA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3431,75 +2983,75 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - dataFormat_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(getAvroSchemaFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getArrowSchemaFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 5; - break; - } // case 42 - case 50: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage(getTableModifiersFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage(getReadOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: - { - com.google.cloud.bigquery.storage.v1beta2.ReadStream m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta2.ReadStream.parser(), - extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExpireTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + dataFormat_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getAvroSchemaFieldBuilder().getBuilder(), + extensionRegistry); + schemaCase_ = 4; + break; + } // case 34 + case 42: { + input.readMessage( + getArrowSchemaFieldBuilder().getBuilder(), + extensionRegistry); + schemaCase_ = 5; + break; + } // case 42 + case 50: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getTableModifiersFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getReadOptionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: { + com.google.cloud.bigquery.storage.v1beta2.ReadStream m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta2.ReadStream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 82 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3509,12 +3061,12 @@ public Builder mergeFrom( } // finally return this; } - private int schemaCase_ = 0; private java.lang.Object schema_; - - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); + public SchemaCase + getSchemaCase() { + return SchemaCase.forNumber( + schemaCase_); } public Builder clearSchema() { @@ -3528,21 +3080,19 @@ public Builder clearSchema() { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3551,22 +3101,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3574,37 +3123,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -3614,22 +3156,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3639,64 +3177,45 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3712,19 +3231,16 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3735,23 +3251,19 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + expireTime_ != null && + expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3764,17 +3276,13 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3787,17 +3295,13 @@ public Builder clearExpireTime() { return this; } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000002; @@ -3805,52 +3309,40 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; + return expireTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } } /** - * - * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); + expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), + getParentForChildren(), + isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -3858,33 +3350,22 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private int dataFormat_ = 0; /** - * - * *
      * Immutable. Data format of the output data.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override - public int getDataFormatValue() { + @java.lang.Override public int getDataFormatValue() { return dataFormat_; } /** - * - * *
      * Immutable. Data format of the output data.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for dataFormat to set. * @return This builder for chaining. */ @@ -3895,37 +3376,24 @@ public Builder setDataFormatValue(int value) { return this; } /** - * - * *
      * Immutable. Data format of the output data.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The dataFormat. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.DataFormat getDataFormat() { - com.google.cloud.bigquery.storage.v1beta2.DataFormat result = - com.google.cloud.bigquery.storage.v1beta2.DataFormat.forNumber(dataFormat_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.DataFormat.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1beta2.DataFormat result = com.google.cloud.bigquery.storage.v1beta2.DataFormat.forNumber(dataFormat_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.DataFormat.UNRECOGNIZED : result; } /** - * - * *
      * Immutable. Data format of the output data.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The dataFormat to set. * @return This builder for chaining. */ @@ -3939,16 +3407,11 @@ public Builder setDataFormat(com.google.cloud.bigquery.storage.v1beta2.DataForma return this; } /** - * - * *
      * Immutable. Data format of the output data.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearDataFormat() { @@ -3959,21 +3422,13 @@ public Builder clearDataFormat() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroSchema, - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> - avroSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> avroSchemaBuilder_; /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -3981,16 +3436,11 @@ public boolean hasAvroSchema() { return schemaCase_ == 4; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ @java.lang.Override @@ -4008,15 +3458,11 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema() { } } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchema value) { if (avroSchemaBuilder_ == null) { @@ -4032,15 +3478,11 @@ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchem return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAvroSchema( com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder builderForValue) { @@ -4054,26 +3496,18 @@ public Builder setAvroSchema( return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchema value) { if (avroSchemaBuilder_ == null) { - if (schemaCase_ == 4 - && schema_ - != com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.newBuilder( - (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 4 && + schema_ != com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) { + schema_ = com.google.cloud.bigquery.storage.v1beta2.AvroSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -4089,15 +3523,11 @@ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSch return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAvroSchema() { if (avroSchemaBuilder_ == null) { @@ -4116,29 +3546,21 @@ public Builder clearAvroSchema() { return this; } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder getAvroSchemaBuilder() { return getAvroSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { @@ -4152,30 +3574,21 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSche } } /** - * - * *
      * Output only. Avro schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroSchema, - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> getAvroSchemaFieldBuilder() { if (avroSchemaBuilder_ == null) { if (!(schemaCase_ == 4)) { schema_ = com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } - avroSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroSchema, - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder>( + avroSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_, getParentForChildren(), isClean()); @@ -4187,21 +3600,13 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSche } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> - arrowSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> arrowSchemaBuilder_; /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -4209,16 +3614,11 @@ public boolean hasArrowSchema() { return schemaCase_ == 5; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ @java.lang.Override @@ -4236,15 +3636,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema() { } } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { @@ -4260,15 +3656,11 @@ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSch return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setArrowSchema( com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder builderForValue) { @@ -4282,26 +3674,18 @@ public Builder setArrowSchema( return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { - if (schemaCase_ == 5 - && schema_ - != com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.newBuilder( - (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_) - .mergeFrom(value) - .buildPartial(); + if (schemaCase_ == 5 && + schema_ != com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance()) { + schema_ = com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_) + .mergeFrom(value).buildPartial(); } else { schema_ = value; } @@ -4317,15 +3701,11 @@ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowS return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearArrowSchema() { if (arrowSchemaBuilder_ == null) { @@ -4344,33 +3724,24 @@ public Builder clearArrowSchema() { return this; } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder getArrowSchemaBuilder() { return getArrowSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder - getArrowSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if ((schemaCase_ == 5) && (arrowSchemaBuilder_ != null)) { return arrowSchemaBuilder_.getMessageOrBuilder(); } else { @@ -4381,30 +3752,21 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder getArrowSch } } /** - * - * *
      * Output only. Arrow schema.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> getArrowSchemaFieldBuilder() { if (arrowSchemaBuilder_ == null) { if (!(schemaCase_ == 5)) { schema_ = com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } - arrowSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder>( + arrowSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_, getParentForChildren(), isClean()); @@ -4417,23 +3779,19 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder getArrowSch private java.lang.Object table_ = ""; /** - * - * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
      * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -4442,24 +3800,21 @@ public java.lang.String getTable() { } } /** - * - * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
      * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -4467,41 +3822,30 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
      * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
      * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearTable() { @@ -4511,24 +3855,18 @@ public Builder clearTable() { return this; } /** - * - * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
      * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000020; @@ -4538,63 +3876,41 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { private com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers tableModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder> - tableModifiersBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder> tableModifiersBuilder_; /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the tableModifiers field is set. */ public boolean hasTableModifiers() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The tableModifiers. */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - getTableModifiers() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getTableModifiers() { if (tableModifiersBuilder_ == null) { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - .getDefaultInstance() - : tableModifiers_; + return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; } else { return tableModifiersBuilder_.getMessage(); } } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setTableModifiers( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers value) { + public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers value) { if (tableModifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4608,19 +3924,14 @@ public Builder setTableModifiers( return this; } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setTableModifiers( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder builderForValue) { if (tableModifiersBuilder_ == null) { tableModifiers_ = builderForValue.build(); } else { @@ -4631,24 +3942,17 @@ public Builder setTableModifiers( return this; } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeTableModifiers( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers value) { + public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers value) { if (tableModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && tableModifiers_ != null - && tableModifiers_ - != com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - .getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + tableModifiers_ != null && + tableModifiers_ != com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance()) { getTableModifiersBuilder().mergeFrom(value); } else { tableModifiers_ = value; @@ -4661,15 +3965,11 @@ public Builder mergeTableModifiers( return this; } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearTableModifiers() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4682,67 +3982,48 @@ public Builder clearTableModifiers() { return this; } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder - getTableModifiersBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder getTableModifiersBuilder() { bitField0_ |= 0x00000040; onChanged(); return getTableModifiersFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder - getTableModifiersOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder() { if (tableModifiersBuilder_ != null) { return tableModifiersBuilder_.getMessageOrBuilder(); } else { - return tableModifiers_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers - .getDefaultInstance() - : tableModifiers_; + return tableModifiers_ == null ? + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; } } /** - * - * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder> getTableModifiersFieldBuilder() { if (tableModifiersBuilder_ == null) { - tableModifiersBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder>( - getTableModifiers(), getParentForChildren(), isClean()); + tableModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder>( + getTableModifiers(), + getParentForChildren(), + isClean()); tableModifiers_ = null; } return tableModifiersBuilder_; @@ -4750,62 +4031,41 @@ public Builder clearTableModifiers() { private com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions readOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder> - readOptionsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder> readOptionsBuilder_; /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readOptions field is set. */ public boolean hasReadOptions() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readOptions. */ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getReadOptions() { if (readOptionsBuilder_ == null) { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - .getDefaultInstance() - : readOptions_; + return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; } else { return readOptionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setReadOptions( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions value) { + public Builder setReadOptions(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions value) { if (readOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4819,19 +4079,14 @@ public Builder setReadOptions( return this; } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setReadOptions( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder - builderForValue) { + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder builderForValue) { if (readOptionsBuilder_ == null) { readOptions_ = builderForValue.build(); } else { @@ -4842,24 +4097,17 @@ public Builder setReadOptions( return this; } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeReadOptions( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions value) { + public Builder mergeReadOptions(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions value) { if (readOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && readOptions_ != null - && readOptions_ - != com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - .getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + readOptions_ != null && + readOptions_ != com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance()) { getReadOptionsBuilder().mergeFrom(value); } else { readOptions_ = value; @@ -4872,15 +4120,11 @@ public Builder mergeReadOptions( return this; } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearReadOptions() { bitField0_ = (bitField0_ & ~0x00000080); @@ -4893,92 +4137,66 @@ public Builder clearReadOptions() { return this; } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder - getReadOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder getReadOptionsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getReadOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder - getReadOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { if (readOptionsBuilder_ != null) { return readOptionsBuilder_.getMessageOrBuilder(); } else { - return readOptions_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions - .getDefaultInstance() - : readOptions_; + return readOptions_ == null ? + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; } } /** - * - * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder> getReadOptionsFieldBuilder() { if (readOptionsBuilder_ == null) { - readOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder>( - getReadOptions(), getParentForChildren(), isClean()); + readOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder>( + getReadOptions(), + getParentForChildren(), + isClean()); readOptions_ = null; } return readOptionsBuilder_; } private java.util.List streams_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - streams_ = - new java.util.ArrayList(streams_); + streams_ = new java.util.ArrayList(streams_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadStream, - com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> - streamsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> streamsBuilder_; /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4987,9 +4205,7 @@ private void ensureStreamsIsMutable() {
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getStreamsList() { if (streamsBuilder_ == null) { @@ -4999,8 +4215,6 @@ public java.util.List getS } } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5009,9 +4223,7 @@ public java.util.List getS
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getStreamsCount() { if (streamsBuilder_ == null) { @@ -5021,8 +4233,6 @@ public int getStreamsCount() { } } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5031,9 +4241,7 @@ public int getStreamsCount() {
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index) { if (streamsBuilder_ == null) { @@ -5043,8 +4251,6 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index } } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5053,9 +4259,7 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStreams( int index, com.google.cloud.bigquery.storage.v1beta2.ReadStream value) { @@ -5072,8 +4276,6 @@ public Builder setStreams( return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5082,9 +4284,7 @@ public Builder setStreams(
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setStreams( int index, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder builderForValue) { @@ -5098,8 +4298,6 @@ public Builder setStreams( return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5108,9 +4306,7 @@ public Builder setStreams(
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStreams(com.google.cloud.bigquery.storage.v1beta2.ReadStream value) { if (streamsBuilder_ == null) { @@ -5126,8 +4322,6 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1beta2.ReadStream v return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5136,9 +4330,7 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1beta2.ReadStream v
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStreams( int index, com.google.cloud.bigquery.storage.v1beta2.ReadStream value) { @@ -5155,8 +4347,6 @@ public Builder addStreams( return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5165,9 +4355,7 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStreams( com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder builderForValue) { @@ -5181,8 +4369,6 @@ public Builder addStreams( return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5191,9 +4377,7 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addStreams( int index, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder builderForValue) { @@ -5207,8 +4391,6 @@ public Builder addStreams( return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5217,15 +4399,14 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllStreams( java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -5233,8 +4414,6 @@ public Builder addAllStreams( return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5243,9 +4422,7 @@ public Builder addAllStreams(
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearStreams() { if (streamsBuilder_ == null) { @@ -5258,8 +4435,6 @@ public Builder clearStreams() { return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5268,9 +4443,7 @@ public Builder clearStreams() {
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeStreams(int index) { if (streamsBuilder_ == null) { @@ -5283,8 +4456,6 @@ public Builder removeStreams(int index) { return this; } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5293,17 +4464,13 @@ public Builder removeStreams(int index) {
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getStreamsBuilder( int index) { return getStreamsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5312,21 +4479,16 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getStreamsBu
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsOrBuilder( int index) { if (streamsBuilder_ == null) { - return streams_.get(index); - } else { + return streams_.get(index); } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5335,12 +4497,10 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsO
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -5348,8 +4508,6 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsO } } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5358,17 +4516,13 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsO
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder() - .addBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()); + return getStreamsFieldBuilder().addBuilder( + com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()); } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5377,19 +4531,14 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder addStreamsBu
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder addStreamsBuilder( int index) { - return getStreamsFieldBuilder() - .addBuilder( - index, com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()); + return getStreamsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()); } /** - * - * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5398,34 +4547,29 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder addStreamsBu
      * instead, which is not yet available.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadStream, - com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadStream, - com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, - com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>( - streams_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>( + streams_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); streams_ = null; } return streamsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5435,12 +4579,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadSession) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadSession) private static final com.google.cloud.bigquery.storage.v1beta2.ReadSession DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadSession(); } @@ -5449,27 +4593,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ReadSession getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadSession parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5484,4 +4628,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ReadSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java similarity index 62% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java index 1fce122602..58ad2383b3 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java @@ -1,328 +1,217 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface ReadSessionOrBuilder - extends +public interface ReadSessionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadSession) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** - * - * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** - * - * *
    * Immutable. Data format of the output data.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for dataFormat. */ int getDataFormatValue(); /** - * - * *
    * Immutable. Data format of the output data.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; * @return The dataFormat. */ com.google.cloud.bigquery.storage.v1beta2.DataFormat getDataFormat(); /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the avroSchema field is set. */ boolean hasAvroSchema(); /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The avroSchema. */ com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema(); /** - * - * *
    * Output only. Avro schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the arrowSchema field is set. */ boolean hasArrowSchema(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The arrowSchema. */ com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema(); /** - * - * *
    * Output only. Arrow schema.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder(); /** - * - * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
    * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The table. */ java.lang.String getTable(); /** - * - * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
    * 
* - * - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * - * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the tableModifiers field is set. */ boolean hasTableModifiers(); /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The tableModifiers. */ com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getTableModifiers(); /** - * - * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder - getTableModifiersOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder(); /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the readOptions field is set. */ boolean hasReadOptions(); /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The readOptions. */ com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getReadOptions(); /** - * - * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder - getReadOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder(); /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -331,14 +220,11 @@ public interface ReadSessionOrBuilder
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getStreamsList(); + java.util.List + getStreamsList(); /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -347,14 +233,10 @@ public interface ReadSessionOrBuilder
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index); /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -363,14 +245,10 @@ public interface ReadSessionOrBuilder
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getStreamsCount(); /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -379,15 +257,11 @@ public interface ReadSessionOrBuilder
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** - * - * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -396,11 +270,10 @@ public interface ReadSessionOrBuilder
    * instead, which is not yet available.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsOrBuilder(int index); + com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsOrBuilder( + int index); public com.google.cloud.bigquery.storage.v1beta2.ReadSession.SchemaCase getSchemaCase(); } diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java similarity index 68% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java index 15356edcbf..12e348b32a 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Information about a single stream that gets data out of the storage system.
  * Most of the information about `ReadStream` instances is aggregated, making
@@ -29,60 +12,54 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadStream}
  */
-public final class ReadStream extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ReadStream extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadStream)
     ReadStreamOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ReadStream.newBuilder() to construct.
   private ReadStream(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ReadStream() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ReadStream();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1beta2.StreamProto
-        .internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1beta2.StreamProto
-        .internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream.class,
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder.class);
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream.class, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -91,30 +68,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +100,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +111,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +136,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadStream)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadStream other = - (com.google.cloud.bigquery.storage.v1beta2.ReadStream) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadStream other = (com.google.cloud.bigquery.storage.v1beta2.ReadStream) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,103 +164,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadStream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about a single stream that gets data out of the storage system.
    * Most of the information about `ReadStream` instances is aggregated, making
@@ -292,32 +262,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadStream}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadStream)
       com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta2.StreamProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta2.StreamProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta2.ReadStream.class,
-              com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta2.ReadStream.class, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadStream.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -327,9 +298,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1beta2.StreamProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
     }
 
     @java.lang.Override
@@ -348,11 +319,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1beta2.ReadStream buildPartial() {
-      com.google.cloud.bigquery.storage.v1beta2.ReadStream result =
-          new com.google.cloud.bigquery.storage.v1beta2.ReadStream(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.storage.v1beta2.ReadStream result = new com.google.cloud.bigquery.storage.v1beta2.ReadStream(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -368,39 +336,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadStream
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadStream) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadStream) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadStream)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -408,8 +375,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadStream other) {
-      if (other == com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -441,19 +407,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -463,26 +427,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,22 +452,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,37 +474,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -554,31 +507,27 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -588,12 +537,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadStream) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadStream) private static final com.google.cloud.bigquery.storage.v1beta2.ReadStream DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadStream(); } @@ -602,27 +551,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ReadStream getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ReadStream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java similarity index 56% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java index 0f2f0660af..042b73a755 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface ReadStreamOrBuilder - extends +public interface ReadStreamOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadStream) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java similarity index 64% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java index f342e844e4..e73a5cca02 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Request message for `SplitReadStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest} */ -public final class SplitReadStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SplitReadStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) SplitReadStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SplitReadStreamRequest.newBuilder() to construct. private SplitReadStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SplitReadStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SplitReadStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. Name of the stream to split.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. Name of the stream to split.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,8 +98,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FRACTION_FIELD_NUMBER = 2; private double fraction_ = 0D; /** - * - * *
    * A value in the range (0.0, 1.0) that specifies the fractional point at
    * which the original stream should be split. The actual split point is
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * double fraction = 2; - * * @return The fraction. */ @java.lang.Override @@ -147,7 +117,6 @@ public double getFraction() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,7 +128,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -179,7 +149,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (java.lang.Double.doubleToRawLongBits(fraction_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, fraction_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, fraction_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -189,17 +160,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest other = - (com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest other = (com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (java.lang.Double.doubleToLongBits(getFraction()) - != java.lang.Double.doubleToLongBits(other.getFraction())) return false; + != java.lang.Double.doubleToLongBits( + other.getFraction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,146 +186,137 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FRACTION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFraction())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFraction())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `SplitReadStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.class, - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -364,14 +327,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.getDefaultInstance(); } @@ -386,17 +348,13 @@ public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest build() @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest result = - new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest result = new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -410,50 +368,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,25 +442,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: - { - fraction_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: { + fraction_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -516,27 +467,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the stream to split.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -545,23 +491,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the stream to split.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -569,39 +512,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the stream to split.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Name of the stream to split.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -611,23 +543,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. Name of the stream to split.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -635,10 +561,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private double fraction_; + private double fraction_ ; /** - * - * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -650,7 +574,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * double fraction = 2; - * * @return The fraction. */ @java.lang.Override @@ -658,8 +581,6 @@ public double getFraction() { return fraction_; } /** - * - * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -671,20 +592,17 @@ public double getFraction() {
      * 
* * double fraction = 2; - * * @param value The fraction to set. * @return This builder for chaining. */ public Builder setFraction(double value) { - + fraction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -696,7 +614,6 @@ public Builder setFraction(double value) {
      * 
* * double fraction = 2; - * * @return This builder for chaining. */ public Builder clearFraction() { @@ -705,9 +622,9 @@ public Builder clearFraction() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -717,43 +634,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SplitReadStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SplitReadStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -765,8 +680,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java index 3a8f4fb7de..cac57d55d0 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface SplitReadStreamRequestOrBuilder - extends +public interface SplitReadStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the stream to split.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. Name of the stream to split.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A value in the range (0.0, 1.0) that specifies the fractional point at
    * which the original stream should be split. The actual split point is
@@ -66,7 +39,6 @@ public interface SplitReadStreamRequestOrBuilder
    * 
* * double fraction = 2; - * * @return The fraction. */ double getFraction(); diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java similarity index 67% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java index f87c67f295..530d46e5d7 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java @@ -1,67 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -/** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse} */ -public final class SplitReadStreamResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse} + */ +public final class SplitReadStreamResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse) SplitReadStreamResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SplitReadStreamResponse.newBuilder() to construct. private SplitReadStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SplitReadStreamResponse() {} + private SplitReadStreamResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SplitReadStreamResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.class, - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.Builder.class); } public static final int PRIMARY_STREAM_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta2.ReadStream primaryStream_; /** - * - * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -69,7 +53,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; - * * @return Whether the primaryStream field is set. */ @java.lang.Override @@ -77,8 +60,6 @@ public boolean hasPrimaryStream() { return primaryStream_ != null; } /** - * - * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -86,18 +67,13 @@ public boolean hasPrimaryStream() {
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; - * * @return The primaryStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadStream getPrimaryStream() { - return primaryStream_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() - : primaryStream_; + return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : primaryStream_; } /** - * - * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -108,23 +84,18 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getPrimaryStream() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getPrimaryStreamOrBuilder() {
-    return primaryStream_ == null
-        ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()
-        : primaryStream_;
+    return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : primaryStream_;
   }
 
   public static final int REMAINDER_STREAM_FIELD_NUMBER = 2;
   private com.google.cloud.bigquery.storage.v1beta2.ReadStream remainderStream_;
   /**
-   *
-   *
    * 
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; - * * @return Whether the remainderStream field is set. */ @java.lang.Override @@ -132,26 +103,19 @@ public boolean hasRemainderStream() { return remainderStream_ != null; } /** - * - * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; - * * @return The remainderStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadStream getRemainderStream() { - return remainderStream_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() - : remainderStream_; + return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : remainderStream_; } /** - * - * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
@@ -160,15 +124,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getRemainderStream()
    * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder
-      getRemainderStreamOrBuilder() {
-    return remainderStream_ == null
-        ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()
-        : remainderStream_;
+  public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getRemainderStreamOrBuilder() {
+    return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : remainderStream_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -180,7 +140,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (primaryStream_ != null) {
       output.writeMessage(1, getPrimaryStream());
     }
@@ -197,10 +158,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (primaryStream_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrimaryStream());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getPrimaryStream());
     }
     if (remainderStream_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRemainderStream());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getRemainderStream());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -210,21 +173,22 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse other =
-        (com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse) obj;
+    com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse other = (com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse) obj;
 
     if (hasPrimaryStream() != other.hasPrimaryStream()) return false;
     if (hasPrimaryStream()) {
-      if (!getPrimaryStream().equals(other.getPrimaryStream())) return false;
+      if (!getPrimaryStream()
+          .equals(other.getPrimaryStream())) return false;
     }
     if (hasRemainderStream() != other.hasRemainderStream()) return false;
     if (hasRemainderStream()) {
-      if (!getRemainderStream().equals(other.getRemainderStream())) return false;
+      if (!getRemainderStream()
+          .equals(other.getRemainderStream())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -251,130 +215,125 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
-      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
-  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
-      parseDelimitedFrom(
-          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse} */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  /**
+   * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)
       com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.class,
-              com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.newBuilder()
-    private Builder() {}
+    // Construct using com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.newBuilder()
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -393,14 +352,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse getDefaultInstanceForType() {
       return com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.getDefaultInstance();
     }
 
@@ -415,25 +373,23 @@ public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse build()
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse buildPartial() {
-      com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse result =
-          new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse result = new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(
-        com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse result) {
+    private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.primaryStream_ =
-            primaryStreamBuilder_ == null ? primaryStream_ : primaryStreamBuilder_.build();
+        result.primaryStream_ = primaryStreamBuilder_ == null
+            ? primaryStream_
+            : primaryStreamBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.remainderStream_ =
-            remainderStreamBuilder_ == null ? remainderStream_ : remainderStreamBuilder_.build();
+        result.remainderStream_ = remainderStreamBuilder_ == null
+            ? remainderStream_
+            : remainderStreamBuilder_.build();
       }
     }
 
@@ -441,50 +397,46 @@ private void buildPartial0(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse other) {
-      if (other
-          == com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse other) {
+      if (other == com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.getDefaultInstance()) return this;
       if (other.hasPrimaryStream()) {
         mergePrimaryStream(other.getPrimaryStream());
       }
@@ -517,25 +469,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                input.readMessage(getPrimaryStreamFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getRemainderStreamFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              input.readMessage(
+                  getPrimaryStreamFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getRemainderStreamFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -545,18 +498,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.bigquery.storage.v1beta2.ReadStream primaryStream_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream,
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>
-        primaryStreamBuilder_;
+        com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> primaryStreamBuilder_;
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -564,15 +511,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; - * * @return Whether the primaryStream field is set. */ public boolean hasPrimaryStream() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -580,21 +524,16 @@ public boolean hasPrimaryStream() {
      * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; - * * @return The primaryStream. */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getPrimaryStream() { if (primaryStreamBuilder_ == null) { - return primaryStream_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() - : primaryStream_; + return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : primaryStream_; } else { return primaryStreamBuilder_.getMessage(); } } /** - * - * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -617,8 +556,6 @@ public Builder setPrimaryStream(com.google.cloud.bigquery.storage.v1beta2.ReadSt
       return this;
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -639,8 +576,6 @@ public Builder setPrimaryStream(
       return this;
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -651,10 +586,9 @@ public Builder setPrimaryStream(
      */
     public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1beta2.ReadStream value) {
       if (primaryStreamBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)
-            && primaryStream_ != null
-            && primaryStream_
-                != com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0) &&
+          primaryStream_ != null &&
+          primaryStream_ != com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()) {
           getPrimaryStreamBuilder().mergeFrom(value);
         } else {
           primaryStream_ = value;
@@ -667,8 +601,6 @@ public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1beta2.Read
       return this;
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -688,8 +620,6 @@ public Builder clearPrimaryStream() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -704,8 +634,6 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getPrimarySt
       return getPrimaryStreamFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -714,19 +642,15 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getPrimarySt
      *
      * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder
-        getPrimaryStreamOrBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getPrimaryStreamOrBuilder() {
       if (primaryStreamBuilder_ != null) {
         return primaryStreamBuilder_.getMessageOrBuilder();
       } else {
-        return primaryStream_ == null
-            ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()
-            : primaryStream_;
+        return primaryStream_ == null ?
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : primaryStream_;
       }
     }
     /**
-     *
-     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -736,17 +660,14 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getPrimarySt
      * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream,
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>
+        com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> 
         getPrimaryStreamFieldBuilder() {
       if (primaryStreamBuilder_ == null) {
-        primaryStreamBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1beta2.ReadStream,
-                com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
-                com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>(
-                getPrimaryStream(), getParentForChildren(), isClean());
+        primaryStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>(
+                getPrimaryStream(),
+                getParentForChildren(),
+                isClean());
         primaryStream_ = null;
       }
       return primaryStreamBuilder_;
@@ -754,49 +675,36 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getPrimarySt
 
     private com.google.cloud.bigquery.storage.v1beta2.ReadStream remainderStream_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream,
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>
-        remainderStreamBuilder_;
+        com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> remainderStreamBuilder_;
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; - * * @return Whether the remainderStream field is set. */ public boolean hasRemainderStream() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; - * * @return The remainderStream. */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getRemainderStream() { if (remainderStreamBuilder_ == null) { - return remainderStream_ == null - ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() - : remainderStream_; + return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : remainderStream_; } else { return remainderStreamBuilder_.getMessage(); } } /** - * - * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -818,8 +726,6 @@ public Builder setRemainderStream(com.google.cloud.bigquery.storage.v1beta2.Read
       return this;
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -839,8 +745,6 @@ public Builder setRemainderStream(
       return this;
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -848,13 +752,11 @@ public Builder setRemainderStream(
      *
      * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2;
      */
-    public Builder mergeRemainderStream(
-        com.google.cloud.bigquery.storage.v1beta2.ReadStream value) {
+    public Builder mergeRemainderStream(com.google.cloud.bigquery.storage.v1beta2.ReadStream value) {
       if (remainderStreamBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)
-            && remainderStream_ != null
-            && remainderStream_
-                != com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0) &&
+          remainderStream_ != null &&
+          remainderStream_ != com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()) {
           getRemainderStreamBuilder().mergeFrom(value);
         } else {
           remainderStream_ = value;
@@ -867,8 +769,6 @@ public Builder mergeRemainderStream(
       return this;
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -887,8 +787,6 @@ public Builder clearRemainderStream() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -896,15 +794,12 @@ public Builder clearRemainderStream() {
      *
      * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder
-        getRemainderStreamBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getRemainderStreamBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRemainderStreamFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -912,19 +807,15 @@ public Builder clearRemainderStream() {
      *
      * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder
-        getRemainderStreamOrBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getRemainderStreamOrBuilder() {
       if (remainderStreamBuilder_ != null) {
         return remainderStreamBuilder_.getMessageOrBuilder();
       } else {
-        return remainderStream_ == null
-            ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()
-            : remainderStream_;
+        return remainderStream_ == null ?
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : remainderStream_;
       }
     }
     /**
-     *
-     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -933,24 +824,21 @@ public Builder clearRemainderStream() {
      * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream,
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
-            com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>
+        com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> 
         getRemainderStreamFieldBuilder() {
       if (remainderStreamBuilder_ == null) {
-        remainderStreamBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.bigquery.storage.v1beta2.ReadStream,
-                com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
-                com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>(
-                getRemainderStream(), getParentForChildren(), isClean());
+        remainderStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>(
+                getRemainderStream(),
+                getParentForChildren(),
+                isClean());
         remainderStream_ = null;
       }
       return remainderStreamBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -960,43 +848,41 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)
-  private static final com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse();
   }
 
-  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
-      getDefaultInstance() {
+  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SplitReadStreamResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SplitReadStreamResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1008,8 +894,9 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java
similarity index 78%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java
index adb37ece00..96a62e1daf 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
-public interface SplitReadStreamResponseOrBuilder
-    extends
+public interface SplitReadStreamResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -33,13 +15,10 @@ public interface SplitReadStreamResponseOrBuilder
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; - * * @return Whether the primaryStream field is set. */ boolean hasPrimaryStream(); /** - * - * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -47,13 +26,10 @@ public interface SplitReadStreamResponseOrBuilder
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; - * * @return The primaryStream. */ com.google.cloud.bigquery.storage.v1beta2.ReadStream getPrimaryStream(); /** - * - * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -65,34 +41,26 @@ public interface SplitReadStreamResponseOrBuilder
   com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getPrimaryStreamOrBuilder();
 
   /**
-   *
-   *
    * 
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; - * * @return Whether the remainderStream field is set. */ boolean hasRemainderStream(); /** - * - * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; - * * @return The remainderStream. */ com.google.cloud.bigquery.storage.v1beta2.ReadStream getRemainderStream(); /** - * - * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java
similarity index 69%
rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java
rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java
index b4160bc776..57e6448766 100644
--- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java
+++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
- *
- *
  * 
  * Structured custom BigQuery Storage error message. The error can be attached
  * as error details in the returned rpc Status. In particular, the use of error
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StorageError}
  */
-public final class StorageError extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StorageError extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.StorageError)
     StorageErrorOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StorageError.newBuilder() to construct.
   private StorageError(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StorageError() {
     code_ = 0;
     entity_ = "";
@@ -48,43 +30,39 @@ private StorageError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StorageError();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-        .internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-        .internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1beta2.StorageError.class,
-            com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder.class);
+            com.google.cloud.bigquery.storage.v1beta2.StorageError.class, com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Error code for `StorageError`.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode} */ - public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageErrorCode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default error.
      * 
@@ -93,8 +71,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ STORAGE_ERROR_CODE_UNSPECIFIED(0), /** - * - * *
      * Table is not found in the system.
      * 
@@ -103,8 +79,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ TABLE_NOT_FOUND(1), /** - * - * *
      * Stream is already committed.
      * 
@@ -113,8 +87,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ STREAM_ALREADY_COMMITTED(2), /** - * - * *
      * Stream is not found.
      * 
@@ -123,8 +95,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ STREAM_NOT_FOUND(3), /** - * - * *
      * Invalid Stream type.
      * For example, you try to commit a stream that is not pending.
@@ -134,8 +104,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum
      */
     INVALID_STREAM_TYPE(4),
     /**
-     *
-     *
      * 
      * Invalid Stream state.
      * For example, you try to commit a stream that is not finalized or is
@@ -146,8 +114,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum
      */
     INVALID_STREAM_STATE(5),
     /**
-     *
-     *
      * 
      * Stream is finalized.
      * 
@@ -159,8 +125,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Default error.
      * 
@@ -169,8 +133,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int STORAGE_ERROR_CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Table is not found in the system.
      * 
@@ -179,8 +141,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int TABLE_NOT_FOUND_VALUE = 1; /** - * - * *
      * Stream is already committed.
      * 
@@ -189,8 +149,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int STREAM_ALREADY_COMMITTED_VALUE = 2; /** - * - * *
      * Stream is not found.
      * 
@@ -199,8 +157,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int STREAM_NOT_FOUND_VALUE = 3; /** - * - * *
      * Invalid Stream type.
      * For example, you try to commit a stream that is not pending.
@@ -210,8 +166,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int INVALID_STREAM_TYPE_VALUE = 4;
     /**
-     *
-     *
      * 
      * Invalid Stream state.
      * For example, you try to commit a stream that is not finalized or is
@@ -222,8 +176,6 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum
      */
     public static final int INVALID_STREAM_STATE_VALUE = 5;
     /**
-     *
-     *
      * 
      * Stream is finalized.
      * 
@@ -232,6 +184,7 @@ public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum */ public static final int STREAM_FINALIZED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -256,53 +209,44 @@ public static StorageErrorCode valueOf(int value) { */ public static StorageErrorCode forNumber(int value) { switch (value) { - case 0: - return STORAGE_ERROR_CODE_UNSPECIFIED; - case 1: - return TABLE_NOT_FOUND; - case 2: - return STREAM_ALREADY_COMMITTED; - case 3: - return STREAM_NOT_FOUND; - case 4: - return INVALID_STREAM_TYPE; - case 5: - return INVALID_STREAM_STATE; - case 6: - return STREAM_FINALIZED; - default: - return null; + case 0: return STORAGE_ERROR_CODE_UNSPECIFIED; + case 1: return TABLE_NOT_FOUND; + case 2: return STREAM_ALREADY_COMMITTED; + case 3: return STREAM_NOT_FOUND; + case 4: return INVALID_STREAM_TYPE; + case 5: return INVALID_STREAM_STATE; + case 6: return STREAM_FINALIZED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageErrorCode findValueByNumber(int number) { - return StorageErrorCode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + StorageErrorCode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageErrorCode findValueByNumber(int number) { + return StorageErrorCode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageError.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageError.getDescriptor().getEnumTypes().get(0); } private static final StorageErrorCode[] VALUES = values(); @@ -310,7 +254,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static StorageErrorCode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -330,53 +275,38 @@ private StorageErrorCode(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_ = 0; /** - * - * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode getCode() { - com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode result = - com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.forNumber(code_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode getCode() { + com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode result = com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.forNumber(code_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.UNRECOGNIZED : result; } public static final int ENTITY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** - * - * *
    * Name of the failed entity.
    * 
* * string entity = 2; - * * @return The entity. */ @java.lang.Override @@ -385,29 +315,29 @@ public java.lang.String getEntity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; } } /** - * - * *
    * Name of the failed entity.
    * 
* * string entity = 2; - * * @return The bytes for entity. */ @java.lang.Override - public com.google.protobuf.ByteString getEntityBytes() { + public com.google.protobuf.ByteString + getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entity_ = b; return b; } else { @@ -416,18 +346,14 @@ public com.google.protobuf.ByteString getEntityBytes() { } public static final int ERROR_MESSAGE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** - * - * *
    * Message that describes the error.
    * 
* * string error_message = 3; - * * @return The errorMessage. */ @java.lang.Override @@ -436,29 +362,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * Message that describes the error.
    * 
* * string error_message = 3; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -467,7 +393,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -479,11 +404,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode - .STORAGE_ERROR_CODE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.STORAGE_ERROR_CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { @@ -501,11 +424,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode - .STORAGE_ERROR_CODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.STORAGE_ERROR_CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entity_); @@ -521,17 +442,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.StorageError)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.StorageError other = - (com.google.cloud.bigquery.storage.v1beta2.StorageError) obj; + com.google.cloud.bigquery.storage.v1beta2.StorageError other = (com.google.cloud.bigquery.storage.v1beta2.StorageError) obj; if (code_ != other.code_) return false; - if (!getEntity().equals(other.getEntity())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getEntity() + .equals(other.getEntity())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -555,104 +477,96 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.StorageError prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.StorageError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Structured custom BigQuery Storage error message. The error can be attached
    * as error details in the returned rpc Status. In particular, the use of error
@@ -662,32 +576,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StorageError}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.StorageError)
       com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta2.StorageError.class,
-              com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta2.StorageError.class, com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1beta2.StorageError.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -699,9 +614,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
-          .internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
     }
 
     @java.lang.Override
@@ -720,11 +635,8 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1beta2.StorageError buildPartial() {
-      com.google.cloud.bigquery.storage.v1beta2.StorageError result =
-          new com.google.cloud.bigquery.storage.v1beta2.StorageError(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.bigquery.storage.v1beta2.StorageError result = new com.google.cloud.bigquery.storage.v1beta2.StorageError(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -746,39 +658,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.StorageErro
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1beta2.StorageError) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StorageError) other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StorageError)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -786,8 +697,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.StorageError other) {
-      if (other == com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance()) return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -827,31 +737,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8:
-              {
-                code_ = input.readEnum();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 8
-            case 18:
-              {
-                entity_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                errorMessage_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 8: {
+              code_ = input.readEnum();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 8
+            case 18: {
+              entity_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              errorMessage_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -861,34 +767,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -899,38 +797,28 @@ public Builder setCodeValue(int value) { return this; } /** - * - * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode getCode() { - com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode result = - com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.forNumber(code_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode result = com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.forNumber(code_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.UNRECOGNIZED : result; } /** - * - * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode value) { + public Builder setCode(com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode value) { if (value == null) { throw new NullPointerException(); } @@ -940,14 +828,11 @@ public Builder setCode( return this; } /** - * - * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -959,20 +844,18 @@ public Builder clearCode() { private java.lang.Object entity_ = ""; /** - * - * *
      * Name of the failed entity.
      * 
* * string entity = 2; - * * @return The entity. */ public java.lang.String getEntity() { java.lang.Object ref = entity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; @@ -981,21 +864,20 @@ public java.lang.String getEntity() { } } /** - * - * *
      * Name of the failed entity.
      * 
* * string entity = 2; - * * @return The bytes for entity. */ - public com.google.protobuf.ByteString getEntityBytes() { + public com.google.protobuf.ByteString + getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); entity_ = b; return b; } else { @@ -1003,35 +885,28 @@ public com.google.protobuf.ByteString getEntityBytes() { } } /** - * - * *
      * Name of the failed entity.
      * 
* * string entity = 2; - * * @param value The entity to set. * @return This builder for chaining. */ - public Builder setEntity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntity( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } entity_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Name of the failed entity.
      * 
* * string entity = 2; - * * @return This builder for chaining. */ public Builder clearEntity() { @@ -1041,21 +916,17 @@ public Builder clearEntity() { return this; } /** - * - * *
      * Name of the failed entity.
      * 
* * string entity = 2; - * * @param value The bytes for entity to set. * @return This builder for chaining. */ - public Builder setEntityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); entity_ = value; bitField0_ |= 0x00000002; @@ -1065,20 +936,18 @@ public Builder setEntityBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * Message that describes the error.
      * 
* * string error_message = 3; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -1087,21 +956,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * Message that describes the error.
      * 
* * string error_message = 3; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -1109,35 +977,28 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * Message that describes the error.
      * 
* * string error_message = 3; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } errorMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Message that describes the error.
      * 
* * string error_message = 3; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -1147,30 +1008,26 @@ public Builder clearErrorMessage() { return this; } /** - * - * *
      * Message that describes the error.
      * 
* * string error_message = 3; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1180,12 +1037,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.StorageError) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.StorageError) private static final com.google.cloud.bigquery.storage.v1beta2.StorageError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.StorageError(); } @@ -1194,27 +1051,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.StorageError getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1229,4 +1086,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.StorageError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java similarity index 64% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java index 24f7a8eb5e..5ff3305f7f 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java @@ -1,100 +1,68 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface StorageErrorOrBuilder - extends +public interface StorageErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.StorageError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; - * * @return The code. */ com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode getCode(); /** - * - * *
    * Name of the failed entity.
    * 
* * string entity = 2; - * * @return The entity. */ java.lang.String getEntity(); /** - * - * *
    * Name of the failed entity.
    * 
* * string entity = 2; - * * @return The bytes for entity. */ - com.google.protobuf.ByteString getEntityBytes(); + com.google.protobuf.ByteString + getEntityBytes(); /** - * - * *
    * Message that describes the error.
    * 
* * string error_message = 3; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * Message that describes the error.
    * 
* * string error_message = 3; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java new file mode 100644 index 0000000000..a4ac3dc60f --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java @@ -0,0 +1,457 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public final class StorageProto { + private StorageProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/bigquery/storage/v1beta2/" + + "storage.proto\022%google.cloud.bigquery.sto" + + "rage.v1beta2\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\0321google/cloud/bigquery/storage/v" + + "1beta2/arrow.proto\0320google/cloud/bigquer" + + "y/storage/v1beta2/avro.proto\0324google/clo" + + "ud/bigquery/storage/v1beta2/protobuf.pro" + + "to\0322google/cloud/bigquery/storage/v1beta" + + "2/stream.proto\0321google/cloud/bigquery/st" + + "orage/v1beta2/table.proto\032\037google/protob" + + "uf/timestamp.proto\032\036google/protobuf/wrap" + + "pers.proto\032\027google/rpc/status.proto\"\310\001\n\030" + + "CreateReadSessionRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022M\n\014read_session\030\002 \001(\01322.go" + + "ogle.cloud.bigquery.storage.v1beta2.Read" + + "SessionB\003\340A\002\022\030\n\020max_stream_count\030\003 \001(\005\"i" + + "\n\017ReadRowsRequest\022F\n\013read_stream\030\001 \001(\tB1" + + "\340A\002\372A+\n)bigquerystorage.googleapis.com/R" + + "eadStream\022\016\n\006offset\030\002 \001(\003\")\n\rThrottleSta" + + "te\022\030\n\020throttle_percent\030\001 \001(\005\"\234\001\n\013StreamS" + + "tats\022M\n\010progress\030\002 \001(\0132;.google.cloud.bi" + + "gquery.storage.v1beta2.StreamStats.Progr" + + "ess\032>\n\010Progress\022\031\n\021at_response_start\030\001 \001" + + "(\001\022\027\n\017at_response_end\030\002 \001(\001\"\205\004\n\020ReadRows" + + "Response\022D\n\tavro_rows\030\003 \001(\0132/.google.clo" + + "ud.bigquery.storage.v1beta2.AvroRowsH\000\022U" + + "\n\022arrow_record_batch\030\004 \001(\01327.google.clou" + + "d.bigquery.storage.v1beta2.ArrowRecordBa" + + "tchH\000\022\021\n\trow_count\030\006 \001(\003\022A\n\005stats\030\002 \001(\0132" + + "2.google.cloud.bigquery.storage.v1beta2." + + "StreamStats\022L\n\016throttle_state\030\005 \001(\01324.go" + + "ogle.cloud.bigquery.storage.v1beta2.Thro" + + "ttleState\022M\n\013avro_schema\030\007 \001(\01321.google." + + "cloud.bigquery.storage.v1beta2.AvroSchem" + + "aB\003\340A\003H\001\022O\n\014arrow_schema\030\010 \001(\01322.google." + + "cloud.bigquery.storage.v1beta2.ArrowSche" + + "maB\003\340A\003H\001B\006\n\004rowsB\010\n\006schema\"k\n\026SplitRead" + + "StreamRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)big" + + "querystorage.googleapis.com/ReadStream\022\020" + + "\n\010fraction\030\002 \001(\001\"\261\001\n\027SplitReadStreamResp" + + "onse\022I\n\016primary_stream\030\001 \001(\01321.google.cl" + + "oud.bigquery.storage.v1beta2.ReadStream\022" + + "K\n\020remainder_stream\030\002 \001(\01321.google.cloud" + + ".bigquery.storage.v1beta2.ReadStream\"\240\001\n" + + "\030CreateWriteStreamRequest\0225\n\006parent\030\001 \001(" + + "\tB%\340A\002\372A\037\n\035bigquery.googleapis.com/Table" + + "\022M\n\014write_stream\030\002 \001(\01322.google.cloud.bi" + + "gquery.storage.v1beta2.WriteStreamB\003\340A\002\"" + + "\227\003\n\021AppendRowsRequest\022H\n\014write_stream\030\001 " + + "\001(\tB2\340A\002\372A,\n*bigquerystorage.googleapis." + + "com/WriteStream\022+\n\006offset\030\002 \001(\0132\033.google" + + ".protobuf.Int64Value\022X\n\nproto_rows\030\004 \001(\013" + + "2B.google.cloud.bigquery.storage.v1beta2" + + ".AppendRowsRequest.ProtoDataH\000\022\020\n\010trace_" + + "id\030\006 \001(\t\032\226\001\n\tProtoData\022I\n\rwriter_schema\030" + + "\001 \001(\01322.google.cloud.bigquery.storage.v1" + + "beta2.ProtoSchema\022>\n\004rows\030\002 \001(\01320.google" + + ".cloud.bigquery.storage.v1beta2.ProtoRow" + + "sB\006\n\004rows\"\257\002\n\022AppendRowsResponse\022_\n\rappe" + + "nd_result\030\001 \001(\0132F.google.cloud.bigquery." + + "storage.v1beta2.AppendRowsResponse.Appen" + + "dResultH\000\022#\n\005error\030\002 \001(\0132\022.google.rpc.St" + + "atusH\000\022J\n\016updated_schema\030\003 \001(\01322.google." + + "cloud.bigquery.storage.v1beta2.TableSche" + + "ma\032;\n\014AppendResult\022+\n\006offset\030\001 \001(\0132\033.goo" + + "gle.protobuf.Int64ValueB\n\n\010response\"Y\n\025G" + + "etWriteStreamRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372" + + "A,\n*bigquerystorage.googleapis.com/Write" + + "Stream\"Q\n\036BatchCommitWriteStreamsRequest" + + "\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\032\n\rwrite_streams\030\002" + + " \003(\tB\003\340A\002\"\236\001\n\037BatchCommitWriteStreamsRes" + + "ponse\022/\n\013commit_time\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\022J\n\rstream_errors\030\002 \003(\01323." + + "google.cloud.bigquery.storage.v1beta2.St" + + "orageError\"^\n\032FinalizeWriteStreamRequest" + + "\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquerystorage." + + "googleapis.com/WriteStream\"0\n\033FinalizeWr" + + "iteStreamResponse\022\021\n\trow_count\030\001 \001(\003\"\211\001\n" + + "\020FlushRowsRequest\022H\n\014write_stream\030\001 \001(\tB" + + "2\340A\002\372A,\n*bigquerystorage.googleapis.com/" + + "WriteStream\022+\n\006offset\030\002 \001(\0132\033.google.pro" + + "tobuf.Int64Value\"#\n\021FlushRowsResponse\022\016\n" + + "\006offset\030\001 \001(\003\"\324\002\n\014StorageError\022R\n\004code\030\001" + + " \001(\0162D.google.cloud.bigquery.storage.v1b" + + "eta2.StorageError.StorageErrorCode\022\016\n\006en" + + "tity\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\"\310\001\n\020St" + + "orageErrorCode\022\"\n\036STORAGE_ERROR_CODE_UNS" + + "PECIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STREA" + + "M_ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FOUN" + + "D\020\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALID_" + + "STREAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\0062\277\006\n" + + "\014BigQueryRead\022\370\001\n\021CreateReadSession\022?.go" + + "ogle.cloud.bigquery.storage.v1beta2.Crea" + + "teReadSessionRequest\0322.google.cloud.bigq" + + "uery.storage.v1beta2.ReadSession\"n\202\323\344\223\002A" + + "\".google.cloud.bigquery.sto" + + "rage.v1beta2.SplitReadStreamResponse\"C\202\323" + + "\344\223\002=\022;/v1beta2/{name=projects/*/location" + + "s/*/sessions/*/streams/*}\032{\312A\036bigqueryst" + + "orage.googleapis.com\322AWhttps://www.googl" + + "eapis.com/auth/bigquery,https://www.goog" + + "leapis.com/auth/cloud-platform2\226\014\n\rBigQu" + + "eryWrite\022\346\001\n\021CreateWriteStream\022?.google." + + "cloud.bigquery.storage.v1beta2.CreateWri" + + "teStreamRequest\0322.google.cloud.bigquery." + + "storage.v1beta2.WriteStream\"\\\202\323\344\223\002@\"0/v1" + + "beta2/{parent=projects/*/datasets/*/tabl" + + "es/*}:\014write_stream\332A\023parent,write_strea" + + "m\022\341\001\n\nAppendRows\0228.google.cloud.bigquery" + + ".storage.v1beta2.AppendRowsRequest\0329.goo" + + "gle.cloud.bigquery.storage.v1beta2.Appen" + + "dRowsResponse\"Z\202\323\344\223\002E\"@/v1beta2/{write_s" + + "tream=projects/*/datasets/*/tables/*/str" + + "eams/*}:\001*\332A\014write_stream(\0010\001\022\316\001\n\016GetWri" + + "teStream\022<.google.cloud.bigquery.storage" + + ".v1beta2.GetWriteStreamRequest\0322.google." + + "cloud.bigquery.storage.v1beta2.WriteStre" + + "am\"J\202\323\344\223\002=\"8/v1beta2/{name=projects/*/da" + + "tasets/*/tables/*/streams/*}:\001*\332A\004name\022\350" + + "\001\n\023FinalizeWriteStream\022A.google.cloud.bi" + + "gquery.storage.v1beta2.FinalizeWriteStre" + + "amRequest\032B.google.cloud.bigquery.storag" + + "e.v1beta2.FinalizeWriteStreamResponse\"J\202" + + "\323\344\223\002=\"8/v1beta2/{name=projects/*/dataset" + + "s/*/tables/*/streams/*}:\001*\332A\004name\022\353\001\n\027Ba" + + "tchCommitWriteStreams\022E.google.cloud.big" + + "query.storage.v1beta2.BatchCommitWriteSt" + + "reamsRequest\032F.google.cloud.bigquery.sto" + + "rage.v1beta2.BatchCommitWriteStreamsResp" + + "onse\"A\202\323\344\223\0022\0220/v1beta2/{parent=projects/" + + "*/datasets/*/tables/*}\332A\006parent\022\332\001\n\tFlus" + + "hRows\0227.google.cloud.bigquery.storage.v1" + + "beta2.FlushRowsRequest\0328.google.cloud.bi" + + "gquery.storage.v1beta2.FlushRowsResponse" + + "\"Z\202\323\344\223\002E\"@/v1beta2/{write_stream=project" + + "s/*/datasets/*/tables/*/streams/*}:\001*\332A\014" + + "write_stream\032\260\001\312A\036bigquerystorage.google" + + "apis.com\322A\213\001https://www.googleapis.com/a" + + "uth/bigquery,https://www.googleapis.com/" + + "auth/bigquery.insertdata,https://www.goo" + + "gleapis.com/auth/cloud-platformB\200\001\n)com." + + "google.cloud.bigquery.storage.v1beta2B\014S" + + "torageProtoP\001ZCcloud.google.com/go/bigqu" + + "ery/storage/apiv1beta2/storagepb;storage" + + "pbb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor, + new java.lang.String[] { "Parent", "ReadSession", "MaxStreamCount", }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor, + new java.lang.String[] { "ReadStream", "Offset", }); + internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor, + new java.lang.String[] { "ThrottlePercent", }); + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor, + new java.lang.String[] { "Progress", }); + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor = + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor, + new java.lang.String[] { "AtResponseStart", "AtResponseEnd", }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor, + new java.lang.String[] { "AvroRows", "ArrowRecordBatch", "RowCount", "Stats", "ThrottleState", "AvroSchema", "ArrowSchema", "Rows", "Schema", }); + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor, + new java.lang.String[] { "Name", "Fraction", }); + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor, + new java.lang.String[] { "PrimaryStream", "RemainderStream", }); + internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor, + new java.lang.String[] { "Parent", "WriteStream", }); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor, + new java.lang.String[] { "WriteStream", "Offset", "ProtoRows", "TraceId", "Rows", }); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor = + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor, + new java.lang.String[] { "WriterSchema", "Rows", }); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor, + new java.lang.String[] { "AppendResult", "Error", "UpdatedSchema", "Response", }); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor = + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor, + new java.lang.String[] { "Offset", }); + internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor, + new java.lang.String[] { "Parent", "WriteStreams", }); + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor, + new java.lang.String[] { "CommitTime", "StreamErrors", }); + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor, + new java.lang.String[] { "RowCount", }); + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor, + new java.lang.String[] { "WriteStream", "Offset", }); + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor, + new java.lang.String[] { "Offset", }); + internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor, + new java.lang.String[] { "Code", "Entity", "ErrorMessage", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java new file mode 100644 index 0000000000..0a8d557230 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java @@ -0,0 +1,167 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/stream.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public final class StreamProto { + private StreamProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/bigquery/storage/v1beta2/" + + "stream.proto\022%google.cloud.bigquery.stor" + + "age.v1beta2\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\0321google/" + + "cloud/bigquery/storage/v1beta2/arrow.pro" + + "to\0320google/cloud/bigquery/storage/v1beta" + + "2/avro.proto\0321google/cloud/bigquery/stor" + + "age/v1beta2/table.proto\032\037google/protobuf" + + "/timestamp.proto\"\362\007\n\013ReadSession\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\0224\n\013expire_time\030\002 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022K\n\013data_format" + + "\030\003 \001(\01621.google.cloud.bigquery.storage.v" + + "1beta2.DataFormatB\003\340A\005\022M\n\013avro_schema\030\004 " + + "\001(\01321.google.cloud.bigquery.storage.v1be" + + "ta2.AvroSchemaB\003\340A\003H\000\022O\n\014arrow_schema\030\005 " + + "\001(\01322.google.cloud.bigquery.storage.v1be" + + "ta2.ArrowSchemaB\003\340A\003H\000\0224\n\005table\030\006 \001(\tB%\340" + + "A\005\372A\037\n\035bigquery.googleapis.com/Table\022_\n\017" + + "table_modifiers\030\007 \001(\0132A.google.cloud.big" + + "query.storage.v1beta2.ReadSession.TableM" + + "odifiersB\003\340A\001\022^\n\014read_options\030\010 \001(\0132C.go" + + "ogle.cloud.bigquery.storage.v1beta2.Read" + + "Session.TableReadOptionsB\003\340A\001\022G\n\007streams" + + "\030\n \003(\01321.google.cloud.bigquery.storage.v" + + "1beta2.ReadStreamB\003\340A\003\032C\n\016TableModifiers" + + "\0221\n\rsnapshot_time\030\001 \001(\0132\032.google.protobu" + + "f.Timestamp\032\260\001\n\020TableReadOptions\022\027\n\017sele" + + "cted_fields\030\001 \003(\t\022\027\n\017row_restriction\030\002 \001" + + "(\t\022j\n\033arrow_serialization_options\030\003 \001(\0132" + + "@.google.cloud.bigquery.storage.v1beta2." + + "ArrowSerializationOptionsB\003\340A\001:k\352Ah\n*big" + + "querystorage.googleapis.com/ReadSession\022" + + ":projects/{project}/locations/{location}" + + "/sessions/{session}B\010\n\006schema\"\234\001\n\nReadSt" + + "ream\022\021\n\004name\030\001 \001(\tB\003\340A\003:{\352Ax\n)bigqueryst" + + "orage.googleapis.com/ReadStream\022Kproject" + + "s/{project}/locations/{location}/session" + + "s/{session}/streams/{stream}\"\347\003\n\013WriteSt" + + "ream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022J\n\004type\030\002 \001(\01627." + + "google.cloud.bigquery.storage.v1beta2.Wr" + + "iteStream.TypeB\003\340A\005\0224\n\013create_time\030\003 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013com" + + "mit_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022M\n\014table_schema\030\005 \001(\01322.google.c" + + "loud.bigquery.storage.v1beta2.TableSchem" + + "aB\003\340A\003\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\t" + + "COMMITTED\020\001\022\013\n\007PENDING\020\002\022\014\n\010BUFFERED\020\003:v" + + "\352As\n*bigquerystorage.googleapis.com/Writ" + + "eStream\022Eprojects/{project}/datasets/{da" + + "taset}/tables/{table}/streams/{stream}*>" + + "\n\nDataFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020" + + "\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\002B\327\001\n)com.google.cl" + + "oud.bigquery.storage.v1beta2B\013StreamProt" + + "oP\001ZCcloud.google.com/go/bigquery/storag" + + "e/apiv1beta2/storagepb;storagepb\352AU\n\035big" + + "query.googleapis.com/Table\0224projects/{pr" + + "oject}/datasets/{dataset}/tables/{table}" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor, + new java.lang.String[] { "Name", "ExpireTime", "DataFormat", "AvroSchema", "ArrowSchema", "Table", "TableModifiers", "ReadOptions", "Streams", "Schema", }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor = + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor, + new java.lang.String[] { "SnapshotTime", }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor = + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor, + new java.lang.String[] { "SelectedFields", "RowRestriction", "ArrowSerializationOptions", }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor, + new java.lang.String[] { "Name", "Type", "CreateTime", "CommitTime", "TableSchema", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java similarity index 69% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java index b6cf2d63e6..816a134c06 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java @@ -1,78 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Estimated stream statistics for a given Stream.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats} */ -public final class StreamStats extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamStats extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.StreamStats) StreamStatsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamStats.newBuilder() to construct. private StreamStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamStats() {} + private StreamStats() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.class, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.StreamStats.class, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder.class); } - public interface ProgressOrBuilder - extends + public interface ProgressOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The fraction of rows assigned to the stream that have been processed by
      * the server so far, not including the rows in the current response
@@ -87,69 +66,64 @@ public interface ProgressOrBuilder
      * 
* * double at_response_start = 1; - * * @return The atResponseStart. */ double getAtResponseStart(); /** - * - * *
      * Similar to `at_response_start`, except that this value includes the
      * rows in the current response.
      * 
* * double at_response_end = 2; - * * @return The atResponseEnd. */ double getAtResponseEnd(); } - /** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats.Progress} */ - public static final class Progress extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats.Progress} + */ + public static final class Progress extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) ProgressOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Progress.newBuilder() to construct. private Progress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Progress() {} + private Progress() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Progress(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.class, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.class, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder.class); } public static final int AT_RESPONSE_START_FIELD_NUMBER = 1; private double atResponseStart_ = 0D; /** - * - * *
      * The fraction of rows assigned to the stream that have been processed by
      * the server so far, not including the rows in the current response
@@ -164,7 +138,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * double at_response_start = 1; - * * @return The atResponseStart. */ @java.lang.Override @@ -175,15 +148,12 @@ public double getAtResponseStart() { public static final int AT_RESPONSE_END_FIELD_NUMBER = 2; private double atResponseEnd_ = 0D; /** - * - * *
      * Similar to `at_response_start`, except that this value includes the
      * rows in the current response.
      * 
* * double at_response_end = 2; - * * @return The atResponseEnd. */ @java.lang.Override @@ -192,7 +162,6 @@ public double getAtResponseEnd() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(atResponseStart_) != 0) { output.writeDouble(1, atResponseStart_); } @@ -221,10 +191,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(atResponseStart_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, atResponseStart_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(1, atResponseStart_); } if (java.lang.Double.doubleToRawLongBits(atResponseEnd_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, atResponseEnd_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, atResponseEnd_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,18 +206,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress other = - (com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) obj; + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress other = (com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) obj; if (java.lang.Double.doubleToLongBits(getAtResponseStart()) - != java.lang.Double.doubleToLongBits(other.getAtResponseStart())) return false; + != java.lang.Double.doubleToLongBits( + other.getAtResponseStart())) return false; if (java.lang.Double.doubleToLongBits(getAtResponseEnd()) - != java.lang.Double.doubleToLongBits(other.getAtResponseEnd())) return false; + != java.lang.Double.doubleToLongBits( + other.getAtResponseEnd())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,109 +231,98 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AT_RESPONSE_START_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getAtResponseStart())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAtResponseStart())); hash = (37 * hash) + AT_RESPONSE_END_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getAtResponseEnd())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAtResponseEnd())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -369,34 +331,36 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats.Progress} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats.Progress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.class, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.class, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -407,14 +371,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance(); } @@ -429,17 +392,13 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress result = - new com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress result = new com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress result) { + private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.atResponseStart_ = atResponseStart_; @@ -453,52 +412,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress other) { - if (other - == com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress other) { + if (other == com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance()) return this; if (other.getAtResponseStart() != 0D) { setAtResponseStart(other.getAtResponseStart()); } @@ -531,25 +484,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: - { - atResponseStart_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: - { - atResponseEnd_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: { + atResponseStart_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: { + atResponseEnd_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -559,13 +509,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private double atResponseStart_; + private double atResponseStart_ ; /** - * - * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -580,7 +527,6 @@ public Builder mergeFrom(
        * 
* * double at_response_start = 1; - * * @return The atResponseStart. */ @java.lang.Override @@ -588,8 +534,6 @@ public double getAtResponseStart() { return atResponseStart_; } /** - * - * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -604,20 +548,17 @@ public double getAtResponseStart() {
        * 
* * double at_response_start = 1; - * * @param value The atResponseStart to set. * @return This builder for chaining. */ public Builder setAtResponseStart(double value) { - + atResponseStart_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -632,7 +573,6 @@ public Builder setAtResponseStart(double value) {
        * 
* * double at_response_start = 1; - * * @return This builder for chaining. */ public Builder clearAtResponseStart() { @@ -642,17 +582,14 @@ public Builder clearAtResponseStart() { return this; } - private double atResponseEnd_; + private double atResponseEnd_ ; /** - * - * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; - * * @return The atResponseEnd. */ @java.lang.Override @@ -660,35 +597,29 @@ public double getAtResponseEnd() { return atResponseEnd_; } /** - * - * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; - * * @param value The atResponseEnd to set. * @return This builder for chaining. */ public Builder setAtResponseEnd(double value) { - + atResponseEnd_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; - * * @return This builder for chaining. */ public Builder clearAtResponseEnd() { @@ -697,7 +628,6 @@ public Builder clearAtResponseEnd() { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -710,44 +640,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) - private static final com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress - DEFAULT_INSTANCE; - + private static final com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress(); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress - getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Progress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -759,23 +686,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress - getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int PROGRESS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress_; /** - * - * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; - * * @return Whether the progress field is set. */ @java.lang.Override @@ -783,25 +707,18 @@ public boolean hasProgress() { return progress_ != null; } /** - * - * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; - * * @return The progress. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getProgress() { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() : progress_; } /** - * - * *
    * Represents the progress of the current stream.
    * 
@@ -809,15 +726,11 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getProgres * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder - getProgressOrBuilder() { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() - : progress_; + public com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder getProgressOrBuilder() { + return progress_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() : progress_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -829,7 +742,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (progress_ != null) { output.writeMessage(2, getProgress()); } @@ -843,7 +757,8 @@ public int getSerializedSize() { size = 0; if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProgress()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -853,17 +768,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.StreamStats)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.StreamStats other = - (com.google.cloud.bigquery.storage.v1beta2.StreamStats) obj; + com.google.cloud.bigquery.storage.v1beta2.StreamStats other = (com.google.cloud.bigquery.storage.v1beta2.StreamStats) obj; if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress().equals(other.getProgress())) return false; + if (!getProgress() + .equals(other.getProgress())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -886,136 +801,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.StreamStats prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.StreamStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Estimated stream statistics for a given Stream.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.StreamStats) com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.class, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.StreamStats.class, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.StreamStats.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1029,9 +937,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; } @java.lang.Override @@ -1050,11 +958,8 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StreamStats buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.StreamStats result = - new com.google.cloud.bigquery.storage.v1beta2.StreamStats(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.StreamStats result = new com.google.cloud.bigquery.storage.v1beta2.StreamStats(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1062,7 +967,9 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats buildPartial() { private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.StreamStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null + ? progress_ + : progressBuilder_.build(); } } @@ -1070,39 +977,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.StreamStats public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.StreamStats) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StreamStats) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StreamStats)other); } else { super.mergeFrom(other); return this; @@ -1110,8 +1016,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.StreamStats other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance()) return this; if (other.hasProgress()) { mergeProgress(other.getProgress()); } @@ -1141,19 +1046,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getProgressFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1163,60 +1068,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder> - progressBuilder_; + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder> progressBuilder_; /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; - * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; - * * @return The progress. */ public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getProgress() { if (progressBuilder_ == null) { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() - : progress_; + return progress_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() : progress_; } else { return progressBuilder_.getMessage(); } } /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ - public Builder setProgress( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress value) { + public Builder setProgress(com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress value) { if (progressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1230,8 +1120,6 @@ public Builder setProgress( return this; } /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -1250,22 +1138,17 @@ public Builder setProgress( return this; } /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ - public Builder mergeProgress( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress value) { + public Builder mergeProgress(com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && progress_ != null - && progress_ - != com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress - .getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + progress_ != null && + progress_ != com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -1278,8 +1161,6 @@ public Builder mergeProgress( return this; } /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -1297,42 +1178,33 @@ public Builder clearProgress() { return this; } /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ - public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder - getProgressBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder getProgressBuilder() { bitField0_ |= 0x00000001; onChanged(); return getProgressFieldBuilder().getBuilder(); } /** - * - * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ - public com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder - getProgressOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder getProgressOrBuilder() { if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null - ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() - : progress_; + return progress_ == null ? + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() : progress_; } } /** - * - * *
      * Represents the progress of the current stream.
      * 
@@ -1340,24 +1212,21 @@ public Builder clearProgress() { * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, - com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder>( - getProgress(), getParentForChildren(), isClean()); + progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder>( + getProgress(), + getParentForChildren(), + isClean()); progress_ = null; } return progressBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1367,12 +1236,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.StreamStats) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.StreamStats) private static final com.google.cloud.bigquery.storage.v1beta2.StreamStats DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.StreamStats(); } @@ -1381,27 +1250,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.StreamStats getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1416,4 +1285,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.StreamStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java similarity index 62% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java index ed9f32db50..7567961429 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface StreamStatsOrBuilder - extends +public interface StreamStatsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.StreamStats) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; - * * @return Whether the progress field is set. */ boolean hasProgress(); /** - * - * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; - * * @return The progress. */ com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getProgress(); /** - * - * *
    * Represents the progress of the current stream.
    * 
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java index 5b9689b1d1..6b89b11e92 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * A field in TableSchema
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema} */ -public final class TableFieldSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TableFieldSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.TableFieldSchema) TableFieldSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TableFieldSchema.newBuilder() to construct. private TableFieldSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableFieldSchema() { name_ = ""; type_ = 0; @@ -47,35 +29,35 @@ private TableFieldSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableFieldSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto - .internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto - .internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.class, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.class, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder.class); } - /** Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type} + */ + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Illegal value
      * 
@@ -84,8 +66,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * 64K, UTF8
      * 
@@ -94,8 +74,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ STRING(1), /** - * - * *
      * 64-bit signed
      * 
@@ -104,8 +82,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ INT64(2), /** - * - * *
      * 64-bit IEEE floating point
      * 
@@ -114,8 +90,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ DOUBLE(3), /** - * - * *
      * Aggregate type
      * 
@@ -124,8 +98,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ STRUCT(4), /** - * - * *
      * 64K, Binary
      * 
@@ -134,8 +106,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ BYTES(5), /** - * - * *
      * 2-valued
      * 
@@ -144,8 +114,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ BOOL(6), /** - * - * *
      * 64-bit signed usec since UTC epoch
      * 
@@ -154,8 +122,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TIMESTAMP(7), /** - * - * *
      * Civil date - Year, Month, Day
      * 
@@ -164,8 +130,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ DATE(8), /** - * - * *
      * Civil time - Hour, Minute, Second, Microseconds
      * 
@@ -174,8 +138,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TIME(9), /** - * - * *
      * Combination of civil date and civil time
      * 
@@ -184,8 +146,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ DATETIME(10), /** - * - * *
      * Geography object
      * 
@@ -194,8 +154,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ GEOGRAPHY(11), /** - * - * *
      * Numeric value
      * 
@@ -204,8 +162,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ NUMERIC(12), /** - * - * *
      * BigNumeric value
      * 
@@ -214,8 +170,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ BIGNUMERIC(13), /** - * - * *
      * Interval
      * 
@@ -224,8 +178,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ INTERVAL(14), /** - * - * *
      * JSON, String
      * 
@@ -237,8 +189,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Illegal value
      * 
@@ -247,8 +197,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * 64K, UTF8
      * 
@@ -257,8 +205,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STRING_VALUE = 1; /** - * - * *
      * 64-bit signed
      * 
@@ -267,8 +213,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INT64_VALUE = 2; /** - * - * *
      * 64-bit IEEE floating point
      * 
@@ -277,8 +221,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DOUBLE_VALUE = 3; /** - * - * *
      * Aggregate type
      * 
@@ -287,8 +229,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STRUCT_VALUE = 4; /** - * - * *
      * 64K, Binary
      * 
@@ -297,8 +237,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BYTES_VALUE = 5; /** - * - * *
      * 2-valued
      * 
@@ -307,8 +245,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BOOL_VALUE = 6; /** - * - * *
      * 64-bit signed usec since UTC epoch
      * 
@@ -317,8 +253,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIMESTAMP_VALUE = 7; /** - * - * *
      * Civil date - Year, Month, Day
      * 
@@ -327,8 +261,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATE_VALUE = 8; /** - * - * *
      * Civil time - Hour, Minute, Second, Microseconds
      * 
@@ -337,8 +269,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TIME_VALUE = 9; /** - * - * *
      * Combination of civil date and civil time
      * 
@@ -347,8 +277,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DATETIME_VALUE = 10; /** - * - * *
      * Geography object
      * 
@@ -357,8 +285,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GEOGRAPHY_VALUE = 11; /** - * - * *
      * Numeric value
      * 
@@ -367,8 +293,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NUMERIC_VALUE = 12; /** - * - * *
      * BigNumeric value
      * 
@@ -377,8 +301,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BIGNUMERIC_VALUE = 13; /** - * - * *
      * Interval
      * 
@@ -387,8 +309,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTERVAL_VALUE = 14; /** - * - * *
      * JSON, String
      * 
@@ -397,6 +317,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JSON_VALUE = 15; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -421,77 +342,62 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return STRING; - case 2: - return INT64; - case 3: - return DOUBLE; - case 4: - return STRUCT; - case 5: - return BYTES; - case 6: - return BOOL; - case 7: - return TIMESTAMP; - case 8: - return DATE; - case 9: - return TIME; - case 10: - return DATETIME; - case 11: - return GEOGRAPHY; - case 12: - return NUMERIC; - case 13: - return BIGNUMERIC; - case 14: - return INTERVAL; - case 15: - return JSON; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return STRING; + case 2: return INT64; + case 3: return DOUBLE; + case 4: return STRUCT; + case 5: return BYTES; + case 6: return BOOL; + case 7: return TIMESTAMP; + case 8: return DATE; + case 9: return TIME; + case 10: return DATETIME; + case 11: return GEOGRAPHY; + case 12: return NUMERIC; + case 13: return BIGNUMERIC; + case 14: return INTERVAL; + case 15: return JSON; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -508,11 +414,12 @@ private Type(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type) } - /** Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode} */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode} + */ + public enum Mode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Illegal value
      * 
@@ -520,18 +427,22 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * MODE_UNSPECIFIED = 0; */ MODE_UNSPECIFIED(0), - /** NULLABLE = 1; */ + /** + * NULLABLE = 1; + */ NULLABLE(1), - /** REQUIRED = 2; */ + /** + * REQUIRED = 2; + */ REQUIRED(2), - /** REPEATED = 3; */ + /** + * REPEATED = 3; + */ REPEATED(3), UNRECOGNIZED(-1), ; /** - * - * *
      * Illegal value
      * 
@@ -539,13 +450,20 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { * MODE_UNSPECIFIED = 0; */ public static final int MODE_UNSPECIFIED_VALUE = 0; - /** NULLABLE = 1; */ + /** + * NULLABLE = 1; + */ public static final int NULLABLE_VALUE = 1; - /** REQUIRED = 2; */ + /** + * REQUIRED = 2; + */ public static final int REQUIRED_VALUE = 2; - /** REPEATED = 3; */ + /** + * REPEATED = 3; + */ public static final int REPEATED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -570,53 +488,50 @@ public static Mode valueOf(int value) { */ public static Mode forNumber(int value) { switch (value) { - case 0: - return MODE_UNSPECIFIED; - case 1: - return NULLABLE; - case 2: - return REQUIRED; - case 3: - return REPEATED; - default: - return null; + case 0: return MODE_UNSPECIFIED; + case 1: return NULLABLE; + case 2: return REQUIRED; + case 3: return REPEATED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Mode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDescriptor().getEnumTypes().get(1); } private static final Mode[] VALUES = values(); - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -634,12 +549,9 @@ private Mode(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -647,7 +559,6 @@ private Mode(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -656,15 +567,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -672,15 +582,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -691,162 +602,109 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** - * - * *
    * Required. The field data type.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Required. The field data type.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type getType() { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type result = - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type getType() { + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type result = com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.forNumber(type_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.UNRECOGNIZED : result; } public static final int MODE_FIELD_NUMBER = 3; private int mode_ = 0; /** - * - * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The mode. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode getMode() { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode result = - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.forNumber(mode_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode getMode() { + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode result = com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.forNumber(mode_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.UNRECOGNIZED : result; } public static final int FIELDS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private java.util.List fields_; /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List - getFieldsList() { + public java.util.List getFieldsList() { return fields_; } /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> + public java.util.List getFieldsOrBuilderList() { return fields_; } /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int index) { return fields_.get(index); } /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder( @@ -855,18 +713,14 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFi } public static final int DESCRIPTION_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -875,29 +729,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -906,7 +760,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -918,18 +771,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ - != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } - if (mode_ - != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.MODE_UNSPECIFIED - .getNumber()) { + if (mode_ != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.MODE_UNSPECIFIED.getNumber()) { output.writeEnum(3, mode_); } for (int i = 0; i < fields_.size(); i++) { @@ -950,18 +800,17 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ - != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } - if (mode_ - != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, mode_); + if (mode_ != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, mode_); } for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, fields_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); @@ -974,19 +823,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema other = - (com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema) obj; + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema other = (com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (type_ != other.type_) return false; if (mode_ != other.mode_) return false; - if (!getFieldsList().equals(other.getFieldsList())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1016,136 +867,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A field in TableSchema
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.TableFieldSchema) com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto - .internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto - .internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.class, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.class, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1165,9 +1009,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto - .internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; } @java.lang.Override @@ -1186,18 +1030,14 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema result = - new com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema(this); + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema result = new com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); @@ -1229,39 +1069,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.TableFieldS public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema)other); } else { super.mergeFrom(other); return this; @@ -1269,8 +1108,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1300,10 +1138,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.TableFieldSch fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000008); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFieldsFieldBuilder() - : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -1340,51 +1177,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 34 - case 50: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + mode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 34 + case 50: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1394,13 +1225,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1408,13 +1236,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1423,8 +1251,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1432,14 +1258,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1447,8 +1274,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1456,22 +1281,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1479,7 +1300,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1489,8 +1309,6 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1498,14 +1316,12 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1515,33 +1331,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * Required. The field data type.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Required. The field data type.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1552,37 +1357,24 @@ public Builder setTypeValue(int value) { return this; } /** - * - * *
      * Required. The field data type.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type getType() { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type result = - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type result = com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.forNumber(type_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.UNRECOGNIZED : result; } /** - * - * *
      * Required. The field data type.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The type to set. * @return This builder for chaining. */ @@ -1596,16 +1388,11 @@ public Builder setType(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchem return this; } /** - * - * *
      * Required. The field data type.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearType() { @@ -1617,33 +1404,22 @@ public Builder clearType() { private int mode_ = 0; /** - * - * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for mode. */ - @java.lang.Override - public int getModeValue() { + @java.lang.Override public int getModeValue() { return mode_; } /** - * - * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ @@ -1654,37 +1430,24 @@ public Builder setModeValue(int value) { return this; } /** - * - * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The mode. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode getMode() { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode result = - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.forNumber(mode_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode result = com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.forNumber(mode_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The mode to set. * @return This builder for chaining. */ @@ -1698,16 +1461,11 @@ public Builder setMode(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchem return this; } /** - * - * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearMode() { @@ -1718,36 +1476,25 @@ public Builder clearMode() { } private java.util.List fields_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - fields_ = - new java.util.ArrayList( - fields_); + fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> - fieldsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> fieldsBuilder_; /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getFieldsList() { + public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { @@ -1755,15 +1502,11 @@ private void ensureFieldsIsMutable() { } } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public int getFieldsCount() { if (fieldsBuilder_ == null) { @@ -1773,15 +1516,11 @@ public int getFieldsCount() { } } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int index) { if (fieldsBuilder_ == null) { @@ -1791,15 +1530,11 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int } } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFields( int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema value) { @@ -1816,19 +1551,14 @@ public Builder setFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setFields( - int index, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { + int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); @@ -1839,15 +1569,11 @@ public Builder setFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFields(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema value) { if (fieldsBuilder_ == null) { @@ -1863,15 +1589,11 @@ public Builder addFields(com.google.cloud.bigquery.storage.v1beta2.TableFieldSch return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFields( int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema value) { @@ -1888,15 +1610,11 @@ public Builder addFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFields( com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { @@ -1910,19 +1628,14 @@ public Builder addFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addFields( - int index, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { + int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); @@ -1933,22 +1646,18 @@ public Builder addFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder addAllFields( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -1956,15 +1665,11 @@ public Builder addAllFields( return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearFields() { if (fieldsBuilder_ == null) { @@ -1977,15 +1682,11 @@ public Builder clearFields() { return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { @@ -1998,53 +1699,39 @@ public Builder removeFields(int index) { return this; } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { + return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List< - ? extends com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> - getFieldsOrBuilderList() { + public java.util.List + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -2052,67 +1739,49 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFi } } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFieldsBuilder() { - return getFieldsFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder().addBuilder( + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFieldsBuilder( int index) { - return getFieldsFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); } /** - * - * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder>( - fields_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder>( + fields_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); fields_ = null; } return fieldsBuilder_; @@ -2120,20 +1789,18 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFie private java.lang.Object description_ = ""; /** - * - * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2142,21 +1809,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2164,35 +1830,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2202,30 +1861,26 @@ public Builder clearDescription() { return this; } /** - * - * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2235,12 +1890,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.TableFieldSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.TableFieldSchema) private static final com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema(); } @@ -2249,27 +1904,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableFieldSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableFieldSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2284,4 +1939,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java similarity index 58% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java index 90055b13d4..d753ba7d93 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface TableFieldSchemaOrBuilder - extends +public interface TableFieldSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.TableFieldSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -33,13 +15,10 @@ public interface TableFieldSchemaOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -47,153 +26,110 @@ public interface TableFieldSchemaOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The field data type.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Required. The field data type.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The type. */ com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type getType(); /** - * - * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** - * - * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The mode. */ com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode getMode(); /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int index); /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ int getFieldsCount(); /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** - * - * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index); + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder( + int index); /** - * - * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java new file mode 100644 index 0000000000..54161ee2da --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java @@ -0,0 +1,87 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/table.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public final class TableProto { + private TableProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/bigquery/storage/v1beta2/" + + "table.proto\022%google.cloud.bigquery.stora" + + "ge.v1beta2\032\037google/api/field_behavior.pr" + + "oto\"V\n\013TableSchema\022G\n\006fields\030\001 \003(\01327.goo" + + "gle.cloud.bigquery.storage.v1beta2.Table" + + "FieldSchema\"\317\004\n\020TableFieldSchema\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\002\022O\n\004type\030\002 \001(\0162<.google.cloud" + + ".bigquery.storage.v1beta2.TableFieldSche" + + "ma.TypeB\003\340A\002\022O\n\004mode\030\003 \001(\0162<.google.clou" + + "d.bigquery.storage.v1beta2.TableFieldSch" + + "ema.ModeB\003\340A\001\022L\n\006fields\030\004 \003(\01327.google.c" + + "loud.bigquery.storage.v1beta2.TableField" + + "SchemaB\003\340A\001\022\030\n\013description\030\006 \001(\tB\003\340A\001\"\325\001" + + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001" + + "\022\t\n\005INT64\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRUCT\020\004\022\t\n\005B" + + "YTES\020\005\022\010\n\004BOOL\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020" + + "\010\022\010\n\004TIME\020\t\022\014\n\010DATETIME\020\n\022\r\n\tGEOGRAPHY\020\013" + + "\022\013\n\007NUMERIC\020\014\022\016\n\nBIGNUMERIC\020\r\022\014\n\010INTERVA" + + "L\020\016\022\010\n\004JSON\020\017\"F\n\004Mode\022\024\n\020MODE_UNSPECIFIE" + + "D\020\000\022\014\n\010NULLABLE\020\001\022\014\n\010REQUIRED\020\002\022\014\n\010REPEA" + + "TED\020\003B~\n)com.google.cloud.bigquery.stora" + + "ge.v1beta2B\nTableProtoP\001ZCcloud.google.c" + + "om/go/bigquery/storage/apiv1beta2/storag" + + "epb;storagepbb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor, + new java.lang.String[] { "Fields", }); + internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor, + new java.lang.String[] { "Name", "Type", "Mode", "Fields", "Description", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java similarity index 70% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java index ba6c3636c4..955543c53c 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java @@ -1,79 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Schema of a table
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.TableSchema} */ -public final class TableSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TableSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.TableSchema) TableSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TableSchema.newBuilder() to construct. private TableSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableSchema() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TableSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto - .internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto - .internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.TableSchema.class, - com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.TableSchema.class, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder.class); } public static final int FIELDS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List fields_; /** - * - * *
    * Describes the fields in a table.
    * 
@@ -81,13 +59,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ @java.lang.Override - public java.util.List - getFieldsList() { + public java.util.List getFieldsList() { return fields_; } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -95,14 +70,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> + public java.util.List getFieldsOrBuilderList() { return fields_; } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -114,8 +86,6 @@ public int getFieldsCount() { return fields_.size(); } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -127,8 +97,6 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int return fields_.get(index); } /** - * - * *
    * Describes the fields in a table.
    * 
@@ -142,7 +110,6 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFi } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } @@ -168,7 +136,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fields_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,15 +147,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.TableSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.TableSchema other = - (com.google.cloud.bigquery.storage.v1beta2.TableSchema) obj; + com.google.cloud.bigquery.storage.v1beta2.TableSchema other = (com.google.cloud.bigquery.storage.v1beta2.TableSchema) obj; - if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getFieldsList() + .equals(other.getFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -208,136 +177,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.TableSchema prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.TableSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Schema of a table
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.TableSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.TableSchema) com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto - .internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto - .internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.TableSchema.class, - com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.TableSchema.class, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.TableSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto - .internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; } @java.lang.Override @@ -374,18 +336,14 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.TableSchema result = - new com.google.cloud.bigquery.storage.v1beta2.TableSchema(this); + com.google.cloud.bigquery.storage.v1beta2.TableSchema result = new com.google.cloud.bigquery.storage.v1beta2.TableSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.bigquery.storage.v1beta2.TableSchema result) { + private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.TableSchema result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); @@ -405,39 +363,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.TableSchema public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.TableSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.TableSchema) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.TableSchema)other); } else { super.mergeFrom(other); return this; @@ -445,8 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.TableSchema other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) return this; if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { @@ -465,10 +421,9 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.TableSchema o fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFieldsFieldBuilder() - : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -500,27 +455,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,38 +483,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List fields_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fields_ = - new java.util.ArrayList( - fields_); + fields_ = new java.util.ArrayList(fields_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> - fieldsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> fieldsBuilder_; /** - * - * *
      * Describes the fields in a table.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsList() { + public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { @@ -569,8 +512,6 @@ private void ensureFieldsIsMutable() { } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -585,8 +526,6 @@ public int getFieldsCount() { } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -601,8 +540,6 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -624,8 +561,6 @@ public Builder setFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -633,8 +568,7 @@ public Builder setFields( * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ public Builder setFields( - int index, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { + int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); @@ -645,8 +579,6 @@ public Builder setFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -667,8 +599,6 @@ public Builder addFields(com.google.cloud.bigquery.storage.v1beta2.TableFieldSch return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -690,8 +620,6 @@ public Builder addFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -710,8 +638,6 @@ public Builder addFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -719,8 +645,7 @@ public Builder addFields( * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ public Builder addFields( - int index, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { + int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); @@ -731,8 +656,6 @@ public Builder addFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -740,11 +663,11 @@ public Builder addFields( * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ public Builder addAllFields( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -752,8 +675,6 @@ public Builder addAllFields( return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -771,8 +692,6 @@ public Builder clearFields() { return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -790,8 +709,6 @@ public Builder removeFields(int index) { return this; } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -803,8 +720,6 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder getFie return getFieldsFieldBuilder().getBuilder(index); } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -814,23 +729,19 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder getFie public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); - } else { + return fields_.get(index); } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Describes the fields in a table.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - public java.util.List< - ? extends com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> - getFieldsOrBuilderList() { + public java.util.List + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -838,8 +749,6 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFi } } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -847,13 +756,10 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFi * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFieldsBuilder() { - return getFieldsFieldBuilder() - .addBuilder( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder().addBuilder( + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); } /** - * - * *
      * Describes the fields in a table.
      * 
@@ -862,44 +768,37 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFie */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFieldsBuilder( int index) { - return getFieldsFieldBuilder() - .addBuilder( - index, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder().addBuilder( + index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); } /** - * - * *
      * Describes the fields in a table.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder>( - fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder>( + fields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); fields_ = null; } return fieldsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -909,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.TableSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.TableSchema) private static final com.google.cloud.bigquery.storage.v1beta2.TableSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.TableSchema(); } @@ -923,27 +822,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.TableSchema getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -958,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.TableSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java similarity index 65% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java index 6f06a3c9f4..899deefd99 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface TableSchemaOrBuilder - extends +public interface TableSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.TableSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - java.util.List getFieldsList(); + java.util.List + getFieldsList(); /** - * - * *
    * Describes the fields in a table.
    * 
@@ -44,8 +25,6 @@ public interface TableSchemaOrBuilder */ com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int index); /** - * - * *
    * Describes the fields in a table.
    * 
@@ -54,24 +33,21 @@ public interface TableSchemaOrBuilder */ int getFieldsCount(); /** - * - * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** - * - * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index); + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder( + int index); } diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java similarity index 66% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java index 5281d244f1..a2902fd707 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java @@ -1,82 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Information on if the current connection is being throttled.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ThrottleState} */ -public final class ThrottleState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ThrottleState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ThrottleState) ThrottleStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ThrottleState.newBuilder() to construct. private ThrottleState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ThrottleState() {} + private ThrottleState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ThrottleState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ThrottleState.class, - com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ThrottleState.class, com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder.class); } public static final int THROTTLE_PERCENT_FIELD_NUMBER = 1; private int throttlePercent_ = 0; /** - * - * *
    * How much this connection is being throttled. Zero means no throttling,
    * 100 means fully throttled.
    * 
* * int32 throttle_percent = 1; - * * @return The throttlePercent. */ @java.lang.Override @@ -85,7 +64,6 @@ public int getThrottlePercent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,7 +75,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (throttlePercent_ != 0) { output.writeInt32(1, throttlePercent_); } @@ -111,7 +90,8 @@ public int getSerializedSize() { size = 0; if (throttlePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, throttlePercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, throttlePercent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -121,15 +101,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ThrottleState)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ThrottleState other = - (com.google.cloud.bigquery.storage.v1beta2.ThrottleState) obj; + com.google.cloud.bigquery.storage.v1beta2.ThrottleState other = (com.google.cloud.bigquery.storage.v1beta2.ThrottleState) obj; - if (getThrottlePercent() != other.getThrottlePercent()) return false; + if (getThrottlePercent() + != other.getThrottlePercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -149,136 +129,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.ThrottleState prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ThrottleState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information on if the current connection is being throttled.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ThrottleState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ThrottleState) com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ThrottleState.class, - com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ThrottleState.class, com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ThrottleState.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -288,9 +261,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto - .internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; } @java.lang.Override @@ -309,11 +282,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ThrottleState build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ThrottleState buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ThrottleState result = - new com.google.cloud.bigquery.storage.v1beta2.ThrottleState(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.ThrottleState result = new com.google.cloud.bigquery.storage.v1beta2.ThrottleState(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -329,39 +299,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ThrottleSta public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ThrottleState) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ThrottleState) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ThrottleState)other); } else { super.mergeFrom(other); return this; @@ -369,8 +338,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ThrottleState other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()) return this; if (other.getThrottlePercent() != 0) { setThrottlePercent(other.getThrottlePercent()); } @@ -400,19 +368,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - throttlePercent_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + throttlePercent_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -422,20 +388,16 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private int throttlePercent_; + private int throttlePercent_ ; /** - * - * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; - * * @return The throttlePercent. */ @java.lang.Override @@ -443,35 +405,29 @@ public int getThrottlePercent() { return throttlePercent_; } /** - * - * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; - * * @param value The throttlePercent to set. * @return This builder for chaining. */ public Builder setThrottlePercent(int value) { - + throttlePercent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; - * * @return This builder for chaining. */ public Builder clearThrottlePercent() { @@ -480,9 +436,9 @@ public Builder clearThrottlePercent() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -492,12 +448,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ThrottleState) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ThrottleState) private static final com.google.cloud.bigquery.storage.v1beta2.ThrottleState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ThrottleState(); } @@ -506,27 +462,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThrottleState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThrottleState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -541,4 +497,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ThrottleState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java new file mode 100644 index 0000000000..44bb407db0 --- /dev/null +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface ThrottleStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ThrottleState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * How much this connection is being throttled. Zero means no throttling,
+   * 100 means fully throttled.
+   * 
+ * + * int32 throttle_percent = 1; + * @return The throttlePercent. + */ + int getThrottlePercent(); +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java similarity index 67% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java index 625658a008..1cf63980e6 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; /** - * - * *
  * Information about a single stream that gets data inside the storage system.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.WriteStream} */ -public final class WriteStream extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WriteStream extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.WriteStream) WriteStreamOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WriteStream.newBuilder() to construct. private WriteStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WriteStream() { name_ = ""; type_ = 0; @@ -44,43 +26,39 @@ private WriteStream() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteStream(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder.class); } /** - * - * *
    * Type enum of the stream.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.WriteStream.Type} */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public enum Type + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown type.
      * 
@@ -89,8 +67,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ TYPE_UNSPECIFIED(0), /** - * - * *
      * Data will commit automatically and appear as soon as the write is
      * acknowledged.
@@ -100,8 +76,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     COMMITTED(1),
     /**
-     *
-     *
      * 
      * Data is invisible until the stream is committed.
      * 
@@ -110,8 +84,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(2), /** - * - * *
      * Data is only visible up to the offset to which it was flushed.
      * 
@@ -123,8 +95,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unknown type.
      * 
@@ -133,8 +103,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Data will commit automatically and appear as soon as the write is
      * acknowledged.
@@ -144,8 +112,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int COMMITTED_VALUE = 1;
     /**
-     *
-     *
      * 
      * Data is invisible until the stream is committed.
      * 
@@ -154,8 +120,6 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 2; /** - * - * *
      * Data is only visible up to the offset to which it was flushed.
      * 
@@ -164,6 +128,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BUFFERED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -188,53 +153,50 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return COMMITTED; - case 2: - return PENDING; - case 3: - return BUFFERED; - default: - return null; + case 0: return TYPE_UNSPECIFIED; + case 1: return COMMITTED; + case 2: return PENDING; + case 3: return BUFFERED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Type> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -252,19 +214,15 @@ private Type(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -273,30 +231,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -307,57 +265,38 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** - * - * *
    * Immutable. Type of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
    * Immutable. Type of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ - @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type getType() { - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type result = - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type getType() { + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type result = com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.forNumber(type_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.UNRECOGNIZED : result; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -365,16 +304,12 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -382,15 +317,12 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -400,8 +332,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int COMMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp commitTime_; /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -409,9 +339,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the commitTime field is set. */ @java.lang.Override @@ -419,8 +347,6 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -428,9 +354,7 @@ public boolean hasCommitTime() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The commitTime. */ @java.lang.Override @@ -438,8 +362,6 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -447,8 +369,7 @@ public com.google.protobuf.Timestamp getCommitTime() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { @@ -458,8 +379,6 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { public static final int TABLE_SCHEMA_FIELD_NUMBER = 5; private com.google.cloud.bigquery.storage.v1beta2.TableSchema tableSchema_; /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -467,10 +386,7 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tableSchema field is set. */ @java.lang.Override @@ -478,8 +394,6 @@ public boolean hasTableSchema() { return tableSchema_ != null; } /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -487,21 +401,14 @@ public boolean hasTableSchema() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tableSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableSchema getTableSchema() { - return tableSchema_ == null - ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() - : tableSchema_; + return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : tableSchema_; } /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -509,19 +416,14 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema getTableSchema() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getTableSchemaOrBuilder() { - return tableSchema_ == null - ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() - : tableSchema_; + return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : tableSchema_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -533,13 +435,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ - != com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.TYPE_UNSPECIFIED - .getNumber()) { + if (type_ != com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (createTime_ != null) { @@ -563,19 +464,21 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ - != com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + if (type_ != com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, type_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (commitTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCommitTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCommitTime()); } if (tableSchema_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTableSchema()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getTableSchema()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -585,27 +488,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.WriteStream)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.WriteStream other = - (com.google.cloud.bigquery.storage.v1beta2.WriteStream) obj; + com.google.cloud.bigquery.storage.v1beta2.WriteStream other = (com.google.cloud.bigquery.storage.v1beta2.WriteStream) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (type_ != other.type_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasCommitTime() != other.hasCommitTime()) return false; if (hasCommitTime()) { - if (!getCommitTime().equals(other.getCommitTime())) return false; + if (!getCommitTime() + .equals(other.getCommitTime())) return false; } if (hasTableSchema() != other.hasTableSchema()) return false; if (hasTableSchema()) { - if (!getTableSchema().equals(other.getTableSchema())) return false; + if (!getTableSchema() + .equals(other.getTableSchema())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -640,136 +546,129 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.bigquery.storage.v1beta2.WriteStream prototype) { + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.WriteStream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Information about a single stream that gets data inside the storage system.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.WriteStream} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.WriteStream) com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.WriteStream.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -795,9 +694,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto - .internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; } @java.lang.Override @@ -816,11 +715,8 @@ public com.google.cloud.bigquery.storage.v1beta2.WriteStream build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.WriteStream buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.WriteStream result = - new com.google.cloud.bigquery.storage.v1beta2.WriteStream(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.bigquery.storage.v1beta2.WriteStream result = new com.google.cloud.bigquery.storage.v1beta2.WriteStream(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -834,14 +730,19 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.WriteStream result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); + result.commitTime_ = commitTimeBuilder_ == null + ? commitTime_ + : commitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.tableSchema_ = - tableSchemaBuilder_ == null ? tableSchema_ : tableSchemaBuilder_.build(); + result.tableSchema_ = tableSchemaBuilder_ == null + ? tableSchema_ + : tableSchemaBuilder_.build(); } } @@ -849,39 +750,38 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.WriteStream public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.WriteStream) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.WriteStream) other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.WriteStream)other); } else { super.mergeFrom(other); return this; @@ -889,8 +789,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.WriteStream other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance()) - return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -934,43 +833,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getTableSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getCommitTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getTableSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -980,26 +879,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1008,22 +904,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1031,37 +926,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1071,22 +959,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1096,33 +980,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int type_ = 0; /** - * - * *
      * Immutable. Type of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ - @java.lang.Override - public int getTypeValue() { + @java.lang.Override public int getTypeValue() { return type_; } /** - * - * *
      * Immutable. Type of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1133,37 +1006,24 @@ public Builder setTypeValue(int value) { return this; } /** - * - * *
      * Immutable. Type of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type getType() { - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type result = - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.forNumber(type_); - return result == null - ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.UNRECOGNIZED - : result; + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type result = com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.forNumber(type_); + return result == null ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.UNRECOGNIZED : result; } /** - * - * *
      * Immutable. Type of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The type to set. * @return This builder for chaining. */ @@ -1177,16 +1037,11 @@ public Builder setType(com.google.cloud.bigquery.storage.v1beta2.WriteStream.Typ return this; } /** - * - * *
      * Immutable. Type of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearType() { @@ -1198,61 +1053,42 @@ public Builder clearType() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1268,18 +1104,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1290,22 +1123,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1318,16 +1147,12 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1340,16 +1165,12 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1357,50 +1178,38 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1408,13 +1217,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - commitTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1422,18 +1226,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1441,24 +1240,17 @@ public boolean hasCommitTime() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1466,9 +1258,7 @@ public com.google.protobuf.Timestamp getCommitTime() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { @@ -1484,8 +1274,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1493,11 +1281,10 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCommitTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimeBuilder_ == null) { commitTime_ = builderForValue.build(); } else { @@ -1508,8 +1295,6 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1517,15 +1302,13 @@ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForVal
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && commitTime_ != null - && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + commitTime_ != null && + commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCommitTimeBuilder().mergeFrom(value); } else { commitTime_ = value; @@ -1538,8 +1321,6 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1547,9 +1328,7 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCommitTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1562,8 +1341,6 @@ public Builder clearCommitTime() { return this; } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1571,9 +1348,7 @@ public Builder clearCommitTime() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { bitField0_ |= 0x00000008; @@ -1581,8 +1356,6 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { return getCommitTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1590,22 +1363,17 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { if (commitTimeBuilder_ != null) { return commitTimeBuilder_.getMessageOrBuilder(); } else { - return commitTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : commitTime_; + return commitTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } } /** - * - * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1613,22 +1381,17 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * means it is not committed.
      * 
* - * - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCommitTimeFieldBuilder() { if (commitTimeBuilder_ == null) { - commitTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCommitTime(), getParentForChildren(), isClean()); + commitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCommitTime(), + getParentForChildren(), + isClean()); commitTime_ = null; } return commitTimeBuilder_; @@ -1636,13 +1399,8 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { private com.google.cloud.bigquery.storage.v1beta2.TableSchema tableSchema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableSchema, - com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> - tableSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> tableSchemaBuilder_; /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1650,18 +1408,13 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tableSchema field is set. */ public boolean hasTableSchema() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1669,24 +1422,17 @@ public boolean hasTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tableSchema. */ public com.google.cloud.bigquery.storage.v1beta2.TableSchema getTableSchema() { if (tableSchemaBuilder_ == null) { - return tableSchema_ == null - ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() - : tableSchema_; + return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : tableSchema_; } else { return tableSchemaBuilder_.getMessage(); } } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1694,9 +1440,7 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema getTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableSchema value) { if (tableSchemaBuilder_ == null) { @@ -1712,8 +1456,6 @@ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableSch return this; } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1721,9 +1463,7 @@ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableSch
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setTableSchema( com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder builderForValue) { @@ -1737,8 +1477,6 @@ public Builder setTableSchema( return this; } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1746,16 +1484,13 @@ public Builder setTableSchema(
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableSchema value) { if (tableSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && tableSchema_ != null - && tableSchema_ - != com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + tableSchema_ != null && + tableSchema_ != com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) { getTableSchemaBuilder().mergeFrom(value); } else { tableSchema_ = value; @@ -1768,8 +1503,6 @@ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableS return this; } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1777,9 +1510,7 @@ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableS
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearTableSchema() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1792,8 +1523,6 @@ public Builder clearTableSchema() { return this; } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1801,9 +1530,7 @@ public Builder clearTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getTableSchemaBuilder() { bitField0_ |= 0x00000010; @@ -1811,8 +1538,6 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getTableSch return getTableSchemaFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1820,23 +1545,17 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getTableSch
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder - getTableSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getTableSchemaOrBuilder() { if (tableSchemaBuilder_ != null) { return tableSchemaBuilder_.getMessageOrBuilder(); } else { - return tableSchema_ == null - ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() - : tableSchema_; + return tableSchema_ == null ? + com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : tableSchema_; } } /** - * - * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1844,29 +1563,24 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getTableSch
      * The table schema could go out of date during the life time of the stream.
      * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableSchema, - com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> getTableSchemaFieldBuilder() { if (tableSchemaBuilder_ == null) { - tableSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableSchema, - com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, - com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>( - getTableSchema(), getParentForChildren(), isClean()); + tableSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>( + getTableSchema(), + getParentForChildren(), + isClean()); tableSchema_ = null; } return tableSchemaBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1876,12 +1590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.WriteStream) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.WriteStream) private static final com.google.cloud.bigquery.storage.v1beta2.WriteStream DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.WriteStream(); } @@ -1890,27 +1604,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.WriteStream getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1925,4 +1639,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.WriteStream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java similarity index 71% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java index ec38e1c726..8c42317d9a 100644 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java +++ b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java @@ -1,128 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface WriteStreamOrBuilder - extends +public interface WriteStreamOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.WriteStream) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Immutable. Type of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** - * - * *
    * Immutable. Type of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; * @return The type. */ com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type getType(); /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -130,15 +86,11 @@ public interface WriteStreamOrBuilder
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -146,15 +98,11 @@ public interface WriteStreamOrBuilder
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** - * - * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -162,14 +110,11 @@ public interface WriteStreamOrBuilder
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder(); /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -177,16 +122,11 @@ public interface WriteStreamOrBuilder
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the tableSchema field is set. */ boolean hasTableSchema(); /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -194,16 +134,11 @@ public interface WriteStreamOrBuilder
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The tableSchema. */ com.google.cloud.bigquery.storage.v1beta2.TableSchema getTableSchema(); /** - * - * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -211,9 +146,7 @@ public interface WriteStreamOrBuilder
    * The table schema could go out of date during the life time of the stream.
    * 
* - * - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getTableSchemaOrBuilder(); } diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/stream.proto b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/stream.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/stream.proto rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/stream.proto diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/table.proto b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/table.proto similarity index 100% rename from proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/table.proto rename to owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/table.proto diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java deleted file mode 100644 index 6d3ceebf99..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/annotations.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class AnnotationsProto { - private AnnotationsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { - registry.add(com.google.cloud.bigquery.storage.v1.AnnotationsProto.columnName); - } - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static final int COLUMN_NAME_FIELD_NUMBER = 454943157; - /** - * - * - *
-   * Setting the column_name extension allows users to reference
-   * bigquery column independently of the field name in the protocol buffer
-   * message.
-   * The intended use of this annotation is to reference a destination column
-   * named using characters unavailable for protobuf field names (e.g. unicode
-   * characters).
-   * More details about BigQuery naming limitations can be found here:
-   * https://cloud.google.com/bigquery/docs/schemas#column_names
-   * This extension is currently experimental.
-   * 
- * - * extend .google.protobuf.FieldOptions { ... } - */ - public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, java.lang.String> - columnName = - com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( - java.lang.String.class, null); - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/bigquery/storage/v1/annot" - + "ations.proto\022 google.cloud.bigquery.stor" - + "age.v1\032 google/protobuf/descriptor.proto" - + ":9\n\013column_name\022\035.google.protobuf.FieldO" - + "ptions\030\265\303\367\330\001 \001(\t\210\001\001B\300\001\n$com.google.cloud" - + ".bigquery.storage.v1B\020AnnotationsProtoP\001" - + "Z>cloud.google.com/go/bigquery/storage/a" - + "piv1/storagepb;storagepb\252\002 Google.Cloud." - + "BigQuery.Storage.V1\312\002 Google\\Cloud\\BigQu" - + "ery\\Storage\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DescriptorProtos.getDescriptor(), - }); - columnName.internalInit(descriptor.getExtensions().get(0)); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java deleted file mode 100644 index a8d38d4b29..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/arrow.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class ArrowProto { - private ArrowProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/bigquery/storage/v1/arrow" - + ".proto\022 google.cloud.bigquery.storage.v1" - + "\"(\n\013ArrowSchema\022\031\n\021serialized_schema\030\001 \001" - + "(\014\"J\n\020ArrowRecordBatch\022\037\n\027serialized_rec" - + "ord_batch\030\001 \001(\014\022\025\n\trow_count\030\002 \001(\003B\002\030\001\"\317" - + "\001\n\031ArrowSerializationOptions\022h\n\022buffer_c" - + "ompression\030\002 \001(\0162L.google.cloud.bigquery" - + ".storage.v1.ArrowSerializationOptions.Co" - + "mpressionCodec\"H\n\020CompressionCodec\022\033\n\027CO" - + "MPRESSION_UNSPECIFIED\020\000\022\r\n\tLZ4_FRAME\020\001\022\010" - + "\n\004ZSTD\020\002B\272\001\n$com.google.cloud.bigquery.s" - + "torage.v1B\nArrowProtoP\001Z>cloud.google.co" - + "m/go/bigquery/storage/apiv1/storagepb;st" - + "oragepb\252\002 Google.Cloud.BigQuery.Storage." - + "V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1b\006p" - + "roto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor, - new java.lang.String[] { - "SerializedSchema", - }); - internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor, - new java.lang.String[] { - "SerializedRecordBatch", "RowCount", - }); - internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor, - new java.lang.String[] { - "BufferCompression", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java deleted file mode 100644 index d123329e39..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/arrow.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface ArrowSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowSchema) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * IPC serialized Arrow schema.
-   * 
- * - * bytes serialized_schema = 1; - * - * @return The serializedSchema. - */ - com.google.protobuf.ByteString getSerializedSchema(); -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java deleted file mode 100644 index 5f83ffa62b..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/arrow.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface ArrowSerializationOptionsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The compression codec to use for Arrow buffers in serialized record
-   * batches.
-   * 
- * - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * - * - * @return The enum numeric value on the wire for bufferCompression. - */ - int getBufferCompressionValue(); - /** - * - * - *
-   * The compression codec to use for Arrow buffers in serialized record
-   * batches.
-   * 
- * - * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * - * - * @return The bufferCompression. - */ - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec - getBufferCompression(); -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java deleted file mode 100644 index a47b485fef..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/avro.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class AvroProto { - private AvroProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/bigquery/storage/v1/avro." - + "proto\022 google.cloud.bigquery.storage.v1\"" - + "\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"A\n\010AvroRow" - + "s\022\036\n\026serialized_binary_rows\030\001 \001(\014\022\025\n\trow" - + "_count\030\002 \001(\003B\002\030\001\"A\n\030AvroSerializationOpt" - + "ions\022%\n\035enable_display_name_attribute\030\001 " - + "\001(\010B\271\001\n$com.google.cloud.bigquery.storag" - + "e.v1B\tAvroProtoP\001Z>cloud.google.com/go/b" - + "igquery/storage/apiv1/storagepb;storagep" - + "b\252\002 Google.Cloud.BigQuery.Storage.V1\312\002 G" - + "oogle\\Cloud\\BigQuery\\Storage\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor, - new java.lang.String[] { - "Schema", - }); - internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor, - new java.lang.String[] { - "SerializedBinaryRows", "RowCount", - }); - internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor, - new java.lang.String[] { - "EnableDisplayNameAttribute", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java deleted file mode 100644 index 6effd88b9c..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface CreateWriteStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Reference to the table to which the stream belongs, in the format
-   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Reference to the table to which the stream belongs, in the format
-   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Stream to be created.
-   * 
- * - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the writeStream field is set. - */ - boolean hasWriteStream(); - /** - * - * - *
-   * Required. Stream to be created.
-   * 
- * - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The writeStream. - */ - com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream(); - /** - * - * - *
-   * Required. Stream to be created.
-   * 
- * - * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder getWriteStreamOrBuilder(); -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java deleted file mode 100644 index 524f55e500..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface FinalizeWriteStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the stream to finalize, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the stream to finalize, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java deleted file mode 100644 index 3da951565e..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface FinalizeWriteStreamResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of rows in the finalized stream.
-   * 
- * - * int64 row_count = 1; - * - * @return The rowCount. - */ - long getRowCount(); -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java deleted file mode 100644 index 9608099deb..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface FlushRowsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FlushRowsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The rows before this offset (including this offset) are flushed.
-   * 
- * - * int64 offset = 1; - * - * @return The offset. - */ - long getOffset(); -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java deleted file mode 100644 index 4f0d833af4..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/protobuf.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class ProtoBufProto { - private ProtoBufProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n/google/cloud/bigquery/storage/v1/proto" - + "buf.proto\022 google.cloud.bigquery.storage" - + ".v1\032 google/protobuf/descriptor.proto\"I\n" - + "\013ProtoSchema\022:\n\020proto_descriptor\030\001 \001(\0132 " - + ".google.protobuf.DescriptorProto\"$\n\tProt" - + "oRows\022\027\n\017serialized_rows\030\001 \003(\014B\275\001\n$com.g" - + "oogle.cloud.bigquery.storage.v1B\rProtoBu" - + "fProtoP\001Z>cloud.google.com/go/bigquery/s" - + "torage/apiv1/storagepb;storagepb\252\002 Googl" - + "e.Cloud.BigQuery.Storage.V1\312\002 Google\\Clo" - + "ud\\BigQuery\\Storage\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DescriptorProtos.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor, - new java.lang.String[] { - "ProtoDescriptor", - }); - internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor, - new java.lang.String[] { - "SerializedRows", - }); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java deleted file mode 100644 index ae6058f280..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface ReadRowsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadRowsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Stream to read rows from.
-   * 
- * - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The readStream. - */ - java.lang.String getReadStream(); - /** - * - * - *
-   * Required. Stream to read rows from.
-   * 
- * - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for readStream. - */ - com.google.protobuf.ByteString getReadStreamBytes(); - - /** - * - * - *
-   * The offset requested must be less than the last row read from Read.
-   * Requesting a larger offset is undefined. If not specified, start reading
-   * from offset zero.
-   * 
- * - * int64 offset = 2; - * - * @return The offset. - */ - long getOffset(); -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java deleted file mode 100644 index ffeebe47b4..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java +++ /dev/null @@ -1,557 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class StorageProto { - private StorageProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n.google/cloud/bigquery/storage/v1/stora" - + "ge.proto\022 google.cloud.bigquery.storage." - + "v1\032\034google/api/annotations.proto\032\027google" - + "/api/client.proto\032\037google/api/field_beha" - + "vior.proto\032\031google/api/resource.proto\032,g" - + "oogle/cloud/bigquery/storage/v1/arrow.pr" - + "oto\032+google/cloud/bigquery/storage/v1/av" - + "ro.proto\032/google/cloud/bigquery/storage/" - + "v1/protobuf.proto\032-google/cloud/bigquery" - + "/storage/v1/stream.proto\032,google/cloud/b" - + "igquery/storage/v1/table.proto\032\037google/p" - + "rotobuf/timestamp.proto\032\036google/protobuf" - + "/wrappers.proto\032\027google/rpc/status.proto" - + "\"\347\001\n\030CreateReadSessionRequest\022C\n\006parent\030" - + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" - + "leapis.com/Project\022H\n\014read_session\030\002 \001(\013" - + "2-.google.cloud.bigquery.storage.v1.Read" - + "SessionB\003\340A\002\022\030\n\020max_stream_count\030\003 \001(\005\022\"" - + "\n\032preferred_min_stream_count\030\004 \001(\005\"i\n\017Re" - + "adRowsRequest\022F\n\013read_stream\030\001 \001(\tB1\340A\002\372" - + "A+\n)bigquerystorage.googleapis.com/ReadS" - + "tream\022\016\n\006offset\030\002 \001(\003\")\n\rThrottleState\022\030" - + "\n\020throttle_percent\030\001 \001(\005\"\227\001\n\013StreamStats" - + "\022H\n\010progress\030\002 \001(\01326.google.cloud.bigque" - + "ry.storage.v1.StreamStats.Progress\032>\n\010Pr" - + "ogress\022\031\n\021at_response_start\030\001 \001(\001\022\027\n\017at_" - + "response_end\030\002 \001(\001\"\347\003\n\020ReadRowsResponse\022" - + "?\n\tavro_rows\030\003 \001(\0132*.google.cloud.bigque" - + "ry.storage.v1.AvroRowsH\000\022P\n\022arrow_record" - + "_batch\030\004 \001(\01322.google.cloud.bigquery.sto" - + "rage.v1.ArrowRecordBatchH\000\022\021\n\trow_count\030" - + "\006 \001(\003\022<\n\005stats\030\002 \001(\0132-.google.cloud.bigq" - + "uery.storage.v1.StreamStats\022G\n\016throttle_" - + "state\030\005 \001(\0132/.google.cloud.bigquery.stor" - + "age.v1.ThrottleState\022H\n\013avro_schema\030\007 \001(" - + "\0132,.google.cloud.bigquery.storage.v1.Avr" - + "oSchemaB\003\340A\003H\001\022J\n\014arrow_schema\030\010 \001(\0132-.g" - + "oogle.cloud.bigquery.storage.v1.ArrowSch" - + "emaB\003\340A\003H\001B\006\n\004rowsB\010\n\006schema\"k\n\026SplitRea" - + "dStreamRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)bi" - + "gquerystorage.googleapis.com/ReadStream\022" - + "\020\n\010fraction\030\002 \001(\001\"\247\001\n\027SplitReadStreamRes" - + "ponse\022D\n\016primary_stream\030\001 \001(\0132,.google.c" - + "loud.bigquery.storage.v1.ReadStream\022F\n\020r" - + "emainder_stream\030\002 \001(\0132,.google.cloud.big" - + "query.storage.v1.ReadStream\"\233\001\n\030CreateWr" - + "iteStreamRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" - + "\n\035bigquery.googleapis.com/Table\022H\n\014write" - + "_stream\030\002 \001(\0132-.google.cloud.bigquery.st" - + "orage.v1.WriteStreamB\003\340A\002\"\211\006\n\021AppendRows" - + "Request\022H\n\014write_stream\030\001 \001(\tB2\340A\002\372A,\n*b" - + "igquerystorage.googleapis.com/WriteStrea" - + "m\022+\n\006offset\030\002 \001(\0132\033.google.protobuf.Int6" - + "4Value\022S\n\nproto_rows\030\004 \001(\0132=.google.clou" - + "d.bigquery.storage.v1.AppendRowsRequest." - + "ProtoDataH\000\022\020\n\010trace_id\030\006 \001(\t\022{\n\035missing" - + "_value_interpretations\030\007 \003(\0132T.google.cl" - + "oud.bigquery.storage.v1.AppendRowsReques" - + "t.MissingValueInterpretationsEntry\032\214\001\n\tP" - + "rotoData\022D\n\rwriter_schema\030\001 \001(\0132-.google" - + ".cloud.bigquery.storage.v1.ProtoSchema\0229" - + "\n\004rows\030\002 \001(\0132+.google.cloud.bigquery.sto" - + "rage.v1.ProtoRows\032\222\001\n MissingValueInterp" - + "retationsEntry\022\013\n\003key\030\001 \001(\t\022]\n\005value\030\002 \001" - + "(\0162N.google.cloud.bigquery.storage.v1.Ap" - + "pendRowsRequest.MissingValueInterpretati" - + "on:\0028\001\"m\n\032MissingValueInterpretation\022,\n(" - + "MISSING_VALUE_INTERPRETATION_UNSPECIFIED" - + "\020\000\022\016\n\nNULL_VALUE\020\001\022\021\n\rDEFAULT_VALUE\020\002B\006\n" - + "\004rows\"\373\002\n\022AppendRowsResponse\022Z\n\rappend_r" - + "esult\030\001 \001(\0132A.google.cloud.bigquery.stor" - + "age.v1.AppendRowsResponse.AppendResultH\000" - + "\022#\n\005error\030\002 \001(\0132\022.google.rpc.StatusH\000\022E\n" - + "\016updated_schema\030\003 \001(\0132-.google.cloud.big" - + "query.storage.v1.TableSchema\022>\n\nrow_erro" - + "rs\030\004 \003(\0132*.google.cloud.bigquery.storage" - + ".v1.RowError\022\024\n\014write_stream\030\005 \001(\t\032;\n\014Ap" - + "pendResult\022+\n\006offset\030\001 \001(\0132\033.google.prot" - + "obuf.Int64ValueB\n\n\010response\"\232\001\n\025GetWrite" - + "StreamRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*big" - + "querystorage.googleapis.com/WriteStream\022" - + "?\n\004view\030\003 \001(\01621.google.cloud.bigquery.st" - + "orage.v1.WriteStreamView\"s\n\036BatchCommitW" - + "riteStreamsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372" - + "A\037\n\035bigquery.googleapis.com/Table\022\032\n\rwri" - + "te_streams\030\002 \003(\tB\003\340A\002\"\231\001\n\037BatchCommitWri" - + "teStreamsResponse\022/\n\013commit_time\030\001 \001(\0132\032" - + ".google.protobuf.Timestamp\022E\n\rstream_err" - + "ors\030\002 \003(\0132..google.cloud.bigquery.storag" - + "e.v1.StorageError\"^\n\032FinalizeWriteStream" - + "Request\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquerys" - + "torage.googleapis.com/WriteStream\"0\n\033Fin" - + "alizeWriteStreamResponse\022\021\n\trow_count\030\001 " - + "\001(\003\"\211\001\n\020FlushRowsRequest\022H\n\014write_stream" - + "\030\001 \001(\tB2\340A\002\372A,\n*bigquerystorage.googleap" - + "is.com/WriteStream\022+\n\006offset\030\002 \001(\0132\033.goo" - + "gle.protobuf.Int64Value\"#\n\021FlushRowsResp" - + "onse\022\016\n\006offset\030\001 \001(\003\"\245\003\n\014StorageError\022M\n" - + "\004code\030\001 \001(\0162?.google.cloud.bigquery.stor" - + "age.v1.StorageError.StorageErrorCode\022\016\n\006" - + "entity\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\"\236\002\n\020" - + "StorageErrorCode\022\"\n\036STORAGE_ERROR_CODE_U" - + "NSPECIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STR" - + "EAM_ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FO" - + "UND\020\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALI" - + "D_STREAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\006\022 " - + "\n\034SCHEMA_MISMATCH_EXTRA_FIELDS\020\007\022\031\n\025OFFS" - + "ET_ALREADY_EXISTS\020\010\022\027\n\023OFFSET_OUT_OF_RAN" - + "GE\020\t\"\263\001\n\010RowError\022\r\n\005index\030\001 \001(\003\022E\n\004code" - + "\030\002 \001(\01627.google.cloud.bigquery.storage.v" - + "1.RowError.RowErrorCode\022\017\n\007message\030\003 \001(\t" - + "\"@\n\014RowErrorCode\022\036\n\032ROW_ERROR_CODE_UNSPE" - + "CIFIED\020\000\022\020\n\014FIELDS_ERROR\020\0012\222\006\n\014BigQueryR" - + "ead\022\351\001\n\021CreateReadSession\022:.google.cloud" - + ".bigquery.storage.v1.CreateReadSessionRe" - + "quest\032-.google.cloud.bigquery.storage.v1" - + ".ReadSession\"i\202\323\344\223\002<\"7/v1/{read_session." - + "table=projects/*/datasets/*/tables/*}:\001*" - + "\332A$parent,read_session,max_stream_count\022" - + "\317\001\n\010ReadRows\0221.google.cloud.bigquery.sto" - + "rage.v1.ReadRowsRequest\0322.google.cloud.b" - + "igquery.storage.v1.ReadRowsResponse\"Z\202\323\344" - + "\223\002?\022=/v1/{read_stream=projects/*/locatio" - + "ns/*/sessions/*/streams/*}\332A\022read_stream" - + ",offset0\001\022\306\001\n\017SplitReadStream\0228.google.c" - + "loud.bigquery.storage.v1.SplitReadStream" - + "Request\0329.google.cloud.bigquery.storage." - + "v1.SplitReadStreamResponse\">\202\323\344\223\0028\0226/v1/" - + "{name=projects/*/locations/*/sessions/*/" - + "streams/*}\032{\312A\036bigquerystorage.googleapi" - + "s.com\322AWhttps://www.googleapis.com/auth/" - + "bigquery,https://www.googleapis.com/auth" - + "/cloud-platform2\274\013\n\rBigQueryWrite\022\327\001\n\021Cr" - + "eateWriteStream\022:.google.cloud.bigquery." - + "storage.v1.CreateWriteStreamRequest\032-.go" - + "ogle.cloud.bigquery.storage.v1.WriteStre" - + "am\"W\202\323\344\223\002;\"+/v1/{parent=projects/*/datas" - + "ets/*/tables/*}:\014write_stream\332A\023parent,w" - + "rite_stream\022\322\001\n\nAppendRows\0223.google.clou" - + "d.bigquery.storage.v1.AppendRowsRequest\032" - + "4.google.cloud.bigquery.storage.v1.Appen" - + "dRowsResponse\"U\202\323\344\223\002@\";/v1/{write_stream" - + "=projects/*/datasets/*/tables/*/streams/" - + "*}:\001*\332A\014write_stream(\0010\001\022\277\001\n\016GetWriteStr" - + "eam\0227.google.cloud.bigquery.storage.v1.G" - + "etWriteStreamRequest\032-.google.cloud.bigq" - + "uery.storage.v1.WriteStream\"E\202\323\344\223\0028\"3/v1" - + "/{name=projects/*/datasets/*/tables/*/st" - + "reams/*}:\001*\332A\004name\022\331\001\n\023FinalizeWriteStre" - + "am\022<.google.cloud.bigquery.storage.v1.Fi" - + "nalizeWriteStreamRequest\032=.google.cloud." - + "bigquery.storage.v1.FinalizeWriteStreamR" - + "esponse\"E\202\323\344\223\0028\"3/v1/{name=projects/*/da" - + "tasets/*/tables/*/streams/*}:\001*\332A\004name\022\334" - + "\001\n\027BatchCommitWriteStreams\022@.google.clou" - + "d.bigquery.storage.v1.BatchCommitWriteSt" - + "reamsRequest\032A.google.cloud.bigquery.sto" - + "rage.v1.BatchCommitWriteStreamsResponse\"" - + "<\202\323\344\223\002-\022+/v1/{parent=projects/*/datasets" - + "/*/tables/*}\332A\006parent\022\313\001\n\tFlushRows\0222.go" - + "ogle.cloud.bigquery.storage.v1.FlushRows" - + "Request\0323.google.cloud.bigquery.storage." - + "v1.FlushRowsResponse\"U\202\323\344\223\002@\";/v1/{write" - + "_stream=projects/*/datasets/*/tables/*/s" - + "treams/*}:\001*\332A\014write_stream\032\260\001\312A\036bigquer" - + "ystorage.googleapis.com\322A\213\001https://www.g" - + "oogleapis.com/auth/bigquery,https://www." - + "googleapis.com/auth/bigquery.insertdata," - + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\224\002\n$com.google.cloud.bigquery.sto" - + "rage.v1B\014StorageProtoP\001Z>cloud.google.co" - + "m/go/bigquery/storage/apiv1/storagepb;st" - + "oragepb\252\002 Google.Cloud.BigQuery.Storage." - + "V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1\352AU" - + "\n\035bigquery.googleapis.com/Table\0224project" - + "s/{project}/datasets/{dataset}/tables/{t" - + "able}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.ProtoBufProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor, - new java.lang.String[] { - "Parent", "ReadSession", "MaxStreamCount", "PreferredMinStreamCount", - }); - internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor, - new java.lang.String[] { - "ReadStream", "Offset", - }); - internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor, - new java.lang.String[] { - "ThrottlePercent", - }); - internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor, - new java.lang.String[] { - "Progress", - }); - internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor = - internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor, - new java.lang.String[] { - "AtResponseStart", "AtResponseEnd", - }); - internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor, - new java.lang.String[] { - "AvroRows", - "ArrowRecordBatch", - "RowCount", - "Stats", - "ThrottleState", - "AvroSchema", - "ArrowSchema", - "Rows", - "Schema", - }); - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor, - new java.lang.String[] { - "Name", "Fraction", - }); - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor, - new java.lang.String[] { - "PrimaryStream", "RemainderStream", - }); - internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor, - new java.lang.String[] { - "Parent", "WriteStream", - }); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor, - new java.lang.String[] { - "WriteStream", - "Offset", - "ProtoRows", - "TraceId", - "MissingValueInterpretations", - "Rows", - }); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor = - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor, - new java.lang.String[] { - "WriterSchema", "Rows", - }); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor = - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor, - new java.lang.String[] { - "AppendResult", "Error", "UpdatedSchema", "RowErrors", "WriteStream", "Response", - }); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor = - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor, - new java.lang.String[] { - "Offset", - }); - internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor, - new java.lang.String[] { - "Name", "View", - }); - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor, - new java.lang.String[] { - "Parent", "WriteStreams", - }); - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor, - new java.lang.String[] { - "CommitTime", "StreamErrors", - }); - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor, - new java.lang.String[] { - "RowCount", - }); - internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor, - new java.lang.String[] { - "WriteStream", "Offset", - }); - internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor, - new java.lang.String[] { - "Offset", - }); - internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor, - new java.lang.String[] { - "Code", "Entity", "ErrorMessage", - }); - internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor, - new java.lang.String[] { - "Index", "Code", "Message", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.ProtoBufProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java deleted file mode 100644 index e0c8734f3f..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/stream.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class StreamProto { - private StreamProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/bigquery/storage/v1/strea" - + "m.proto\022 google.cloud.bigquery.storage.v" - + "1\032\037google/api/field_behavior.proto\032\031goog" - + "le/api/resource.proto\032,google/cloud/bigq" - + "uery/storage/v1/arrow.proto\032+google/clou" - + "d/bigquery/storage/v1/avro.proto\032,google" - + "/cloud/bigquery/storage/v1/table.proto\032\037" - + "google/protobuf/timestamp.proto\"\304\t\n\013Read" - + "Session\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013expire_tim" - + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022F\n\013data_format\030\003 \001(\0162,.google.cloud.big" - + "query.storage.v1.DataFormatB\003\340A\005\022H\n\013avro" - + "_schema\030\004 \001(\0132,.google.cloud.bigquery.st" - + "orage.v1.AvroSchemaB\003\340A\003H\000\022J\n\014arrow_sche" - + "ma\030\005 \001(\0132-.google.cloud.bigquery.storage" - + ".v1.ArrowSchemaB\003\340A\003H\000\0224\n\005table\030\006 \001(\tB%\340" - + "A\005\372A\037\n\035bigquery.googleapis.com/Table\022Z\n\017" - + "table_modifiers\030\007 \001(\0132<.google.cloud.big" - + "query.storage.v1.ReadSession.TableModifi" - + "ersB\003\340A\001\022Y\n\014read_options\030\010 \001(\0132>.google." - + "cloud.bigquery.storage.v1.ReadSession.Ta" - + "bleReadOptionsB\003\340A\001\022B\n\007streams\030\n \003(\0132,.g" - + "oogle.cloud.bigquery.storage.v1.ReadStre" - + "amB\003\340A\003\022*\n\035estimated_total_bytes_scanned" - + "\030\014 \001(\003B\003\340A\003\022 \n\023estimated_row_count\030\016 \001(\003" - + "B\003\340A\003\022\025\n\010trace_id\030\r \001(\tB\003\340A\001\032C\n\016TableMod" - + "ifiers\0221\n\rsnapshot_time\030\001 \001(\0132\032.google.p" - + "rotobuf.Timestamp\032\273\002\n\020TableReadOptions\022\027" - + "\n\017selected_fields\030\001 \003(\t\022\027\n\017row_restricti" - + "on\030\002 \001(\t\022g\n\033arrow_serialization_options\030" - + "\003 \001(\0132;.google.cloud.bigquery.storage.v1" - + ".ArrowSerializationOptionsB\003\340A\001H\000\022e\n\032avr" - + "o_serialization_options\030\004 \001(\0132:.google.c" - + "loud.bigquery.storage.v1.AvroSerializati" - + "onOptionsB\003\340A\001H\000B%\n#output_format_serial" - + "ization_options:k\352Ah\n*bigquerystorage.go" - + "ogleapis.com/ReadSession\022:projects/{proj" - + "ect}/locations/{location}/sessions/{sess" - + "ion}B\010\n\006schema\"\234\001\n\nReadStream\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\003:{\352Ax\n)bigquerystorage.googleapi" - + "s.com/ReadStream\022Kprojects/{project}/loc" - + "ations/{location}/sessions/{session}/str" - + "eams/{stream}\"\373\004\n\013WriteStream\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\003\022E\n\004type\030\002 \001(\01622.google.cloud.bi" - + "gquery.storage.v1.WriteStream.TypeB\003\340A\005\022" - + "4\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\0224\n\013commit_time\030\004 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\022H\n\014table_sch" - + "ema\030\005 \001(\0132-.google.cloud.bigquery.storag" - + "e.v1.TableSchemaB\003\340A\003\022P\n\nwrite_mode\030\007 \001(" - + "\01627.google.cloud.bigquery.storage.v1.Wri" - + "teStream.WriteModeB\003\340A\005\022\025\n\010location\030\010 \001(" - + "\tB\003\340A\005\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\t" - + "COMMITTED\020\001\022\013\n\007PENDING\020\002\022\014\n\010BUFFERED\020\003\"3" - + "\n\tWriteMode\022\032\n\026WRITE_MODE_UNSPECIFIED\020\000\022" - + "\n\n\006INSERT\020\001:v\352As\n*bigquerystorage.google" - + "apis.com/WriteStream\022Eprojects/{project}" - + "/datasets/{dataset}/tables/{table}/strea" - + "ms/{stream}*>\n\nDataFormat\022\033\n\027DATA_FORMAT" - + "_UNSPECIFIED\020\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\002*I\n\017W" - + "riteStreamView\022!\n\035WRITE_STREAM_VIEW_UNSP" - + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002B\273\001\n$com.g" - + "oogle.cloud.bigquery.storage.v1B\013StreamP" - + "rotoP\001Z>cloud.google.com/go/bigquery/sto" - + "rage/apiv1/storagepb;storagepb\252\002 Google." - + "Cloud.BigQuery.Storage.V1\312\002 Google\\Cloud" - + "\\BigQuery\\Storage\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor, - new java.lang.String[] { - "Name", - "ExpireTime", - "DataFormat", - "AvroSchema", - "ArrowSchema", - "Table", - "TableModifiers", - "ReadOptions", - "Streams", - "EstimatedTotalBytesScanned", - "EstimatedRowCount", - "TraceId", - "Schema", - }); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor = - internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor, - new java.lang.String[] { - "SnapshotTime", - }); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor = - internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor, - new java.lang.String[] { - "SelectedFields", - "RowRestriction", - "ArrowSerializationOptions", - "AvroSerializationOptions", - "OutputFormatSerializationOptions", - }); - internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor, - new java.lang.String[] { - "Name", "Type", "CreateTime", "CommitTime", "TableSchema", "WriteMode", "Location", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java deleted file mode 100644 index cae3e55f1b..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/table.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class TableProto { - private TableProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/bigquery/storage/v1/table" - + ".proto\022 google.cloud.bigquery.storage.v1" - + "\032\037google/api/field_behavior.proto\"Q\n\013Tab" - + "leSchema\022B\n\006fields\030\001 \003(\01322.google.cloud." - + "bigquery.storage.v1.TableFieldSchema\"\254\005\n" - + "\020TableFieldSchema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022J\n\004" - + "type\030\002 \001(\01627.google.cloud.bigquery.stora" - + "ge.v1.TableFieldSchema.TypeB\003\340A\002\022J\n\004mode" - + "\030\003 \001(\01627.google.cloud.bigquery.storage.v" - + "1.TableFieldSchema.ModeB\003\340A\001\022G\n\006fields\030\004" - + " \003(\01322.google.cloud.bigquery.storage.v1." - + "TableFieldSchemaB\003\340A\001\022\030\n\013description\030\006 \001" - + "(\tB\003\340A\001\022\027\n\nmax_length\030\007 \001(\003B\003\340A\001\022\026\n\tprec" - + "ision\030\010 \001(\003B\003\340A\001\022\022\n\005scale\030\t \001(\003B\003\340A\001\022%\n\030" - + "default_value_expression\030\n \001(\tB\003\340A\001\"\325\001\n\004" - + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\t" - + "\n\005INT64\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRUCT\020\004\022\t\n\005BYT" - + "ES\020\005\022\010\n\004BOOL\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020\010\022" - + "\010\n\004TIME\020\t\022\014\n\010DATETIME\020\n\022\r\n\tGEOGRAPHY\020\013\022\013" - + "\n\007NUMERIC\020\014\022\016\n\nBIGNUMERIC\020\r\022\014\n\010INTERVAL\020" - + "\016\022\010\n\004JSON\020\017\"F\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" - + "\000\022\014\n\010NULLABLE\020\001\022\014\n\010REQUIRED\020\002\022\014\n\010REPEATE" - + "D\020\003B\272\001\n$com.google.cloud.bigquery.storag" - + "e.v1B\nTableProtoP\001Z>cloud.google.com/go/" - + "bigquery/storage/apiv1/storagepb;storage" - + "pb\252\002 Google.Cloud.BigQuery.Storage.V1\312\002 " - + "Google\\Cloud\\BigQuery\\Storage\\V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor, - new java.lang.String[] { - "Fields", - }); - internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor, - new java.lang.String[] { - "Name", - "Type", - "Mode", - "Fields", - "Description", - "MaxLength", - "Precision", - "Scale", - "DefaultValueExpression", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java deleted file mode 100644 index 2a6497bc37..0000000000 --- a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface ThrottleStateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ThrottleState) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * How much this connection is being throttled. Zero means no throttling,
-   * 100 means fully throttled.
-   * 
- * - * int32 throttle_percent = 1; - * - * @return The throttlePercent. - */ - int getThrottlePercent(); -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java deleted file mode 100644 index f0e4dbda3d..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/arrow.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class ArrowProto { - private ArrowProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/bigquery/storage/v1beta2/" - + "arrow.proto\022%google.cloud.bigquery.stora" - + "ge.v1beta2\"(\n\013ArrowSchema\022\031\n\021serialized_" - + "schema\030\001 \001(\014\"3\n\020ArrowRecordBatch\022\037\n\027seri" - + "alized_record_batch\030\001 \001(\014\"\266\001\n\031ArrowSeria" - + "lizationOptions\022W\n\006format\030\001 \001(\0162G.google" - + ".cloud.bigquery.storage.v1beta2.ArrowSer" - + "ializationOptions.Format\"@\n\006Format\022\026\n\022FO" - + "RMAT_UNSPECIFIED\020\000\022\016\n\nARROW_0_14\020\001\022\016\n\nAR" - + "ROW_0_15\020\002B~\n)com.google.cloud.bigquery." - + "storage.v1beta2B\nArrowProtoP\001ZCcloud.goo" - + "gle.com/go/bigquery/storage/apiv1beta2/s" - + "toragepb;storagepbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor, - new java.lang.String[] { - "SerializedSchema", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor, - new java.lang.String[] { - "SerializedRecordBatch", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor, - new java.lang.String[] { - "Format", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java deleted file mode 100644 index 925d8960ed..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/arrow.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface ArrowRecordBatchOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * IPC-serialized Arrow RecordBatch.
-   * 
- * - * bytes serialized_record_batch = 1; - * - * @return The serializedRecordBatch. - */ - com.google.protobuf.ByteString getSerializedRecordBatch(); -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java deleted file mode 100644 index 0efaa1b6b1..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/arrow.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface ArrowSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowSchema) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * IPC serialized Arrow schema.
-   * 
- * - * bytes serialized_schema = 1; - * - * @return The serializedSchema. - */ - com.google.protobuf.ByteString getSerializedSchema(); -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java deleted file mode 100644 index b1eed9af9f..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/avro.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class AvroProto { - private AvroProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/bigquery/storage/v1beta2/" - + "avro.proto\022%google.cloud.bigquery.storag" - + "e.v1beta2\"\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"" - + "*\n\010AvroRows\022\036\n\026serialized_binary_rows\030\001 " - + "\001(\014B}\n)com.google.cloud.bigquery.storage" - + ".v1beta2B\tAvroProtoP\001ZCcloud.google.com/" - + "go/bigquery/storage/apiv1beta2/storagepb" - + ";storagepbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor, - new java.lang.String[] { - "Schema", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor, - new java.lang.String[] { - "SerializedBinaryRows", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java deleted file mode 100644 index 04aefb5227..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/avro.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface AvroRowsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AvroRows) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Binary serialized rows in a block.
-   * 
- * - * bytes serialized_binary_rows = 1; - * - * @return The serializedBinaryRows. - */ - com.google.protobuf.ByteString getSerializedBinaryRows(); -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java deleted file mode 100644 index a3da6246c0..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface CreateWriteStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Reference to the table to which the stream belongs, in the format
-   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Reference to the table to which the stream belongs, in the format
-   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Stream to be created.
-   * 
- * - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the writeStream field is set. - */ - boolean hasWriteStream(); - /** - * - * - *
-   * Required. Stream to be created.
-   * 
- * - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The writeStream. - */ - com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream(); - /** - * - * - *
-   * Required. Stream to be created.
-   * 
- * - * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder getWriteStreamOrBuilder(); -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java deleted file mode 100644 index 97b7766ee2..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface FinalizeWriteStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the stream to finalize, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the stream to finalize, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java deleted file mode 100644 index edde5731e3..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface FinalizeWriteStreamResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of rows in the finalized stream.
-   * 
- * - * int64 row_count = 1; - * - * @return The rowCount. - */ - long getRowCount(); -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java deleted file mode 100644 index 4d03275479..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface FlushRowsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The rows before this offset (including this offset) are flushed.
-   * 
- * - * int64 offset = 1; - * - * @return The offset. - */ - long getOffset(); -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java deleted file mode 100644 index 737f72b512..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface GetWriteStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the stream to get, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the stream to get, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java deleted file mode 100644 index 20e1c25c82..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/protobuf.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class ProtoBufProto { - private ProtoBufProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/bigquery/storage/v1beta2/" - + "protobuf.proto\022%google.cloud.bigquery.st" - + "orage.v1beta2\032 google/protobuf/descripto" - + "r.proto\"I\n\013ProtoSchema\022:\n\020proto_descript" - + "or\030\001 \001(\0132 .google.protobuf.DescriptorPro" - + "to\"$\n\tProtoRows\022\027\n\017serialized_rows\030\001 \003(\014" - + "B\201\001\n)com.google.cloud.bigquery.storage.v" - + "1beta2B\rProtoBufProtoP\001ZCcloud.google.co" - + "m/go/bigquery/storage/apiv1beta2/storage" - + "pb;storagepbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DescriptorProtos.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor, - new java.lang.String[] { - "ProtoDescriptor", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor, - new java.lang.String[] { - "SerializedRows", - }); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java deleted file mode 100644 index 614fa22b13..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface ReadRowsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Stream to read rows from.
-   * 
- * - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The readStream. - */ - java.lang.String getReadStream(); - /** - * - * - *
-   * Required. Stream to read rows from.
-   * 
- * - * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for readStream. - */ - com.google.protobuf.ByteString getReadStreamBytes(); - - /** - * - * - *
-   * The offset requested must be less than the last row read from Read.
-   * Requesting a larger offset is undefined. If not specified, start reading
-   * from offset zero.
-   * 
- * - * int64 offset = 2; - * - * @return The offset. - */ - long getOffset(); -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java deleted file mode 100644 index 59abc99bc1..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java +++ /dev/null @@ -1,506 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class StorageProto { - private StorageProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/bigquery/storage/v1beta2/" - + "storage.proto\022%google.cloud.bigquery.sto" - + "rage.v1beta2\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\0321google/cloud/bigquery/storage/v" - + "1beta2/arrow.proto\0320google/cloud/bigquer" - + "y/storage/v1beta2/avro.proto\0324google/clo" - + "ud/bigquery/storage/v1beta2/protobuf.pro" - + "to\0322google/cloud/bigquery/storage/v1beta" - + "2/stream.proto\0321google/cloud/bigquery/st" - + "orage/v1beta2/table.proto\032\037google/protob" - + "uf/timestamp.proto\032\036google/protobuf/wrap" - + "pers.proto\032\027google/rpc/status.proto\"\310\001\n\030" - + "CreateReadSessionRequest\022C\n\006parent\030\001 \001(\t" - + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" - + "s.com/Project\022M\n\014read_session\030\002 \001(\01322.go" - + "ogle.cloud.bigquery.storage.v1beta2.Read" - + "SessionB\003\340A\002\022\030\n\020max_stream_count\030\003 \001(\005\"i" - + "\n\017ReadRowsRequest\022F\n\013read_stream\030\001 \001(\tB1" - + "\340A\002\372A+\n)bigquerystorage.googleapis.com/R" - + "eadStream\022\016\n\006offset\030\002 \001(\003\")\n\rThrottleSta" - + "te\022\030\n\020throttle_percent\030\001 \001(\005\"\234\001\n\013StreamS" - + "tats\022M\n\010progress\030\002 \001(\0132;.google.cloud.bi" - + "gquery.storage.v1beta2.StreamStats.Progr" - + "ess\032>\n\010Progress\022\031\n\021at_response_start\030\001 \001" - + "(\001\022\027\n\017at_response_end\030\002 \001(\001\"\205\004\n\020ReadRows" - + "Response\022D\n\tavro_rows\030\003 \001(\0132/.google.clo" - + "ud.bigquery.storage.v1beta2.AvroRowsH\000\022U" - + "\n\022arrow_record_batch\030\004 \001(\01327.google.clou" - + "d.bigquery.storage.v1beta2.ArrowRecordBa" - + "tchH\000\022\021\n\trow_count\030\006 \001(\003\022A\n\005stats\030\002 \001(\0132" - + "2.google.cloud.bigquery.storage.v1beta2." - + "StreamStats\022L\n\016throttle_state\030\005 \001(\01324.go" - + "ogle.cloud.bigquery.storage.v1beta2.Thro" - + "ttleState\022M\n\013avro_schema\030\007 \001(\01321.google." - + "cloud.bigquery.storage.v1beta2.AvroSchem" - + "aB\003\340A\003H\001\022O\n\014arrow_schema\030\010 \001(\01322.google." - + "cloud.bigquery.storage.v1beta2.ArrowSche" - + "maB\003\340A\003H\001B\006\n\004rowsB\010\n\006schema\"k\n\026SplitRead" - + "StreamRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)big" - + "querystorage.googleapis.com/ReadStream\022\020" - + "\n\010fraction\030\002 \001(\001\"\261\001\n\027SplitReadStreamResp" - + "onse\022I\n\016primary_stream\030\001 \001(\01321.google.cl" - + "oud.bigquery.storage.v1beta2.ReadStream\022" - + "K\n\020remainder_stream\030\002 \001(\01321.google.cloud" - + ".bigquery.storage.v1beta2.ReadStream\"\240\001\n" - + "\030CreateWriteStreamRequest\0225\n\006parent\030\001 \001(" - + "\tB%\340A\002\372A\037\n\035bigquery.googleapis.com/Table" - + "\022M\n\014write_stream\030\002 \001(\01322.google.cloud.bi" - + "gquery.storage.v1beta2.WriteStreamB\003\340A\002\"" - + "\227\003\n\021AppendRowsRequest\022H\n\014write_stream\030\001 " - + "\001(\tB2\340A\002\372A,\n*bigquerystorage.googleapis." - + "com/WriteStream\022+\n\006offset\030\002 \001(\0132\033.google" - + ".protobuf.Int64Value\022X\n\nproto_rows\030\004 \001(\013" - + "2B.google.cloud.bigquery.storage.v1beta2" - + ".AppendRowsRequest.ProtoDataH\000\022\020\n\010trace_" - + "id\030\006 \001(\t\032\226\001\n\tProtoData\022I\n\rwriter_schema\030" - + "\001 \001(\01322.google.cloud.bigquery.storage.v1" - + "beta2.ProtoSchema\022>\n\004rows\030\002 \001(\01320.google" - + ".cloud.bigquery.storage.v1beta2.ProtoRow" - + "sB\006\n\004rows\"\257\002\n\022AppendRowsResponse\022_\n\rappe" - + "nd_result\030\001 \001(\0132F.google.cloud.bigquery." - + "storage.v1beta2.AppendRowsResponse.Appen" - + "dResultH\000\022#\n\005error\030\002 \001(\0132\022.google.rpc.St" - + "atusH\000\022J\n\016updated_schema\030\003 \001(\01322.google." - + "cloud.bigquery.storage.v1beta2.TableSche" - + "ma\032;\n\014AppendResult\022+\n\006offset\030\001 \001(\0132\033.goo" - + "gle.protobuf.Int64ValueB\n\n\010response\"Y\n\025G" - + "etWriteStreamRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372" - + "A,\n*bigquerystorage.googleapis.com/Write" - + "Stream\"Q\n\036BatchCommitWriteStreamsRequest" - + "\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\032\n\rwrite_streams\030\002" - + " \003(\tB\003\340A\002\"\236\001\n\037BatchCommitWriteStreamsRes" - + "ponse\022/\n\013commit_time\030\001 \001(\0132\032.google.prot" - + "obuf.Timestamp\022J\n\rstream_errors\030\002 \003(\01323." - + "google.cloud.bigquery.storage.v1beta2.St" - + "orageError\"^\n\032FinalizeWriteStreamRequest" - + "\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquerystorage." - + "googleapis.com/WriteStream\"0\n\033FinalizeWr" - + "iteStreamResponse\022\021\n\trow_count\030\001 \001(\003\"\211\001\n" - + "\020FlushRowsRequest\022H\n\014write_stream\030\001 \001(\tB" - + "2\340A\002\372A,\n*bigquerystorage.googleapis.com/" - + "WriteStream\022+\n\006offset\030\002 \001(\0132\033.google.pro" - + "tobuf.Int64Value\"#\n\021FlushRowsResponse\022\016\n" - + "\006offset\030\001 \001(\003\"\324\002\n\014StorageError\022R\n\004code\030\001" - + " \001(\0162D.google.cloud.bigquery.storage.v1b" - + "eta2.StorageError.StorageErrorCode\022\016\n\006en" - + "tity\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\"\310\001\n\020St" - + "orageErrorCode\022\"\n\036STORAGE_ERROR_CODE_UNS" - + "PECIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STREA" - + "M_ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FOUN" - + "D\020\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALID_" - + "STREAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\0062\277\006\n" - + "\014BigQueryRead\022\370\001\n\021CreateReadSession\022?.go" - + "ogle.cloud.bigquery.storage.v1beta2.Crea" - + "teReadSessionRequest\0322.google.cloud.bigq" - + "uery.storage.v1beta2.ReadSession\"n\202\323\344\223\002A" - + "\".google.cloud.bigquery.sto" - + "rage.v1beta2.SplitReadStreamResponse\"C\202\323" - + "\344\223\002=\022;/v1beta2/{name=projects/*/location" - + "s/*/sessions/*/streams/*}\032{\312A\036bigqueryst" - + "orage.googleapis.com\322AWhttps://www.googl" - + "eapis.com/auth/bigquery,https://www.goog" - + "leapis.com/auth/cloud-platform2\226\014\n\rBigQu" - + "eryWrite\022\346\001\n\021CreateWriteStream\022?.google." - + "cloud.bigquery.storage.v1beta2.CreateWri" - + "teStreamRequest\0322.google.cloud.bigquery." - + "storage.v1beta2.WriteStream\"\\\202\323\344\223\002@\"0/v1" - + "beta2/{parent=projects/*/datasets/*/tabl" - + "es/*}:\014write_stream\332A\023parent,write_strea" - + "m\022\341\001\n\nAppendRows\0228.google.cloud.bigquery" - + ".storage.v1beta2.AppendRowsRequest\0329.goo" - + "gle.cloud.bigquery.storage.v1beta2.Appen" - + "dRowsResponse\"Z\202\323\344\223\002E\"@/v1beta2/{write_s" - + "tream=projects/*/datasets/*/tables/*/str" - + "eams/*}:\001*\332A\014write_stream(\0010\001\022\316\001\n\016GetWri" - + "teStream\022<.google.cloud.bigquery.storage" - + ".v1beta2.GetWriteStreamRequest\0322.google." - + "cloud.bigquery.storage.v1beta2.WriteStre" - + "am\"J\202\323\344\223\002=\"8/v1beta2/{name=projects/*/da" - + "tasets/*/tables/*/streams/*}:\001*\332A\004name\022\350" - + "\001\n\023FinalizeWriteStream\022A.google.cloud.bi" - + "gquery.storage.v1beta2.FinalizeWriteStre" - + "amRequest\032B.google.cloud.bigquery.storag" - + "e.v1beta2.FinalizeWriteStreamResponse\"J\202" - + "\323\344\223\002=\"8/v1beta2/{name=projects/*/dataset" - + "s/*/tables/*/streams/*}:\001*\332A\004name\022\353\001\n\027Ba" - + "tchCommitWriteStreams\022E.google.cloud.big" - + "query.storage.v1beta2.BatchCommitWriteSt" - + "reamsRequest\032F.google.cloud.bigquery.sto" - + "rage.v1beta2.BatchCommitWriteStreamsResp" - + "onse\"A\202\323\344\223\0022\0220/v1beta2/{parent=projects/" - + "*/datasets/*/tables/*}\332A\006parent\022\332\001\n\tFlus" - + "hRows\0227.google.cloud.bigquery.storage.v1" - + "beta2.FlushRowsRequest\0328.google.cloud.bi" - + "gquery.storage.v1beta2.FlushRowsResponse" - + "\"Z\202\323\344\223\002E\"@/v1beta2/{write_stream=project" - + "s/*/datasets/*/tables/*/streams/*}:\001*\332A\014" - + "write_stream\032\260\001\312A\036bigquerystorage.google" - + "apis.com\322A\213\001https://www.googleapis.com/a" - + "uth/bigquery,https://www.googleapis.com/" - + "auth/bigquery.insertdata,https://www.goo" - + "gleapis.com/auth/cloud-platformB\200\001\n)com." - + "google.cloud.bigquery.storage.v1beta2B\014S" - + "torageProtoP\001ZCcloud.google.com/go/bigqu" - + "ery/storage/apiv1beta2/storagepb;storage" - + "pbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor, - new java.lang.String[] { - "Parent", "ReadSession", "MaxStreamCount", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor, - new java.lang.String[] { - "ReadStream", "Offset", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor, - new java.lang.String[] { - "ThrottlePercent", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor, - new java.lang.String[] { - "Progress", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor = - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor, - new java.lang.String[] { - "AtResponseStart", "AtResponseEnd", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor, - new java.lang.String[] { - "AvroRows", - "ArrowRecordBatch", - "RowCount", - "Stats", - "ThrottleState", - "AvroSchema", - "ArrowSchema", - "Rows", - "Schema", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor, - new java.lang.String[] { - "Name", "Fraction", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor, - new java.lang.String[] { - "PrimaryStream", "RemainderStream", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor, - new java.lang.String[] { - "Parent", "WriteStream", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor, - new java.lang.String[] { - "WriteStream", "Offset", "ProtoRows", "TraceId", "Rows", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor = - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor, - new java.lang.String[] { - "WriterSchema", "Rows", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor, - new java.lang.String[] { - "AppendResult", "Error", "UpdatedSchema", "Response", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor = - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor, - new java.lang.String[] { - "Offset", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor, - new java.lang.String[] { - "Parent", "WriteStreams", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor, - new java.lang.String[] { - "CommitTime", "StreamErrors", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor, - new java.lang.String[] { - "RowCount", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor, - new java.lang.String[] { - "WriteStream", "Offset", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor, - new java.lang.String[] { - "Offset", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor, - new java.lang.String[] { - "Code", "Entity", "ErrorMessage", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java deleted file mode 100644 index a18e4269cb..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/stream.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class StreamProto { - private StreamProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/bigquery/storage/v1beta2/" - + "stream.proto\022%google.cloud.bigquery.stor" - + "age.v1beta2\032\037google/api/field_behavior.p" - + "roto\032\031google/api/resource.proto\0321google/" - + "cloud/bigquery/storage/v1beta2/arrow.pro" - + "to\0320google/cloud/bigquery/storage/v1beta" - + "2/avro.proto\0321google/cloud/bigquery/stor" - + "age/v1beta2/table.proto\032\037google/protobuf" - + "/timestamp.proto\"\362\007\n\013ReadSession\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\0224\n\013expire_time\030\002 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\022K\n\013data_format" - + "\030\003 \001(\01621.google.cloud.bigquery.storage.v" - + "1beta2.DataFormatB\003\340A\005\022M\n\013avro_schema\030\004 " - + "\001(\01321.google.cloud.bigquery.storage.v1be" - + "ta2.AvroSchemaB\003\340A\003H\000\022O\n\014arrow_schema\030\005 " - + "\001(\01322.google.cloud.bigquery.storage.v1be" - + "ta2.ArrowSchemaB\003\340A\003H\000\0224\n\005table\030\006 \001(\tB%\340" - + "A\005\372A\037\n\035bigquery.googleapis.com/Table\022_\n\017" - + "table_modifiers\030\007 \001(\0132A.google.cloud.big" - + "query.storage.v1beta2.ReadSession.TableM" - + "odifiersB\003\340A\001\022^\n\014read_options\030\010 \001(\0132C.go" - + "ogle.cloud.bigquery.storage.v1beta2.Read" - + "Session.TableReadOptionsB\003\340A\001\022G\n\007streams" - + "\030\n \003(\01321.google.cloud.bigquery.storage.v" - + "1beta2.ReadStreamB\003\340A\003\032C\n\016TableModifiers" - + "\0221\n\rsnapshot_time\030\001 \001(\0132\032.google.protobu" - + "f.Timestamp\032\260\001\n\020TableReadOptions\022\027\n\017sele" - + "cted_fields\030\001 \003(\t\022\027\n\017row_restriction\030\002 \001" - + "(\t\022j\n\033arrow_serialization_options\030\003 \001(\0132" - + "@.google.cloud.bigquery.storage.v1beta2." - + "ArrowSerializationOptionsB\003\340A\001:k\352Ah\n*big" - + "querystorage.googleapis.com/ReadSession\022" - + ":projects/{project}/locations/{location}" - + "/sessions/{session}B\010\n\006schema\"\234\001\n\nReadSt" - + "ream\022\021\n\004name\030\001 \001(\tB\003\340A\003:{\352Ax\n)bigqueryst" - + "orage.googleapis.com/ReadStream\022Kproject" - + "s/{project}/locations/{location}/session" - + "s/{session}/streams/{stream}\"\347\003\n\013WriteSt" - + "ream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022J\n\004type\030\002 \001(\01627." - + "google.cloud.bigquery.storage.v1beta2.Wr" - + "iteStream.TypeB\003\340A\005\0224\n\013create_time\030\003 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013com" - + "mit_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022M\n\014table_schema\030\005 \001(\01322.google.c" - + "loud.bigquery.storage.v1beta2.TableSchem" - + "aB\003\340A\003\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\t" - + "COMMITTED\020\001\022\013\n\007PENDING\020\002\022\014\n\010BUFFERED\020\003:v" - + "\352As\n*bigquerystorage.googleapis.com/Writ" - + "eStream\022Eprojects/{project}/datasets/{da" - + "taset}/tables/{table}/streams/{stream}*>" - + "\n\nDataFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020" - + "\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\002B\327\001\n)com.google.cl" - + "oud.bigquery.storage.v1beta2B\013StreamProt" - + "oP\001ZCcloud.google.com/go/bigquery/storag" - + "e/apiv1beta2/storagepb;storagepb\352AU\n\035big" - + "query.googleapis.com/Table\0224projects/{pr" - + "oject}/datasets/{dataset}/tables/{table}" - + "b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor, - new java.lang.String[] { - "Name", - "ExpireTime", - "DataFormat", - "AvroSchema", - "ArrowSchema", - "Table", - "TableModifiers", - "ReadOptions", - "Streams", - "Schema", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor = - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor, - new java.lang.String[] { - "SnapshotTime", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor = - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor, - new java.lang.String[] { - "SelectedFields", "RowRestriction", "ArrowSerializationOptions", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor, - new java.lang.String[] { - "Name", "Type", "CreateTime", "CommitTime", "TableSchema", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java deleted file mode 100644 index 9b661d9ea1..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/table.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class TableProto { - private TableProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/bigquery/storage/v1beta2/" - + "table.proto\022%google.cloud.bigquery.stora" - + "ge.v1beta2\032\037google/api/field_behavior.pr" - + "oto\"V\n\013TableSchema\022G\n\006fields\030\001 \003(\01327.goo" - + "gle.cloud.bigquery.storage.v1beta2.Table" - + "FieldSchema\"\317\004\n\020TableFieldSchema\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\002\022O\n\004type\030\002 \001(\0162<.google.cloud" - + ".bigquery.storage.v1beta2.TableFieldSche" - + "ma.TypeB\003\340A\002\022O\n\004mode\030\003 \001(\0162<.google.clou" - + "d.bigquery.storage.v1beta2.TableFieldSch" - + "ema.ModeB\003\340A\001\022L\n\006fields\030\004 \003(\01327.google.c" - + "loud.bigquery.storage.v1beta2.TableField" - + "SchemaB\003\340A\001\022\030\n\013description\030\006 \001(\tB\003\340A\001\"\325\001" - + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001" - + "\022\t\n\005INT64\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRUCT\020\004\022\t\n\005B" - + "YTES\020\005\022\010\n\004BOOL\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020" - + "\010\022\010\n\004TIME\020\t\022\014\n\010DATETIME\020\n\022\r\n\tGEOGRAPHY\020\013" - + "\022\013\n\007NUMERIC\020\014\022\016\n\nBIGNUMERIC\020\r\022\014\n\010INTERVA" - + "L\020\016\022\010\n\004JSON\020\017\"F\n\004Mode\022\024\n\020MODE_UNSPECIFIE" - + "D\020\000\022\014\n\010NULLABLE\020\001\022\014\n\010REQUIRED\020\002\022\014\n\010REPEA" - + "TED\020\003B~\n)com.google.cloud.bigquery.stora" - + "ge.v1beta2B\nTableProtoP\001ZCcloud.google.c" - + "om/go/bigquery/storage/apiv1beta2/storag" - + "epb;storagepbb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor, - new java.lang.String[] { - "Fields", - }); - internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor, - new java.lang.String[] { - "Name", "Type", "Mode", "Fields", "Description", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java deleted file mode 100644 index cf416b5ef5..0000000000 --- a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface ThrottleStateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ThrottleState) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * How much this connection is being throttled. Zero means no throttling,
-   * 100 means fully throttled.
-   * 
- * - * int32 throttle_percent = 1; - * - * @return The throttlePercent. - */ - int getThrottlePercent(); -} From 8a54a30f53d63d1d5a85c7cc77b860b0c689538f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 10 Mar 2023 00:46:49 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../storage/v1/BaseBigQueryReadClient.java | 0 .../storage/v1/BaseBigQueryReadSettings.java | 1 - .../storage/v1/BigQueryWriteClient.java | 0 .../storage/v1/BigQueryWriteSettings.java | 1 - .../bigquery/storage/v1/gapic_metadata.json | 0 .../bigquery/storage/v1/package-info.java | 0 .../storage/v1/stub/BigQueryReadStub.java | 0 .../storage/v1/stub/BigQueryWriteStub.java | 0 .../v1/stub/BigQueryWriteStubSettings.java | 0 .../stub/GrpcBigQueryReadCallableFactory.java | 0 .../storage/v1/stub/GrpcBigQueryReadStub.java | 1 - .../GrpcBigQueryWriteCallableFactory.java | 0 .../v1/stub/GrpcBigQueryWriteStub.java | 1 - .../v1beta1/BaseBigQueryStorageClient.java | 0 .../v1beta1/BaseBigQueryStorageSettings.java | 1 - .../storage/v1beta1/gapic_metadata.json | 0 .../storage/v1beta1/package-info.java | 0 .../v1beta1/stub/BigQueryStorageStub.java | 0 .../stub/BigQueryStorageStubSettings.java | 0 .../GrpcBigQueryStorageCallableFactory.java | 0 .../v1beta1/stub/GrpcBigQueryStorageStub.java | 1 - .../v1beta2/BaseBigQueryReadClient.java | 0 .../v1beta2/BaseBigQueryReadSettings.java | 1 - .../storage/v1beta2/BigQueryWriteClient.java | 0 .../v1beta2/BigQueryWriteSettings.java | 1 - .../storage/v1beta2/gapic_metadata.json | 0 .../storage/v1beta2/package-info.java | 0 .../v1beta2/stub/BigQueryReadStub.java | 0 .../v1beta2/stub/BigQueryWriteStub.java | 0 .../stub/BigQueryWriteStubSettings.java | 0 .../stub/GrpcBigQueryReadCallableFactory.java | 0 .../v1beta2/stub/GrpcBigQueryReadStub.java | 1 - .../GrpcBigQueryWriteCallableFactory.java | 0 .../v1beta2/stub/GrpcBigQueryWriteStub.java | 1 - .../v1/BaseBigQueryReadClientTest.java | 0 .../storage/v1/BigQueryWriteClientTest.java | 0 .../bigquery/storage/v1/MockBigQueryRead.java | 0 .../storage/v1/MockBigQueryReadImpl.java | 0 .../storage/v1/MockBigQueryWrite.java | 0 .../storage/v1/MockBigQueryWriteImpl.java | 0 .../BaseBigQueryStorageClientTest.java | 0 .../storage/v1beta1/MockBigQueryStorage.java | 0 .../v1beta1/MockBigQueryStorageImpl.java | 0 .../v1beta2/BaseBigQueryReadClientTest.java | 0 .../v1beta2/BigQueryWriteClientTest.java | 0 .../storage/v1beta2/MockBigQueryRead.java | 0 .../storage/v1beta2/MockBigQueryReadImpl.java | 0 .../storage/v1beta2/MockBigQueryWrite.java | 0 .../v1beta2/MockBigQueryWriteImpl.java | 0 .../bigquery/storage/v1/BigQueryReadGrpc.java | 419 +- .../storage/v1/BigQueryWriteGrpc.java | 1069 ++ .../storage/v1beta1/BigQueryStorageGrpc.java | 672 +- .../storage/v1beta2/BigQueryReadGrpc.java | 423 +- .../storage/v1beta2/BigQueryWriteGrpc.java | 1049 ++ .../v1/stub/BigQueryReadStubSettings.java | 369 - .../storage/v1/BigQueryWriteGrpc.java | 832 -- .../bigquery/storage/v1/AnnotationsProto.java | 71 - .../cloud/bigquery/storage/v1/ArrowProto.java | 83 - .../storage/v1/ArrowSchemaOrBuilder.java | 19 - .../ArrowSerializationOptionsOrBuilder.java | 30 - .../cloud/bigquery/storage/v1/AvroProto.java | 78 - .../v1/CreateWriteStreamRequestOrBuilder.java | 58 - .../FinalizeWriteStreamRequestOrBuilder.java | 31 - .../FinalizeWriteStreamResponseOrBuilder.java | 19 - .../v1/FlushRowsResponseOrBuilder.java | 19 - .../bigquery/storage/v1/ProtoBufProto.java | 69 - .../storage/v1/ReadRowsRequestOrBuilder.java | 41 - .../bigquery/storage/v1/StorageProto.java | 499 - .../bigquery/storage/v1/StreamProto.java | 175 - .../cloud/bigquery/storage/v1/TableProto.java | 90 - .../storage/v1/ThrottleStateOrBuilder.java | 20 - .../stub/BigQueryReadStubSettings.java | 370 - .../storage/v1beta2/BigQueryWriteGrpc.java | 806 -- .../bigquery/storage/v1beta2/ArrowProto.java | 80 - .../v1beta2/ArrowRecordBatchOrBuilder.java | 19 - .../storage/v1beta2/ArrowSchemaOrBuilder.java | 19 - .../bigquery/storage/v1beta2/AvroProto.java | 64 - .../storage/v1beta2/AvroRowsOrBuilder.java | 19 - .../CreateWriteStreamRequestOrBuilder.java | 58 - .../FinalizeWriteStreamRequestOrBuilder.java | 31 - .../FinalizeWriteStreamResponseOrBuilder.java | 19 - .../v1beta2/FlushRowsResponseOrBuilder.java | 19 - .../GetWriteStreamRequestOrBuilder.java | 31 - .../storage/v1beta2/ProtoBufProto.java | 68 - .../v1beta2/ReadRowsRequestOrBuilder.java | 41 - .../storage/v1beta2/StorageProto.java | 457 - .../bigquery/storage/v1beta2/StreamProto.java | 167 - .../bigquery/storage/v1beta2/TableProto.java | 87 - .../v1beta2/ThrottleStateOrBuilder.java | 20 - .../bigquery/storage/v1/AnnotationsProto.java | 86 + .../storage/v1/AppendRowsRequest.java | 1696 +-- .../v1/AppendRowsRequestOrBuilder.java | 158 +- .../storage/v1/AppendRowsResponse.java | 1261 ++- .../v1/AppendRowsResponseOrBuilder.java | 81 +- .../cloud/bigquery/storage/v1/ArrowProto.java | 98 + .../bigquery/storage/v1/ArrowRecordBatch.java | 359 +- .../storage/v1/ArrowRecordBatchOrBuilder.java | 31 +- .../bigquery/storage/v1/ArrowSchema.java | 286 +- .../storage/v1/ArrowSchemaOrBuilder.java | 38 + .../storage/v1/ArrowSerializationOptions.java | 452 +- .../ArrowSerializationOptionsOrBuilder.java | 57 + .../cloud/bigquery/storage/v1/AvroProto.java | 93 + .../cloud/bigquery/storage/v1/AvroRows.java | 349 +- .../storage/v1/AvroRowsOrBuilder.java | 31 +- .../cloud/bigquery/storage/v1/AvroSchema.java | 321 +- .../storage/v1/AvroSchemaOrBuilder.java | 27 +- .../storage/v1/AvroSerializationOptions.java | 305 +- .../v1/AvroSerializationOptionsOrBuilder.java | 21 +- .../v1/BatchCommitWriteStreamsRequest.java | 498 +- ...tchCommitWriteStreamsRequestOrBuilder.java | 53 +- .../v1/BatchCommitWriteStreamsResponse.java | 529 +- ...chCommitWriteStreamsResponseOrBuilder.java | 44 +- .../storage/v1/CreateReadSessionRequest.java | 576 +- .../v1/CreateReadSessionRequestOrBuilder.java | 61 +- .../storage/v1/CreateWriteStreamRequest.java | 510 +- .../v1/CreateWriteStreamRequestOrBuilder.java | 97 + .../cloud/bigquery/storage/v1/DataFormat.java | 82 +- .../v1/FinalizeWriteStreamRequest.java | 379 +- .../FinalizeWriteStreamRequestOrBuilder.java | 56 + .../v1/FinalizeWriteStreamResponse.java | 318 +- .../FinalizeWriteStreamResponseOrBuilder.java | 38 + .../bigquery/storage/v1/FlushRowsRequest.java | 439 +- .../storage/v1/FlushRowsRequestOrBuilder.java | 43 +- .../storage/v1/FlushRowsResponse.java | 295 +- .../v1/FlushRowsResponseOrBuilder.java | 38 + .../storage/v1/GetWriteStreamRequest.java | 422 +- .../v1/GetWriteStreamRequestOrBuilder.java | 41 +- .../bigquery/storage/v1/ProjectName.java | 0 .../bigquery/storage/v1/ProtoBufProto.java | 85 + .../cloud/bigquery/storage/v1/ProtoRows.java | 330 +- .../storage/v1/ProtoRowsOrBuilder.java | 27 +- .../bigquery/storage/v1/ProtoSchema.java | 364 +- .../storage/v1/ProtoSchemaOrBuilder.java | 26 +- .../bigquery/storage/v1/ReadRowsRequest.java | 389 +- .../storage/v1/ReadRowsRequestOrBuilder.java | 69 + .../bigquery/storage/v1/ReadRowsResponse.java | 1042 +- .../storage/v1/ReadRowsResponseOrBuilder.java | 93 +- .../bigquery/storage/v1/ReadSession.java | 3032 ++++-- .../storage/v1/ReadSessionOrBuilder.java | 217 +- .../cloud/bigquery/storage/v1/ReadStream.java | 321 +- .../bigquery/storage/v1/ReadStreamName.java | 0 .../storage/v1/ReadStreamOrBuilder.java | 27 +- .../cloud/bigquery/storage/v1/RowError.java | 477 +- .../storage/v1/RowErrorOrBuilder.java | 36 +- .../storage/v1/SplitReadStreamRequest.java | 395 +- .../v1/SplitReadStreamRequestOrBuilder.java | 38 +- .../storage/v1/SplitReadStreamResponse.java | 461 +- .../v1/SplitReadStreamResponseOrBuilder.java | 34 +- .../bigquery/storage/v1/StorageError.java | 585 +- .../storage/v1/StorageErrorOrBuilder.java | 42 +- .../bigquery/storage/v1/StorageProto.java | 557 + .../bigquery/storage/v1/StreamProto.java | 214 + .../bigquery/storage/v1/StreamStats.java | 684 +- .../storage/v1/StreamStatsOrBuilder.java | 26 +- .../bigquery/storage/v1/TableFieldSchema.java | 1258 ++- .../storage/v1/TableFieldSchemaOrBuilder.java | 120 +- .../cloud/bigquery/storage/v1/TableName.java | 0 .../cloud/bigquery/storage/v1/TableProto.java | 114 + .../bigquery/storage/v1/TableSchema.java | 401 +- .../storage/v1/TableSchemaOrBuilder.java | 36 +- .../bigquery/storage/v1/ThrottleState.java | 289 +- .../storage/v1/ThrottleStateOrBuilder.java | 39 + .../bigquery/storage/v1/WriteStream.java | 1123 +- .../bigquery/storage/v1/WriteStreamName.java | 0 .../storage/v1/WriteStreamOrBuilder.java | 118 +- .../bigquery/storage/v1/WriteStreamView.java | 82 +- .../bigquery/storage/v1/annotations.proto | 0 .../cloud/bigquery/storage/v1/arrow.proto | 0 .../cloud/bigquery/storage/v1/avro.proto | 0 .../cloud/bigquery/storage/v1/protobuf.proto | 0 .../cloud/bigquery/storage/v1/storage.proto | 0 .../cloud/bigquery/storage/v1/stream.proto | 0 .../cloud/bigquery/storage/v1/table.proto | 0 .../bigquery/storage/v1beta1/ArrowProto.java | 772 +- .../bigquery/storage/v1beta1/AvroProto.java | 775 +- .../bigquery/storage/v1beta1/ProjectName.java | 0 .../bigquery/storage/v1beta1/ReadOptions.java | 565 +- .../bigquery/storage/v1beta1/Storage.java | 9169 +++++++++++------ .../storage/v1beta1/TableReferenceProto.java | 1148 ++- .../bigquery/storage/v1beta1/arrow.proto | 0 .../cloud/bigquery/storage/v1beta1/avro.proto | 0 .../storage/v1beta1/read_options.proto | 0 .../bigquery/storage/v1beta1/storage.proto | 0 .../storage/v1beta1/table_reference.proto | 0 .../storage/v1beta2/AppendRowsRequest.java | 1216 ++- .../v1beta2/AppendRowsRequestOrBuilder.java | 63 +- .../storage/v1beta2/AppendRowsResponse.java | 1130 +- .../v1beta2/AppendRowsResponseOrBuilder.java | 57 +- .../bigquery/storage/v1beta2/ArrowProto.java | 95 + .../storage/v1beta2/ArrowRecordBatch.java | 295 +- .../v1beta2/ArrowRecordBatchOrBuilder.java | 38 + .../bigquery/storage/v1beta2/ArrowSchema.java | 289 +- .../storage/v1beta2/ArrowSchemaOrBuilder.java | 38 + .../v1beta2/ArrowSerializationOptions.java | 453 +- .../ArrowSerializationOptionsOrBuilder.java | 30 +- .../bigquery/storage/v1beta2/AvroProto.java | 78 + .../bigquery/storage/v1beta2/AvroRows.java | 292 +- .../storage/v1beta2/AvroRowsOrBuilder.java | 38 + .../bigquery/storage/v1beta2/AvroSchema.java | 325 +- .../storage/v1beta2/AvroSchemaOrBuilder.java | 27 +- .../BatchCommitWriteStreamsRequest.java | 483 +- ...tchCommitWriteStreamsRequestOrBuilder.java | 45 +- .../BatchCommitWriteStreamsResponse.java | 555 +- ...chCommitWriteStreamsResponseOrBuilder.java | 41 +- .../v1beta2/CreateReadSessionRequest.java | 571 +- .../CreateReadSessionRequestOrBuilder.java | 58 +- .../v1beta2/CreateWriteStreamRequest.java | 538 +- .../CreateWriteStreamRequestOrBuilder.java | 97 + .../bigquery/storage/v1beta2/DataFormat.java | 90 +- .../v1beta2/FinalizeWriteStreamRequest.java | 391 +- .../FinalizeWriteStreamRequestOrBuilder.java | 56 + .../v1beta2/FinalizeWriteStreamResponse.java | 330 +- .../FinalizeWriteStreamResponseOrBuilder.java | 38 + .../storage/v1beta2/FlushRowsRequest.java | 439 +- .../v1beta2/FlushRowsRequestOrBuilder.java | 43 +- .../storage/v1beta2/FlushRowsResponse.java | 295 +- .../v1beta2/FlushRowsResponseOrBuilder.java | 38 + .../v1beta2/GetWriteStreamRequest.java | 379 +- .../GetWriteStreamRequestOrBuilder.java | 56 + .../bigquery/storage/v1beta2/ProjectName.java | 0 .../storage/v1beta2/ProtoBufProto.java | 84 + .../bigquery/storage/v1beta2/ProtoRows.java | 340 +- .../storage/v1beta2/ProtoRowsOrBuilder.java | 27 +- .../bigquery/storage/v1beta2/ProtoSchema.java | 367 +- .../storage/v1beta2/ProtoSchemaOrBuilder.java | 26 +- .../storage/v1beta2/ReadRowsRequest.java | 392 +- .../v1beta2/ReadRowsRequestOrBuilder.java | 69 + .../storage/v1beta2/ReadRowsResponse.java | 1064 +- .../v1beta2/ReadRowsResponseOrBuilder.java | 96 +- .../bigquery/storage/v1beta2/ReadSession.java | 2652 +++-- .../storage/v1beta2/ReadSessionOrBuilder.java | 199 +- .../bigquery/storage/v1beta2/ReadStream.java | 325 +- .../storage/v1beta2/ReadStreamName.java | 0 .../storage/v1beta2/ReadStreamOrBuilder.java | 27 +- .../v1beta2/SplitReadStreamRequest.java | 418 +- .../SplitReadStreamRequestOrBuilder.java | 38 +- .../v1beta2/SplitReadStreamResponse.java | 501 +- .../SplitReadStreamResponseOrBuilder.java | 34 +- .../storage/v1beta2/StorageError.java | 567 +- .../v1beta2/StorageErrorOrBuilder.java | 42 +- .../storage/v1beta2/StorageProto.java | 506 + .../bigquery/storage/v1beta2/StreamProto.java | 199 + .../bigquery/storage/v1beta2/StreamStats.java | 723 +- .../storage/v1beta2/StreamStatsOrBuilder.java | 26 +- .../storage/v1beta2/TableFieldSchema.java | 1095 +- .../v1beta2/TableFieldSchemaOrBuilder.java | 102 +- .../bigquery/storage/v1beta2/TableName.java | 0 .../bigquery/storage/v1beta2/TableProto.java | 103 + .../bigquery/storage/v1beta2/TableSchema.java | 421 +- .../storage/v1beta2/TableSchemaOrBuilder.java | 36 +- .../storage/v1beta2/ThrottleState.java | 292 +- .../v1beta2/ThrottleStateOrBuilder.java | 39 + .../bigquery/storage/v1beta2/WriteStream.java | 912 +- .../storage/v1beta2/WriteStreamName.java | 0 .../storage/v1beta2/WriteStreamOrBuilder.java | 95 +- .../bigquery/storage/v1beta2/arrow.proto | 0 .../cloud/bigquery/storage/v1beta2/avro.proto | 0 .../bigquery/storage/v1beta2/protobuf.proto | 0 .../bigquery/storage/v1beta2/storage.proto | 0 .../bigquery/storage/v1beta2/stream.proto | 0 .../bigquery/storage/v1beta2/table.proto | 0 261 files changed, 40285 insertions(+), 24908 deletions(-) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStub.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java (99%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java (99%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java (99%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java (99%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadCallableFactory.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java (99%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java (99%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryReadImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java (100%) rename {owl-bot-staging/v1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWriteImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorageImpl.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClientTest.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClientTest.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryReadImpl.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java (100%) rename {owl-bot-staging/v1beta2/google-cloud-bigquerystorage => google-cloud-bigquerystorage}/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWriteImpl.java (100%) rename {owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1 => grpc-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java (58%) create mode 100644 grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java rename {owl-bot-staging/v1beta1/grpc-google-cloud-bigquerystorage-v1beta1 => grpc-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java (51%) rename {owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2 => grpc-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java (58%) create mode 100644 grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java delete mode 100644 owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStubSettings.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStubSettings.java delete mode 100644 owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java delete mode 100644 owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java (86%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java (51%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java (65%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java (59%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java (51%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java (82%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java (59%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java (60%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java (60%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java (63%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java (100%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java (63%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java (64%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java (100%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java (64%) create mode 100644 proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1 => proto-google-cloud-bigquerystorage-v1}/src/main/proto/google/cloud/bigquery/storage/v1/table.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/proto/google/cloud/bigquery/storage/v1beta1/read_options.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/proto/google/cloud/bigquery/storage/v1beta1/storage.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1 => proto-google-cloud-bigquerystorage-v1beta1}/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java (70%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java (76%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java (69%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java (83%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java (65%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java (66%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java (60%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java (51%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java (65%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java (66%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java (51%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java (66%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java (70%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java (73%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java (83%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java (61%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java (55%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java (58%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java (65%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java (59%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java (60%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java (67%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java (58%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java (65%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java (61%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java (100%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java (68%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java (68%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java (69%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java (71%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java (64%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java (68%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java (73%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java (66%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java (62%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java (68%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java (56%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java (64%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java (55%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java (67%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java (78%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java (69%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java (64%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java (69%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java (62%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java (65%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java (58%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java (100%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java (70%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java (65%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java (66%) create mode 100644 proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java (67%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java (71%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/stream.proto (100%) rename {owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2 => proto-google-cloud-bigquerystorage-v1beta2}/src/main/proto/google/cloud/bigquery/storage/v1beta2/table.proto (100%) diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClient.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java index f138998cb1..1e6cb3fd29 100644 --- a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.storage.v1.stub.BigQueryReadStubSettings; diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClient.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java index d58a3cda3a..f50d99342b 100644 --- a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.storage.v1.stub.BigQueryWriteStubSettings; diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStub.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStub.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStub.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryWriteStubSettings.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadCallableFactory.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadCallableFactory.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java index 4dcf368e44..26697edd2e 100644 --- a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryReadStub.java @@ -34,7 +34,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteCallableFactory.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteCallableFactory.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java index da56c92c6b..906e6a0ea1 100644 --- a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/GrpcBigQueryWriteStub.java @@ -39,7 +39,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClient.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java index fe2861429c..4df22dfce9 100644 --- a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.storage.v1beta1.stub.BigQueryStorageStubSettings; diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStub.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/BigQueryStorageStubSettings.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageCallableFactory.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageCallableFactory.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java index 9b0bb75b67..5dffc4e674 100644 --- a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/GrpcBigQueryStorageStub.java @@ -31,7 +31,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClient.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java similarity index 99% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java index 2d54b75975..8d7217f7e6 100644 --- a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.storage.v1beta2.stub.BigQueryReadStubSettings; diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClient.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java similarity index 99% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java index a8c8740927..4049cfd4da 100644 --- a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.bigquery.storage.v1beta2.stub.BigQueryWriteStubSettings; diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/gapic_metadata.json diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/package-info.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStub.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStub.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryWriteStubSettings.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadCallableFactory.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadCallableFactory.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadCallableFactory.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java similarity index 99% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java index 88198f0573..08f461bdd3 100644 --- a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryReadStub.java @@ -35,7 +35,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteCallableFactory.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java similarity index 99% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java rename to google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java index 67c1d9f7fb..f36e709315 100644 --- a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java +++ b/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/GrpcBigQueryWriteStub.java @@ -40,7 +40,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BaseBigQueryReadClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryRead.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryReadImpl.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryReadImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryReadImpl.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryReadImpl.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWrite.java diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWriteImpl.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWriteImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWriteImpl.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/MockBigQueryWriteImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClientTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClientTest.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/BaseBigQueryStorageClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorage.java diff --git a/owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorageImpl.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorageImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorageImpl.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta1/MockBigQueryStorageImpl.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClientTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClientTest.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClientTest.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BaseBigQueryReadClientTest.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClientTest.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClientTest.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClientTest.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteClientTest.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryRead.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryReadImpl.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryReadImpl.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryReadImpl.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryReadImpl.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWrite.java diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWriteImpl.java b/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWriteImpl.java similarity index 100% rename from owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWriteImpl.java rename to google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1beta2/MockBigQueryWriteImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java b/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java similarity index 58% rename from owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java rename to grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java index 7bcf2b6077..06dff1c5d2 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java +++ b/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryReadGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.bigquery.storage.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * BigQuery Read API.
  * The Read API can be used to read data from BigQuery.
@@ -19,152 +36,200 @@ private BigQueryReadGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1.BigQueryRead";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateReadSessionMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest,
+          com.google.cloud.bigquery.storage.v1.ReadSession>
+      getCreateReadSessionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReadSession",
       requestType = com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1.ReadSession.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateReadSessionMethod() {
-    io.grpc.MethodDescriptor getCreateReadSessionMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest,
+          com.google.cloud.bigquery.storage.v1.ReadSession>
+      getCreateReadSessionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest,
+            com.google.cloud.bigquery.storage.v1.ReadSession>
+        getCreateReadSessionMethod;
     if ((getCreateReadSessionMethod = BigQueryReadGrpc.getCreateReadSessionMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getCreateReadSessionMethod = BigQueryReadGrpc.getCreateReadSessionMethod) == null) {
-          BigQueryReadGrpc.getCreateReadSessionMethod = getCreateReadSessionMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("CreateReadSession"))
-              .build();
+          BigQueryReadGrpc.getCreateReadSessionMethod =
+              getCreateReadSessionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1.ReadSession
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BigQueryReadMethodDescriptorSupplier("CreateReadSession"))
+                      .build();
         }
       }
     }
     return getCreateReadSessionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getReadRowsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1.ReadRowsRequest,
+          com.google.cloud.bigquery.storage.v1.ReadRowsResponse>
+      getReadRowsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ReadRows",
       requestType = com.google.cloud.bigquery.storage.v1.ReadRowsRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1.ReadRowsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-  public static io.grpc.MethodDescriptor getReadRowsMethod() {
-    io.grpc.MethodDescriptor getReadRowsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1.ReadRowsRequest,
+          com.google.cloud.bigquery.storage.v1.ReadRowsResponse>
+      getReadRowsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1.ReadRowsRequest,
+            com.google.cloud.bigquery.storage.v1.ReadRowsResponse>
+        getReadRowsMethod;
     if ((getReadRowsMethod = BigQueryReadGrpc.getReadRowsMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getReadRowsMethod = BigQueryReadGrpc.getReadRowsMethod) == null) {
-          BigQueryReadGrpc.getReadRowsMethod = getReadRowsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1.ReadRowsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1.ReadRowsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("ReadRows"))
-              .build();
+          BigQueryReadGrpc.getReadRowsMethod =
+              getReadRowsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1.ReadRowsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1.ReadRowsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("ReadRows"))
+                      .build();
         }
       }
     }
     return getReadRowsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getSplitReadStreamMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest,
+          com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>
+      getSplitReadStreamMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "SplitReadStream",
       requestType = com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getSplitReadStreamMethod() {
-    io.grpc.MethodDescriptor getSplitReadStreamMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest,
+          com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>
+      getSplitReadStreamMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest,
+            com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>
+        getSplitReadStreamMethod;
     if ((getSplitReadStreamMethod = BigQueryReadGrpc.getSplitReadStreamMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getSplitReadStreamMethod = BigQueryReadGrpc.getSplitReadStreamMethod) == null) {
-          BigQueryReadGrpc.getSplitReadStreamMethod = getSplitReadStreamMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("SplitReadStream"))
-              .build();
+          BigQueryReadGrpc.getSplitReadStreamMethod =
+              getSplitReadStreamMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BigQueryReadMethodDescriptorSupplier("SplitReadStream"))
+                      .build();
         }
       }
     }
     return getSplitReadStreamMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static BigQueryReadStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BigQueryReadStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BigQueryReadStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BigQueryReadStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BigQueryReadStub(channel, callOptions);
+          }
+        };
     return BigQueryReadStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BigQueryReadBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static BigQueryReadBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BigQueryReadBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BigQueryReadBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BigQueryReadBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BigQueryReadBlockingStub(channel, callOptions);
+          }
+        };
     return BigQueryReadBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static BigQueryReadFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static BigQueryReadFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BigQueryReadFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BigQueryReadFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BigQueryReadFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BigQueryReadFutureStub(channel, callOptions);
+          }
+        };
     return BigQueryReadFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
    * 
*/ - public static abstract class BigQueryReadImplBase implements io.grpc.BindableService { + public abstract static class BigQueryReadImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -184,12 +249,17 @@ public static abstract class BigQueryReadImplBase implements io.grpc.BindableSer
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReadSessionMethod(), responseObserver); + public void createReadSession( + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReadSessionMethod(), responseObserver); } /** + * + * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -199,12 +269,16 @@ public void createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSes
      * state of the stream.
      * 
*/ - public void readRows(com.google.cloud.bigquery.storage.v1.ReadRowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void readRows( + com.google.cloud.bigquery.storage.v1.ReadRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadRowsMethod(), responseObserver); } /** + * + * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -219,57 +293,64 @@ public void readRows(com.google.cloud.bigquery.storage.v1.ReadRowsRequest reques
      * completion.
      * 
*/ - public void splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSplitReadStreamMethod(), responseObserver); + public void splitReadStream( + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSplitReadStreamMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateReadSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest, - com.google.cloud.bigquery.storage.v1.ReadSession>( - this, METHODID_CREATE_READ_SESSION))) + getCreateReadSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest, + com.google.cloud.bigquery.storage.v1.ReadSession>( + this, METHODID_CREATE_READ_SESSION))) .addMethod( - getReadRowsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.ReadRowsRequest, - com.google.cloud.bigquery.storage.v1.ReadRowsResponse>( - this, METHODID_READ_ROWS))) + getReadRowsMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.ReadRowsRequest, + com.google.cloud.bigquery.storage.v1.ReadRowsResponse>( + this, METHODID_READ_ROWS))) .addMethod( - getSplitReadStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest, - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>( - this, METHODID_SPLIT_READ_STREAM))) + getSplitReadStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest, + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>( + this, METHODID_SPLIT_READ_STREAM))) .build(); } } /** + * + * *
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
    * 
*/ - public static final class BigQueryReadStub extends io.grpc.stub.AbstractAsyncStub { - private BigQueryReadStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadStub + extends io.grpc.stub.AbstractAsyncStub { + private BigQueryReadStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected BigQueryReadStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected BigQueryReadStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BigQueryReadStub(channel, callOptions); } /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -289,13 +370,19 @@ protected BigQueryReadStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createReadSession( + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -305,13 +392,17 @@ public void createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSes
      * state of the stream.
      * 
*/ - public void readRows(com.google.cloud.bigquery.storage.v1.ReadRowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void readRows( + com.google.cloud.bigquery.storage.v1.ReadRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getReadRowsMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -326,22 +417,28 @@ public void readRows(com.google.cloud.bigquery.storage.v1.ReadRowsRequest reques
      * completion.
      * 
*/ - public void splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void splitReadStream( + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
    * 
*/ - public static final class BigQueryReadBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BigQueryReadBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BigQueryReadBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -352,6 +449,8 @@ protected BigQueryReadBlockingStub build( } /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -371,12 +470,15 @@ protected BigQueryReadBlockingStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.cloud.bigquery.storage.v1.ReadSession createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request) { + public com.google.cloud.bigquery.storage.v1.ReadSession createReadSession( + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReadSessionMethod(), getCallOptions(), request); } /** + * + * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -393,6 +495,8 @@ public java.util.Iterator
     }
 
     /**
+     *
+     *
      * 
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -407,21 +511,24 @@ public java.util.Iterator
      * completion.
      * 
*/ - public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request) { + public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse splitReadStream( + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSplitReadStreamMethod(), getCallOptions(), request); } } /** + * + * *
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
    * 
*/ - public static final class BigQueryReadFutureStub extends io.grpc.stub.AbstractFutureStub { - private BigQueryReadFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BigQueryReadFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -432,6 +539,8 @@ protected BigQueryReadFutureStub build( } /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -451,13 +560,16 @@ protected BigQueryReadFutureStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createReadSession( - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1.ReadSession> + createReadSession(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request); } /** + * + * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -472,8 +584,9 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture splitReadStream(
-        com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>
+        splitReadStream(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request);
     }
@@ -483,11 +596,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final BigQueryReadImplBase serviceImpl;
     private final int methodId;
 
@@ -501,16 +614,23 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_READ_SESSION:
-          serviceImpl.createReadSession((com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createReadSession(
+              (com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_READ_ROWS:
-          serviceImpl.readRows((com.google.cloud.bigquery.storage.v1.ReadRowsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.readRows(
+              (com.google.cloud.bigquery.storage.v1.ReadRowsRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_SPLIT_READ_STREAM:
-          serviceImpl.splitReadStream((com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.splitReadStream(
+              (com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse>)
+                  responseObserver);
           break;
         default:
           throw new AssertionError();
@@ -528,8 +648,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class BigQueryReadBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class BigQueryReadBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     BigQueryReadBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -571,12 +692,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (BigQueryReadGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new BigQueryReadFileDescriptorSupplier())
-              .addMethod(getCreateReadSessionMethod())
-              .addMethod(getReadRowsMethod())
-              .addMethod(getSplitReadStreamMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new BigQueryReadFileDescriptorSupplier())
+                      .addMethod(getCreateReadSessionMethod())
+                      .addMethod(getReadRowsMethod())
+                      .addMethod(getSplitReadStreamMethod())
+                      .build();
         }
       }
     }
diff --git a/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java b/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java
new file mode 100644
index 0000000000..e6d4a78c92
--- /dev/null
+++ b/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java
@@ -0,0 +1,1069 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.bigquery.storage.v1;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ * 
+ * BigQuery Write API.
+ * The Write API can be used to write data to BigQuery.
+ * For supplementary information about the Write API, see:
+ * https://cloud.google.com/bigquery/docs/write-api
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/storage/v1/storage.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BigQueryWriteGrpc { + + private BigQueryWriteGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1.BigQueryWrite"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.WriteStream> + getCreateWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWriteStream", + requestType = com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.WriteStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.WriteStream> + getCreateWriteStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.WriteStream> + getCreateWriteStreamMethod; + if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { + BigQueryWriteGrpc.getCreateWriteStreamMethod = + getCreateWriteStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.WriteStream + .getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryWriteMethodDescriptorSupplier("CreateWriteStream")) + .build(); + } + } + } + return getCreateWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.AppendRowsRequest, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse> + getAppendRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AppendRows", + requestType = com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.AppendRowsRequest, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse> + getAppendRowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.AppendRowsRequest, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse> + getAppendRowsMethod; + if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { + BigQueryWriteGrpc.getAppendRowsMethod = + getAppendRowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AppendRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.AppendRowsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.AppendRowsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("AppendRows")) + .build(); + } + } + } + return getAppendRowsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.WriteStream> + getGetWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWriteStream", + requestType = com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.WriteStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.WriteStream> + getGetWriteStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.WriteStream> + getGetWriteStreamMethod; + if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { + BigQueryWriteGrpc.getGetWriteStreamMethod = + getGetWriteStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.WriteStream + .getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryWriteMethodDescriptorSupplier("GetWriteStream")) + .build(); + } + } + } + return getGetWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> + getFinalizeWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FinalizeWriteStream", + requestType = com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> + getFinalizeWriteStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> + getFinalizeWriteStreamMethod; + if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) + == null) { + BigQueryWriteGrpc.getFinalizeWriteStreamMethod = + getFinalizeWriteStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FinalizeWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryWriteMethodDescriptorSupplier("FinalizeWriteStream")) + .build(); + } + } + } + return getFinalizeWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> + getBatchCommitWriteStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchCommitWriteStreams", + requestType = com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> + getBatchCommitWriteStreamsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> + getBatchCommitWriteStreamsMethod; + if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) + == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) + == null) { + BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod = + getBatchCommitWriteStreamsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchCommitWriteStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryWriteMethodDescriptorSupplier("BatchCommitWriteStreams")) + .build(); + } + } + } + return getBatchCommitWriteStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.FlushRowsRequest, + com.google.cloud.bigquery.storage.v1.FlushRowsResponse> + getFlushRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FlushRows", + requestType = com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.FlushRowsRequest, + com.google.cloud.bigquery.storage.v1.FlushRowsResponse> + getFlushRowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1.FlushRowsRequest, + com.google.cloud.bigquery.storage.v1.FlushRowsResponse> + getFlushRowsMethod; + if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { + BigQueryWriteGrpc.getFlushRowsMethod = + getFlushRowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FlushRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.FlushRowsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1.FlushRowsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FlushRows")) + .build(); + } + } + } + return getFlushRowsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BigQueryWriteStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteStub(channel, callOptions); + } + }; + return BigQueryWriteStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BigQueryWriteBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteBlockingStub(channel, callOptions); + } + }; + return BigQueryWriteBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BigQueryWriteFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteFutureStub(channel, callOptions); + } + }; + return BigQueryWriteFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * For supplementary information about the Write API, see:
+   * https://cloud.google.com/bigquery/docs/write-api
+   * 
+ */ + public abstract static class BigQueryWriteImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public void createWriteStream( + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWriteStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Appends data to the given stream.
+     * If `offset` is specified, the `offset` is checked against the end of
+     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
+     * attempt is made to append to an offset beyond the current end of the stream
+     * or `ALREADY_EXISTS` if user provides an `offset` that has already been
+     * written to. User can retry with adjusted offset within the same RPC
+     * connection. If `offset` is not specified, append happens at the end of the
+     * stream.
+     * The response contains an optional offset at which the append
+     * happened.  No offset information will be returned for appends to a
+     * default stream.
+     * Responses are received in the same order in which requests are sent.
+     * There will be one response for each successful inserted request.  Responses
+     * may optionally embed error information if the originating AppendRequest was
+     * not successfully processed.
+     * The specifics of when successfully appended data is made visible to the
+     * table are governed by the type of stream:
+     * * For COMMITTED streams (which includes the default stream), data is
+     * visible immediately upon successful append.
+     * * For BUFFERED streams, data is made visible via a subsequent `FlushRows`
+     * rpc which advances a cursor to a newer offset in the stream.
+     * * For PENDING streams, data is not made visible until the stream itself is
+     * finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
+     * committed via the `BatchCommitWriteStreams` rpc.
+     * 
+ */ + public io.grpc.stub.StreamObserver + appendRows( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getAppendRowsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets information about a write stream.
+     * 
+ */ + public void getWriteStream( + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWriteStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public void finalizeWriteStream( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFinalizeWriteStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public void batchCommitWriteStreams( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCommitWriteStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public void flushRows( + com.google.cloud.bigquery.storage.v1.FlushRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushRowsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.WriteStream>( + this, METHODID_CREATE_WRITE_STREAM))) + .addMethod( + getAppendRowsMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.AppendRowsRequest, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse>( + this, METHODID_APPEND_ROWS))) + .addMethod( + getGetWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.WriteStream>( + this, METHODID_GET_WRITE_STREAM))) + .addMethod( + getFinalizeWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse>( + this, METHODID_FINALIZE_WRITE_STREAM))) + .addMethod( + getBatchCommitWriteStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse>( + this, METHODID_BATCH_COMMIT_WRITE_STREAMS))) + .addMethod( + getFlushRowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1.FlushRowsRequest, + com.google.cloud.bigquery.storage.v1.FlushRowsResponse>( + this, METHODID_FLUSH_ROWS))) + .build(); + } + } + + /** + * + * + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * For supplementary information about the Write API, see:
+   * https://cloud.google.com/bigquery/docs/write-api
+   * 
+ */ + public static final class BigQueryWriteStub + extends io.grpc.stub.AbstractAsyncStub { + private BigQueryWriteStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public void createWriteStream( + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Appends data to the given stream.
+     * If `offset` is specified, the `offset` is checked against the end of
+     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
+     * attempt is made to append to an offset beyond the current end of the stream
+     * or `ALREADY_EXISTS` if user provides an `offset` that has already been
+     * written to. User can retry with adjusted offset within the same RPC
+     * connection. If `offset` is not specified, append happens at the end of the
+     * stream.
+     * The response contains an optional offset at which the append
+     * happened.  No offset information will be returned for appends to a
+     * default stream.
+     * Responses are received in the same order in which requests are sent.
+     * There will be one response for each successful inserted request.  Responses
+     * may optionally embed error information if the originating AppendRequest was
+     * not successfully processed.
+     * The specifics of when successfully appended data is made visible to the
+     * table are governed by the type of stream:
+     * * For COMMITTED streams (which includes the default stream), data is
+     * visible immediately upon successful append.
+     * * For BUFFERED streams, data is made visible via a subsequent `FlushRows`
+     * rpc which advances a cursor to a newer offset in the stream.
+     * * For PENDING streams, data is not made visible until the stream itself is
+     * finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
+     * committed via the `BatchCommitWriteStreams` rpc.
+     * 
+ */ + public io.grpc.stub.StreamObserver + appendRows( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getAppendRowsMethod(), getCallOptions()), responseObserver); + } + + /** + * + * + *
+     * Gets information about a write stream.
+     * 
+ */ + public void getWriteStream( + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public void finalizeWriteStream( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public void batchCommitWriteStreams( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public void flushRows( + com.google.cloud.bigquery.storage.v1.FlushRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * + * + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * For supplementary information about the Write API, see:
+   * https://cloud.google.com/bigquery/docs/write-api
+   * 
+ */ + public static final class BigQueryWriteBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BigQueryWriteBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1.WriteStream createWriteStream( + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWriteStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets information about a write stream.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream( + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWriteStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse finalizeWriteStream( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFinalizeWriteStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse + batchCommitWriteStreams( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCommitWriteStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1.FlushRowsResponse flushRows( + com.google.cloud.bigquery.storage.v1.FlushRowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFlushRowsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * For supplementary information about the Write API, see:
+   * https://cloud.google.com/bigquery/docs/write-api
+   * 
+ */ + public static final class BigQueryWriteFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BigQueryWriteFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1.WriteStream> + createWriteStream(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets information about a write stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1.WriteStream> + getWriteStream(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse> + finalizeWriteStream( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse> + batchCommitWriteStreams( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1.FlushRowsResponse> + flushRows(com.google.cloud.bigquery.storage.v1.FlushRowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_WRITE_STREAM = 0; + private static final int METHODID_GET_WRITE_STREAM = 1; + private static final int METHODID_FINALIZE_WRITE_STREAM = 2; + private static final int METHODID_BATCH_COMMIT_WRITE_STREAMS = 3; + private static final int METHODID_FLUSH_ROWS = 4; + private static final int METHODID_APPEND_ROWS = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final BigQueryWriteImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BigQueryWriteImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_WRITE_STREAM: + serviceImpl.createWriteStream( + (com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_WRITE_STREAM: + serviceImpl.getWriteStream( + (com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_FINALIZE_WRITE_STREAM: + serviceImpl.finalizeWriteStream( + (com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse>) + responseObserver); + break; + case METHODID_BATCH_COMMIT_WRITE_STREAMS: + serviceImpl.batchCommitWriteStreams( + (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse>) + responseObserver); + break; + case METHODID_FLUSH_ROWS: + serviceImpl.flushRows( + (com.google.cloud.bigquery.storage.v1.FlushRowsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_APPEND_ROWS: + return (io.grpc.stub.StreamObserver) + serviceImpl.appendRows( + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1.AppendRowsResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class BigQueryWriteBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BigQueryWriteBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BigQueryWrite"); + } + } + + private static final class BigQueryWriteFileDescriptorSupplier + extends BigQueryWriteBaseDescriptorSupplier { + BigQueryWriteFileDescriptorSupplier() {} + } + + private static final class BigQueryWriteMethodDescriptorSupplier + extends BigQueryWriteBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BigQueryWriteMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (BigQueryWriteGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BigQueryWriteFileDescriptorSupplier()) + .addMethod(getCreateWriteStreamMethod()) + .addMethod(getAppendRowsMethod()) + .addMethod(getGetWriteStreamMethod()) + .addMethod(getFinalizeWriteStreamMethod()) + .addMethod(getBatchCommitWriteStreamsMethod()) + .addMethod(getFlushRowsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java b/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java similarity index 51% rename from owl-bot-staging/v1beta1/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java rename to grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java index f0b5ae2d78..cf52d1ae7f 100644 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java +++ b/grpc-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/BigQueryStorageGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.bigquery.storage.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * BigQuery storage API.
  * The BigQuery storage API can be used to read data stored in BigQuery.
@@ -19,214 +36,307 @@ private BigQueryStorageGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1beta1.BigQueryStorage";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateReadSessionMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest,
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>
+      getCreateReadSessionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReadSession",
-      requestType = com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class,
+      requestType =
+          com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateReadSessionMethod() {
-    io.grpc.MethodDescriptor getCreateReadSessionMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest,
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>
+      getCreateReadSessionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest,
+            com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>
+        getCreateReadSessionMethod;
     if ((getCreateReadSessionMethod = BigQueryStorageGrpc.getCreateReadSessionMethod) == null) {
       synchronized (BigQueryStorageGrpc.class) {
         if ((getCreateReadSessionMethod = BigQueryStorageGrpc.getCreateReadSessionMethod) == null) {
-          BigQueryStorageGrpc.getCreateReadSessionMethod = getCreateReadSessionMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("CreateReadSession"))
-              .build();
+          BigQueryStorageGrpc.getCreateReadSessionMethod =
+              getCreateReadSessionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta1.Storage
+                                  .CreateReadSessionRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BigQueryStorageMethodDescriptorSupplier("CreateReadSession"))
+                      .build();
         }
       }
     }
     return getCreateReadSessionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getReadRowsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest,
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>
+      getReadRowsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ReadRows",
       requestType = com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-  public static io.grpc.MethodDescriptor getReadRowsMethod() {
-    io.grpc.MethodDescriptor getReadRowsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest,
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>
+      getReadRowsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest,
+            com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>
+        getReadRowsMethod;
     if ((getReadRowsMethod = BigQueryStorageGrpc.getReadRowsMethod) == null) {
       synchronized (BigQueryStorageGrpc.class) {
         if ((getReadRowsMethod = BigQueryStorageGrpc.getReadRowsMethod) == null) {
-          BigQueryStorageGrpc.getReadRowsMethod = getReadRowsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("ReadRows"))
-              .build();
+          BigQueryStorageGrpc.getReadRowsMethod =
+              getReadRowsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("ReadRows"))
+                      .build();
         }
       }
     }
     return getReadRowsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getBatchCreateReadSessionStreamsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest,
+          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse>
+      getBatchCreateReadSessionStreamsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "BatchCreateReadSessionStreams",
-      requestType = com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.class,
-      responseType = com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.class,
+      requestType =
+          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest
+              .class,
+      responseType =
+          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse
+              .class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getBatchCreateReadSessionStreamsMethod() {
-    io.grpc.MethodDescriptor getBatchCreateReadSessionStreamsMethod;
-    if ((getBatchCreateReadSessionStreamsMethod = BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest,
+          com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse>
+      getBatchCreateReadSessionStreamsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest,
+            com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse>
+        getBatchCreateReadSessionStreamsMethod;
+    if ((getBatchCreateReadSessionStreamsMethod =
+            BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod)
+        == null) {
       synchronized (BigQueryStorageGrpc.class) {
-        if ((getBatchCreateReadSessionStreamsMethod = BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod) == null) {
-          BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod = getBatchCreateReadSessionStreamsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCreateReadSessionStreams"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("BatchCreateReadSessionStreams"))
-              .build();
+        if ((getBatchCreateReadSessionStreamsMethod =
+                BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod)
+            == null) {
+          BigQueryStorageGrpc.getBatchCreateReadSessionStreamsMethod =
+              getBatchCreateReadSessionStreamsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "BatchCreateReadSessionStreams"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta1.Storage
+                                  .BatchCreateReadSessionStreamsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta1.Storage
+                                  .BatchCreateReadSessionStreamsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BigQueryStorageMethodDescriptorSupplier(
+                              "BatchCreateReadSessionStreams"))
+                      .build();
         }
       }
     }
     return getBatchCreateReadSessionStreamsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getFinalizeStreamMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest,
+          com.google.protobuf.Empty>
+      getFinalizeStreamMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "FinalizeStream",
       requestType = com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.class,
       responseType = com.google.protobuf.Empty.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getFinalizeStreamMethod() {
-    io.grpc.MethodDescriptor getFinalizeStreamMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest,
+          com.google.protobuf.Empty>
+      getFinalizeStreamMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest,
+            com.google.protobuf.Empty>
+        getFinalizeStreamMethod;
     if ((getFinalizeStreamMethod = BigQueryStorageGrpc.getFinalizeStreamMethod) == null) {
       synchronized (BigQueryStorageGrpc.class) {
         if ((getFinalizeStreamMethod = BigQueryStorageGrpc.getFinalizeStreamMethod) == null) {
-          BigQueryStorageGrpc.getFinalizeStreamMethod = getFinalizeStreamMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FinalizeStream"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.protobuf.Empty.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("FinalizeStream"))
-              .build();
+          BigQueryStorageGrpc.getFinalizeStreamMethod =
+              getFinalizeStreamMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FinalizeStream"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta1.Storage
+                                  .FinalizeStreamRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BigQueryStorageMethodDescriptorSupplier("FinalizeStream"))
+                      .build();
         }
       }
     }
     return getFinalizeStreamMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getSplitReadStreamMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest,
+          com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>
+      getSplitReadStreamMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "SplitReadStream",
       requestType = com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.class,
-      responseType = com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class,
+      responseType =
+          com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getSplitReadStreamMethod() {
-    io.grpc.MethodDescriptor getSplitReadStreamMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest,
+          com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>
+      getSplitReadStreamMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest,
+            com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>
+        getSplitReadStreamMethod;
     if ((getSplitReadStreamMethod = BigQueryStorageGrpc.getSplitReadStreamMethod) == null) {
       synchronized (BigQueryStorageGrpc.class) {
         if ((getSplitReadStreamMethod = BigQueryStorageGrpc.getSplitReadStreamMethod) == null) {
-          BigQueryStorageGrpc.getSplitReadStreamMethod = getSplitReadStreamMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryStorageMethodDescriptorSupplier("SplitReadStream"))
-              .build();
+          BigQueryStorageGrpc.getSplitReadStreamMethod =
+              getSplitReadStreamMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta1.Storage
+                                  .SplitReadStreamRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta1.Storage
+                                  .SplitReadStreamResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BigQueryStorageMethodDescriptorSupplier("SplitReadStream"))
+                      .build();
         }
       }
     }
     return getSplitReadStreamMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static BigQueryStorageStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BigQueryStorageStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BigQueryStorageStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BigQueryStorageStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BigQueryStorageStub(channel, callOptions);
+          }
+        };
     return BigQueryStorageStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BigQueryStorageBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static BigQueryStorageBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BigQueryStorageBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BigQueryStorageBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BigQueryStorageBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BigQueryStorageBlockingStub(channel, callOptions);
+          }
+        };
     return BigQueryStorageBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static BigQueryStorageFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static BigQueryStorageFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BigQueryStorageFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BigQueryStorageFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BigQueryStorageFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BigQueryStorageFutureStub(channel, callOptions);
+          }
+        };
     return BigQueryStorageFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * BigQuery storage API.
    * The BigQuery storage API can be used to read data stored in BigQuery.
    * 
*/ - public static abstract class BigQueryStorageImplBase implements io.grpc.BindableService { + public abstract static class BigQueryStorageImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -240,12 +350,17 @@ public static abstract class BigQueryStorageImplBase implements io.grpc.Bindable
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReadSessionMethod(), responseObserver); + public void createReadSession( + com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReadSessionMethod(), responseObserver); } /** + * + * *
      * Reads rows from the table in the format prescribed by the read session.
      * Each response contains one or more table rows, up to a maximum of 10 MiB
@@ -257,24 +372,37 @@ public void createReadSession(com.google.cloud.bigquery.storage.v1beta1.Storage.
      * session, and may change as other streams continue to read data.
      * 
*/ - public void readRows(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void readRows( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse> + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadRowsMethod(), responseObserver); } /** + * + * *
      * Creates additional streams for a ReadSession. This API can be used to
      * dynamically adjust the parallelism of a batch processing task upwards by
      * adding additional workers.
      * 
*/ - public void batchCreateReadSessionStreams(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchCreateReadSessionStreamsMethod(), responseObserver); + public void batchCreateReadSessionStreams( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCreateReadSessionStreamsMethod(), responseObserver); } /** + * + * *
      * Triggers the graceful termination of a single stream in a ReadSession. This
      * API can be used to dynamically adjust the parallelism of a batch processing
@@ -290,12 +418,16 @@ public void batchCreateReadSessionStreams(com.google.cloud.bigquery.storage.v1be
      * Stream.
      * 
*/ - public void finalizeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request, + public void finalizeStream( + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFinalizeStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFinalizeStreamMethod(), responseObserver); } /** + * + * *
      * Splits a given read stream into two Streams. These streams are referred to
      * as the primary and the residual of the split. The original stream can still
@@ -310,71 +442,80 @@ public void finalizeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Fin
      * This method is guaranteed to be idempotent.
      * 
*/ - public void splitReadStream(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSplitReadStreamMethod(), responseObserver); + public void splitReadStream( + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSplitReadStreamMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateReadSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>( - this, METHODID_CREATE_READ_SESSION))) + getCreateReadSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>( + this, METHODID_CREATE_READ_SESSION))) .addMethod( - getReadRowsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>( - this, METHODID_READ_ROWS))) + getReadRowsMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>( + this, METHODID_READ_ROWS))) .addMethod( - getBatchCreateReadSessionStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse>( - this, METHODID_BATCH_CREATE_READ_SESSION_STREAMS))) + getBatchCreateReadSessionStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest, + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse>( + this, METHODID_BATCH_CREATE_READ_SESSION_STREAMS))) .addMethod( - getFinalizeStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest, - com.google.protobuf.Empty>( - this, METHODID_FINALIZE_STREAM))) + getFinalizeStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest, + com.google.protobuf.Empty>(this, METHODID_FINALIZE_STREAM))) .addMethod( - getSplitReadStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest, - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>( - this, METHODID_SPLIT_READ_STREAM))) + getSplitReadStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest, + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>( + this, METHODID_SPLIT_READ_STREAM))) .build(); } } /** + * + * *
    * BigQuery storage API.
    * The BigQuery storage API can be used to read data stored in BigQuery.
    * 
*/ - public static final class BigQueryStorageStub extends io.grpc.stub.AbstractAsyncStub { - private BigQueryStorageStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryStorageStub + extends io.grpc.stub.AbstractAsyncStub { + private BigQueryStorageStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected BigQueryStorageStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected BigQueryStorageStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BigQueryStorageStub(channel, callOptions); } /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -388,13 +529,19 @@ protected BigQueryStorageStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createReadSession( + com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Reads rows from the table in the format prescribed by the read session.
      * Each response contains one or more table rows, up to a maximum of 10 MiB
@@ -406,26 +553,40 @@ public void createReadSession(com.google.cloud.bigquery.storage.v1beta1.Storage.
      * session, and may change as other streams continue to read data.
      * 
*/ - public void readRows(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void readRows( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getReadRowsMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Creates additional streams for a ReadSession. This API can be used to
      * dynamically adjust the parallelism of a batch processing task upwards by
      * adding additional workers.
      * 
*/ - public void batchCreateReadSessionStreams(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchCreateReadSessionStreams( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCreateReadSessionStreamsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getBatchCreateReadSessionStreamsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Triggers the graceful termination of a single stream in a ReadSession. This
      * API can be used to dynamically adjust the parallelism of a batch processing
@@ -441,13 +602,18 @@ public void batchCreateReadSessionStreams(com.google.cloud.bigquery.storage.v1be
      * Stream.
      * 
*/ - public void finalizeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request, + public void finalizeStream( + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFinalizeStreamMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getFinalizeStreamMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Splits a given read stream into two Streams. These streams are referred to
      * as the primary and the residual of the split. The original stream can still
@@ -462,22 +628,29 @@ public void finalizeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Fin
      * This method is guaranteed to be idempotent.
      * 
*/ - public void splitReadStream(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void splitReadStream( + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * BigQuery storage API.
    * The BigQuery storage API can be used to read data stored in BigQuery.
    * 
*/ - public static final class BigQueryStorageBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BigQueryStorageBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryStorageBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BigQueryStorageBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -488,6 +661,8 @@ protected BigQueryStorageBlockingStub build( } /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -501,12 +676,15 @@ protected BigQueryStorageBlockingStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession createReadSession(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request) { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession createReadSession( + com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReadSessionMethod(), getCallOptions(), request); } /** + * + * *
      * Reads rows from the table in the format prescribed by the read session.
      * Each response contains one or more table rows, up to a maximum of 10 MiB
@@ -518,25 +696,32 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession createReadS
      * session, and may change as other streams continue to read data.
      * 
*/ - public java.util.Iterator readRows( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request) { + public java.util.Iterator + readRows(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest request) { return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getReadRowsMethod(), getCallOptions(), request); } /** + * + * *
      * Creates additional streams for a ReadSession. This API can be used to
      * dynamically adjust the parallelism of a batch processing task upwards by
      * adding additional workers.
      * 
*/ - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse batchCreateReadSessionStreams(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest request) { + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + batchCreateReadSessionStreams( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchCreateReadSessionStreamsMethod(), getCallOptions(), request); } /** + * + * *
      * Triggers the graceful termination of a single stream in a ReadSession. This
      * API can be used to dynamically adjust the parallelism of a batch processing
@@ -552,12 +737,15 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionS
      * Stream.
      * 
*/ - public com.google.protobuf.Empty finalizeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request) { + public com.google.protobuf.Empty finalizeStream( + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFinalizeStreamMethod(), getCallOptions(), request); } /** + * + * *
      * Splits a given read stream into two Streams. These streams are referred to
      * as the primary and the residual of the split. The original stream can still
@@ -572,21 +760,25 @@ public com.google.protobuf.Empty finalizeStream(com.google.cloud.bigquery.storag
      * This method is guaranteed to be idempotent.
      * 
*/ - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse splitReadStream(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request) { + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse + splitReadStream( + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSplitReadStreamMethod(), getCallOptions(), request); } } /** + * + * *
    * BigQuery storage API.
    * The BigQuery storage API can be used to read data stored in BigQuery.
    * 
*/ - public static final class BigQueryStorageFutureStub extends io.grpc.stub.AbstractFutureStub { - private BigQueryStorageFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryStorageFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BigQueryStorageFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -597,6 +789,8 @@ protected BigQueryStorageFutureStub build( } /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -610,26 +804,36 @@ protected BigQueryStorageFutureStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createReadSession( - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession> + createReadSession( + com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request); } /** + * + * *
      * Creates additional streams for a ReadSession. This API can be used to
      * dynamically adjust the parallelism of a batch processing task upwards by
      * adding additional workers.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture batchCreateReadSessionStreams( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse> + batchCreateReadSessionStreams( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCreateReadSessionStreamsMethod(), getCallOptions()), request); + getChannel().newCall(getBatchCreateReadSessionStreamsMethod(), getCallOptions()), + request); } /** + * + * *
      * Triggers the graceful termination of a single stream in a ReadSession. This
      * API can be used to dynamically adjust the parallelism of a batch processing
@@ -645,13 +849,16 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture finalizeStream(
-        com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture
+        finalizeStream(
+            com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getFinalizeStreamMethod(), getCallOptions()), request);
     }
 
     /**
+     *
+     *
      * 
      * Splits a given read stream into two Streams. These streams are referred to
      * as the primary and the residual of the split. The original stream can still
@@ -666,8 +873,10 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture splitReadStream(
-        com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>
+        splitReadStream(
+            com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request);
     }
@@ -679,11 +888,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final BigQueryStorageImplBase serviceImpl;
     private final int methodId;
 
@@ -697,24 +906,40 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_READ_SESSION:
-          serviceImpl.createReadSession((com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createReadSession(
+              (com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession>)
+                  responseObserver);
           break;
         case METHODID_READ_ROWS:
-          serviceImpl.readRows((com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.readRows(
+              (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse>)
+                  responseObserver);
           break;
         case METHODID_BATCH_CREATE_READ_SESSION_STREAMS:
-          serviceImpl.batchCreateReadSessionStreams((com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.batchCreateReadSessionStreams(
+              (com.google.cloud.bigquery.storage.v1beta1.Storage
+                      .BatchCreateReadSessionStreamsRequest)
+                  request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.bigquery.storage.v1beta1.Storage
+                          .BatchCreateReadSessionStreamsResponse>)
+                  responseObserver);
           break;
         case METHODID_FINALIZE_STREAM:
-          serviceImpl.finalizeStream((com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) request,
+          serviceImpl.finalizeStream(
+              (com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) request,
               (io.grpc.stub.StreamObserver) responseObserver);
           break;
         case METHODID_SPLIT_READ_STREAM:
-          serviceImpl.splitReadStream((com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.splitReadStream(
+              (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse>)
+                  responseObserver);
           break;
         default:
           throw new AssertionError();
@@ -732,8 +957,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class BigQueryStorageBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class BigQueryStorageBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     BigQueryStorageBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -775,14 +1001,16 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (BigQueryStorageGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new BigQueryStorageFileDescriptorSupplier())
-              .addMethod(getCreateReadSessionMethod())
-              .addMethod(getReadRowsMethod())
-              .addMethod(getBatchCreateReadSessionStreamsMethod())
-              .addMethod(getFinalizeStreamMethod())
-              .addMethod(getSplitReadStreamMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new BigQueryStorageFileDescriptorSupplier())
+                      .addMethod(getCreateReadSessionMethod())
+                      .addMethod(getReadRowsMethod())
+                      .addMethod(getBatchCreateReadSessionStreamsMethod())
+                      .addMethod(getFinalizeStreamMethod())
+                      .addMethod(getSplitReadStreamMethod())
+                      .build();
         }
       }
     }
diff --git a/owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java
similarity index 58%
rename from owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java
rename to grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java
index ebcab35247..70f9be1cef 100644
--- a/owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java
+++ b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryReadGrpc.java
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.google.cloud.bigquery.storage.v1beta2;
 
 import static io.grpc.MethodDescriptor.generateFullMethodName;
 
 /**
+ *
+ *
  * 
  * BigQuery Read API.
  * The Read API can be used to read data from BigQuery.
@@ -21,144 +38,190 @@ private BigQueryReadGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1beta2.BigQueryRead";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getCreateReadSessionMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest,
+          com.google.cloud.bigquery.storage.v1beta2.ReadSession>
+      getCreateReadSessionMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "CreateReadSession",
       requestType = com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1beta2.ReadSession.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getCreateReadSessionMethod() {
-    io.grpc.MethodDescriptor getCreateReadSessionMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest,
+          com.google.cloud.bigquery.storage.v1beta2.ReadSession>
+      getCreateReadSessionMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest,
+            com.google.cloud.bigquery.storage.v1beta2.ReadSession>
+        getCreateReadSessionMethod;
     if ((getCreateReadSessionMethod = BigQueryReadGrpc.getCreateReadSessionMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getCreateReadSessionMethod = BigQueryReadGrpc.getCreateReadSessionMethod) == null) {
-          BigQueryReadGrpc.getCreateReadSessionMethod = getCreateReadSessionMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("CreateReadSession"))
-              .build();
+          BigQueryReadGrpc.getCreateReadSessionMethod =
+              getCreateReadSessionMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateReadSession"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta2.ReadSession
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BigQueryReadMethodDescriptorSupplier("CreateReadSession"))
+                      .build();
         }
       }
     }
     return getCreateReadSessionMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getReadRowsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest,
+          com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>
+      getReadRowsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "ReadRows",
       requestType = com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-  public static io.grpc.MethodDescriptor getReadRowsMethod() {
-    io.grpc.MethodDescriptor getReadRowsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest,
+          com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>
+      getReadRowsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest,
+            com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>
+        getReadRowsMethod;
     if ((getReadRowsMethod = BigQueryReadGrpc.getReadRowsMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getReadRowsMethod = BigQueryReadGrpc.getReadRowsMethod) == null) {
-          BigQueryReadGrpc.getReadRowsMethod = getReadRowsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("ReadRows"))
-              .build();
+          BigQueryReadGrpc.getReadRowsMethod =
+              getReadRowsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReadRows"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("ReadRows"))
+                      .build();
         }
       }
     }
     return getReadRowsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getSplitReadStreamMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest,
+          com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>
+      getSplitReadStreamMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "SplitReadStream",
       requestType = com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.class,
       responseType = com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getSplitReadStreamMethod() {
-    io.grpc.MethodDescriptor getSplitReadStreamMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest,
+          com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>
+      getSplitReadStreamMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest,
+            com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>
+        getSplitReadStreamMethod;
     if ((getSplitReadStreamMethod = BigQueryReadGrpc.getSplitReadStreamMethod) == null) {
       synchronized (BigQueryReadGrpc.class) {
         if ((getSplitReadStreamMethod = BigQueryReadGrpc.getSplitReadStreamMethod) == null) {
-          BigQueryReadGrpc.getSplitReadStreamMethod = getSplitReadStreamMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new BigQueryReadMethodDescriptorSupplier("SplitReadStream"))
-              .build();
+          BigQueryReadGrpc.getSplitReadStreamMethod =
+              getSplitReadStreamMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SplitReadStream"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new BigQueryReadMethodDescriptorSupplier("SplitReadStream"))
+                      .build();
         }
       }
     }
     return getSplitReadStreamMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static BigQueryReadStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BigQueryReadStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BigQueryReadStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BigQueryReadStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BigQueryReadStub(channel, callOptions);
+          }
+        };
     return BigQueryReadStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static BigQueryReadBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static BigQueryReadBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BigQueryReadBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BigQueryReadBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BigQueryReadBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BigQueryReadBlockingStub(channel, callOptions);
+          }
+        };
     return BigQueryReadBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static BigQueryReadFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static BigQueryReadFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public BigQueryReadFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new BigQueryReadFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public BigQueryReadFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new BigQueryReadFutureStub(channel, callOptions);
+          }
+        };
     return BigQueryReadFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
@@ -166,9 +229,11 @@ public BigQueryReadFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptio
    * API at the same time.
    * 
*/ - public static abstract class BigQueryReadImplBase implements io.grpc.BindableService { + public abstract static class BigQueryReadImplBase implements io.grpc.BindableService { /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -188,12 +253,17 @@ public static abstract class BigQueryReadImplBase implements io.grpc.BindableSer
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReadSessionMethod(), responseObserver); + public void createReadSession( + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReadSessionMethod(), responseObserver); } /** + * + * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -203,12 +273,16 @@ public void createReadSession(com.google.cloud.bigquery.storage.v1beta2.CreateRe
      * state of the stream.
      * 
*/ - public void readRows(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void readRows( + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReadRowsMethod(), responseObserver); } /** + * + * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -223,39 +297,46 @@ public void readRows(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest r
      * completion.
      * 
*/ - public void splitReadStream(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSplitReadStreamMethod(), responseObserver); + public void splitReadStream( + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSplitReadStreamMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getCreateReadSessionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest, - com.google.cloud.bigquery.storage.v1beta2.ReadSession>( - this, METHODID_CREATE_READ_SESSION))) + getCreateReadSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest, + com.google.cloud.bigquery.storage.v1beta2.ReadSession>( + this, METHODID_CREATE_READ_SESSION))) .addMethod( - getReadRowsMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>( - this, METHODID_READ_ROWS))) + getReadRowsMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>( + this, METHODID_READ_ROWS))) .addMethod( - getSplitReadStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>( - this, METHODID_SPLIT_READ_STREAM))) + getSplitReadStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>( + this, METHODID_SPLIT_READ_STREAM))) .build(); } } /** + * + * *
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
@@ -263,19 +344,20 @@ public void splitReadStream(com.google.cloud.bigquery.storage.v1beta2.SplitReadS
    * API at the same time.
    * 
*/ - public static final class BigQueryReadStub extends io.grpc.stub.AbstractAsyncStub { - private BigQueryReadStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadStub + extends io.grpc.stub.AbstractAsyncStub { + private BigQueryReadStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected BigQueryReadStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected BigQueryReadStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new BigQueryReadStub(channel, callOptions); } /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -295,13 +377,19 @@ protected BigQueryReadStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public void createReadSession(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createReadSession( + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -311,13 +399,17 @@ public void createReadSession(com.google.cloud.bigquery.storage.v1beta2.CreateRe
      * state of the stream.
      * 
*/ - public void readRows(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void readRows( + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncServerStreamingCall( getChannel().newCall(getReadRowsMethod(), getCallOptions()), request, responseObserver); } /** + * + * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -332,14 +424,21 @@ public void readRows(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest r
      * completion.
      * 
*/ - public void splitReadStream(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void splitReadStream( + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
@@ -347,9 +446,9 @@ public void splitReadStream(com.google.cloud.bigquery.storage.v1beta2.SplitReadS
    * API at the same time.
    * 
*/ - public static final class BigQueryReadBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BigQueryReadBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BigQueryReadBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -360,6 +459,8 @@ protected BigQueryReadBlockingStub build( } /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -379,12 +480,15 @@ protected BigQueryReadBlockingStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession createReadSession(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request) { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession createReadSession( + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateReadSessionMethod(), getCallOptions(), request); } /** + * + * *
      * Reads rows from the stream in the format prescribed by the ReadSession.
      * Each response contains one or more table rows, up to a maximum of 100 MiB
@@ -401,6 +505,8 @@ public java.util.Iterator
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -415,13 +521,16 @@ public java.util.Iterator
      */
-    public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse splitReadStream(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request) {
+    public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse splitReadStream(
+        com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request) {
       return io.grpc.stub.ClientCalls.blockingUnaryCall(
           getChannel(), getSplitReadStreamMethod(), getCallOptions(), request);
     }
   }
 
   /**
+   *
+   *
    * 
    * BigQuery Read API.
    * The Read API can be used to read data from BigQuery.
@@ -429,9 +538,9 @@ public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse splitRe
    * API at the same time.
    * 
*/ - public static final class BigQueryReadFutureStub extends io.grpc.stub.AbstractFutureStub { - private BigQueryReadFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class BigQueryReadFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BigQueryReadFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -442,6 +551,8 @@ protected BigQueryReadFutureStub build( } /** + * + * *
      * Creates a new read session. A read session divides the contents of a
      * BigQuery table into one or more streams, which can then be used to read
@@ -461,13 +572,17 @@ protected BigQueryReadFutureStub build(
      * not require manual clean-up by the caller.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture createReadSession( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1beta2.ReadSession> + createReadSession( + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateReadSessionMethod(), getCallOptions()), request); } /** + * + * *
      * Splits a given `ReadStream` into two `ReadStream` objects. These
      * `ReadStream` objects are referred to as the primary and the residual
@@ -482,8 +597,9 @@ public com.google.common.util.concurrent.ListenableFuture
      */
-    public com.google.common.util.concurrent.ListenableFuture splitReadStream(
-        com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request) {
+    public com.google.common.util.concurrent.ListenableFuture<
+            com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>
+        splitReadStream(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest request) {
       return io.grpc.stub.ClientCalls.futureUnaryCall(
           getChannel().newCall(getSplitReadStreamMethod(), getCallOptions()), request);
     }
@@ -493,11 +609,11 @@ public com.google.common.util.concurrent.ListenableFuture implements
-      io.grpc.stub.ServerCalls.UnaryMethod,
-      io.grpc.stub.ServerCalls.ServerStreamingMethod,
-      io.grpc.stub.ServerCalls.ClientStreamingMethod,
-      io.grpc.stub.ServerCalls.BidiStreamingMethod {
+  private static final class MethodHandlers
+      implements io.grpc.stub.ServerCalls.UnaryMethod,
+          io.grpc.stub.ServerCalls.ServerStreamingMethod,
+          io.grpc.stub.ServerCalls.ClientStreamingMethod,
+          io.grpc.stub.ServerCalls.BidiStreamingMethod {
     private final BigQueryReadImplBase serviceImpl;
     private final int methodId;
 
@@ -511,16 +627,24 @@ private static final class MethodHandlers implements
     public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
       switch (methodId) {
         case METHODID_CREATE_READ_SESSION:
-          serviceImpl.createReadSession((com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.createReadSession(
+              (com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) request,
+              (io.grpc.stub.StreamObserver)
+                  responseObserver);
           break;
         case METHODID_READ_ROWS:
-          serviceImpl.readRows((com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.readRows(
+              (com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse>)
+                  responseObserver);
           break;
         case METHODID_SPLIT_READ_STREAM:
-          serviceImpl.splitReadStream((com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) request,
-              (io.grpc.stub.StreamObserver) responseObserver);
+          serviceImpl.splitReadStream(
+              (com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) request,
+              (io.grpc.stub.StreamObserver<
+                      com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse>)
+                  responseObserver);
           break;
         default:
           throw new AssertionError();
@@ -538,8 +662,9 @@ public io.grpc.stub.StreamObserver invoke(
     }
   }
 
-  private static abstract class BigQueryReadBaseDescriptorSupplier
-      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+  private abstract static class BigQueryReadBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
+          io.grpc.protobuf.ProtoServiceDescriptorSupplier {
     BigQueryReadBaseDescriptorSupplier() {}
 
     @java.lang.Override
@@ -581,12 +706,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
       synchronized (BigQueryReadGrpc.class) {
         result = serviceDescriptor;
         if (result == null) {
-          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
-              .setSchemaDescriptor(new BigQueryReadFileDescriptorSupplier())
-              .addMethod(getCreateReadSessionMethod())
-              .addMethod(getReadRowsMethod())
-              .addMethod(getSplitReadStreamMethod())
-              .build();
+          serviceDescriptor =
+              result =
+                  io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+                      .setSchemaDescriptor(new BigQueryReadFileDescriptorSupplier())
+                      .addMethod(getCreateReadSessionMethod())
+                      .addMethod(getReadRowsMethod())
+                      .addMethod(getSplitReadStreamMethod())
+                      .build();
         }
       }
     }
diff --git a/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java
new file mode 100644
index 0000000000..8cd9ee60c9
--- /dev/null
+++ b/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java
@@ -0,0 +1,1049 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.bigquery.storage.v1beta2;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ *
+ *
+ * 
+ * BigQuery Write API.
+ * The Write API can be used to write data to BigQuery.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/bigquery/storage/v1beta2/storage.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class BigQueryWriteGrpc { + + private BigQueryWriteGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1beta2.BigQueryWrite"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.WriteStream> + getCreateWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWriteStream", + requestType = com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.WriteStream> + getCreateWriteStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.WriteStream> + getCreateWriteStreamMethod; + if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { + BigQueryWriteGrpc.getCreateWriteStreamMethod = + getCreateWriteStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.WriteStream + .getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryWriteMethodDescriptorSupplier("CreateWriteStream")) + .build(); + } + } + } + return getCreateWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse> + getAppendRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AppendRows", + requestType = com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse> + getAppendRowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse> + getAppendRowsMethod; + if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { + BigQueryWriteGrpc.getAppendRowsMethod = + getAppendRowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AppendRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("AppendRows")) + .build(); + } + } + } + return getAppendRowsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.WriteStream> + getGetWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetWriteStream", + requestType = com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.WriteStream> + getGetWriteStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.WriteStream> + getGetWriteStreamMethod; + if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { + BigQueryWriteGrpc.getGetWriteStreamMethod = + getGetWriteStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.WriteStream + .getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryWriteMethodDescriptorSupplier("GetWriteStream")) + .build(); + } + } + } + return getGetWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> + getFinalizeWriteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FinalizeWriteStream", + requestType = com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> + getFinalizeWriteStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> + getFinalizeWriteStreamMethod; + if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) + == null) { + BigQueryWriteGrpc.getFinalizeWriteStreamMethod = + getFinalizeWriteStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FinalizeWriteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryWriteMethodDescriptorSupplier("FinalizeWriteStream")) + .build(); + } + } + } + return getFinalizeWriteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> + getBatchCommitWriteStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchCommitWriteStreams", + requestType = com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, + responseType = + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> + getBatchCommitWriteStreamsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> + getBatchCommitWriteStreamsMethod; + if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) + == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) + == null) { + BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod = + getBatchCommitWriteStreamsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchCommitWriteStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2 + .BatchCommitWriteStreamsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2 + .BatchCommitWriteStreamsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new BigQueryWriteMethodDescriptorSupplier("BatchCommitWriteStreams")) + .build(); + } + } + } + return getBatchCommitWriteStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse> + getFlushRowsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FlushRows", + requestType = com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, + responseType = com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse> + getFlushRowsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse> + getFlushRowsMethod; + if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { + synchronized (BigQueryWriteGrpc.class) { + if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { + BigQueryWriteGrpc.getFlushRowsMethod = + getFlushRowsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FlushRows")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FlushRows")) + .build(); + } + } + } + return getFlushRowsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static BigQueryWriteStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteStub(channel, callOptions); + } + }; + return BigQueryWriteStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static BigQueryWriteBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteBlockingStub(channel, callOptions); + } + }; + return BigQueryWriteBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static BigQueryWriteFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public BigQueryWriteFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteFutureStub(channel, callOptions); + } + }; + return BigQueryWriteFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * 
+ */ + public abstract static class BigQueryWriteImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special COMMITTED stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public void createWriteStream( + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWriteStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Appends data to the given stream.
+     * If `offset` is specified, the `offset` is checked against the end of
+     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
+     * attempt is made to append to an offset beyond the current end of the stream
+     * or `ALREADY_EXISTS` if user provids an `offset` that has already been
+     * written to. User can retry with adjusted offset within the same RPC
+     * stream. If `offset` is not specified, append happens at the end of the
+     * stream.
+     * The response contains the offset at which the append happened. Responses
+     * are received in the same order in which requests are sent. There will be
+     * one response for each successful request. If the `offset` is not set in
+     * response, it means append didn't happen due to some errors. If one request
+     * fails, all the subsequent requests will also fail until a success request
+     * is made again.
+     * If the stream is of `PENDING` type, data will only be available for read
+     * operations after the stream is committed.
+     * 
+ */ + public io.grpc.stub.StreamObserver + appendRows( + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse> + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getAppendRowsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a write stream.
+     * 
+ */ + public void getWriteStream( + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWriteStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public void finalizeWriteStream( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFinalizeWriteStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public void batchCommitWriteStreams( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCommitWriteStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public void flushRows( + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushRowsMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.WriteStream>( + this, METHODID_CREATE_WRITE_STREAM))) + .addMethod( + getAppendRowsMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse>( + this, METHODID_APPEND_ROWS))) + .addMethod( + getGetWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.WriteStream>( + this, METHODID_GET_WRITE_STREAM))) + .addMethod( + getFinalizeWriteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse>( + this, METHODID_FINALIZE_WRITE_STREAM))) + .addMethod( + getBatchCommitWriteStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse>( + this, METHODID_BATCH_COMMIT_WRITE_STREAMS))) + .addMethod( + getFlushRowsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse>( + this, METHODID_FLUSH_ROWS))) + .build(); + } + } + + /** + * + * + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * 
+ */ + public static final class BigQueryWriteStub + extends io.grpc.stub.AbstractAsyncStub { + private BigQueryWriteStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special COMMITTED stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public void createWriteStream( + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Appends data to the given stream.
+     * If `offset` is specified, the `offset` is checked against the end of
+     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
+     * attempt is made to append to an offset beyond the current end of the stream
+     * or `ALREADY_EXISTS` if user provids an `offset` that has already been
+     * written to. User can retry with adjusted offset within the same RPC
+     * stream. If `offset` is not specified, append happens at the end of the
+     * stream.
+     * The response contains the offset at which the append happened. Responses
+     * are received in the same order in which requests are sent. There will be
+     * one response for each successful request. If the `offset` is not set in
+     * response, it means append didn't happen due to some errors. If one request
+     * fails, all the subsequent requests will also fail until a success request
+     * is made again.
+     * If the stream is of `PENDING` type, data will only be available for read
+     * operations after the stream is committed.
+     * 
+ */ + public io.grpc.stub.StreamObserver + appendRows( + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse> + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getAppendRowsMethod(), getCallOptions()), responseObserver); + } + + /** + * + * + *
+     * Gets a write stream.
+     * 
+ */ + public void getWriteStream( + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public void finalizeWriteStream( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public void batchCommitWriteStreams( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public void flushRows( + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * + * + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * 
+ */ + public static final class BigQueryWriteBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private BigQueryWriteBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special COMMITTED stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1beta2.WriteStream createWriteStream( + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWriteStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a write stream.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream( + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWriteStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse + finalizeWriteStream( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFinalizeWriteStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse + batchCommitWriteStreams( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCommitWriteStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse flushRows( + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFlushRowsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * BigQuery Write API.
+   * The Write API can be used to write data to BigQuery.
+   * 
+ */ + public static final class BigQueryWriteFutureStub + extends io.grpc.stub.AbstractFutureStub { + private BigQueryWriteFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected BigQueryWriteFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new BigQueryWriteFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates a write stream to the given table.
+     * Additionally, every table has a special COMMITTED stream named '_default'
+     * to which data can be written. This stream doesn't need to be created using
+     * CreateWriteStream. It is a stream that can be used simultaneously by any
+     * number of clients. Data written to this stream is considered committed as
+     * soon as an acknowledgement is received.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1beta2.WriteStream> + createWriteStream( + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a write stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1beta2.WriteStream> + getWriteStream(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Finalize a write stream so that no new data can be appended to the
+     * stream. Finalize is not supported on the '_default' stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse> + finalizeWriteStream( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Atomically commits a group of `PENDING` streams that belong to the same
+     * `parent` table.
+     * Streams must be finalized before commit and cannot be committed multiple
+     * times. Once a stream is committed, data in the stream becomes available
+     * for read operations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse> + batchCommitWriteStreams( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Flushes rows to a BUFFERED stream.
+     * If users are appending rows to BUFFERED stream, flush operation is
+     * required in order for the rows to become available for reading. A
+     * Flush operation flushes up to any previously flushed offset in a BUFFERED
+     * stream, to the offset specified in the request.
+     * Flush is not supported on the _default stream, since it is not BUFFERED.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse> + flushRows(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_WRITE_STREAM = 0; + private static final int METHODID_GET_WRITE_STREAM = 1; + private static final int METHODID_FINALIZE_WRITE_STREAM = 2; + private static final int METHODID_BATCH_COMMIT_WRITE_STREAMS = 3; + private static final int METHODID_FLUSH_ROWS = 4; + private static final int METHODID_APPEND_ROWS = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final BigQueryWriteImplBase serviceImpl; + private final int methodId; + + MethodHandlers(BigQueryWriteImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_WRITE_STREAM: + serviceImpl.createWriteStream( + (com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_WRITE_STREAM: + serviceImpl.getWriteStream( + (com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_FINALIZE_WRITE_STREAM: + serviceImpl.finalizeWriteStream( + (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse>) + responseObserver); + break; + case METHODID_BATCH_COMMIT_WRITE_STREAMS: + serviceImpl.batchCommitWriteStreams( + (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse>) + responseObserver); + break; + case METHODID_FLUSH_ROWS: + serviceImpl.flushRows( + (com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_APPEND_ROWS: + return (io.grpc.stub.StreamObserver) + serviceImpl.appendRows( + (io.grpc.stub.StreamObserver< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class BigQueryWriteBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + BigQueryWriteBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("BigQueryWrite"); + } + } + + private static final class BigQueryWriteFileDescriptorSupplier + extends BigQueryWriteBaseDescriptorSupplier { + BigQueryWriteFileDescriptorSupplier() {} + } + + private static final class BigQueryWriteMethodDescriptorSupplier + extends BigQueryWriteBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + BigQueryWriteMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (BigQueryWriteGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new BigQueryWriteFileDescriptorSupplier()) + .addMethod(getCreateWriteStreamMethod()) + .addMethod(getAppendRowsMethod()) + .addMethod(getGetWriteStreamMethod()) + .addMethod(getFinalizeWriteStreamMethod()) + .addMethod(getBatchCommitWriteStreamsMethod()) + .addMethod(getFlushRowsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStubSettings.java b/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStubSettings.java deleted file mode 100644 index d000dcda30..0000000000 --- a/owl-bot-staging/v1/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/BigQueryReadStubSettings.java +++ /dev/null @@ -1,369 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.storage.v1.stub; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest; -import com.google.cloud.bigquery.storage.v1.ReadRowsRequest; -import com.google.cloud.bigquery.storage.v1.ReadRowsResponse; -import com.google.cloud.bigquery.storage.v1.ReadSession; -import com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest; -import com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link BigQueryReadStub}. - * - *

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

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

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

For example, to set the total timeout of createReadSession to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * BigQueryReadStubSettings.Builder baseBigQueryReadSettingsBuilder =
- *     BigQueryReadStubSettings.newBuilder();
- * baseBigQueryReadSettingsBuilder
- *     .createReadSessionSettings()
- *     .setRetrySettings(
- *         baseBigQueryReadSettingsBuilder
- *             .createReadSessionSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * BigQueryReadStubSettings baseBigQueryReadSettings = baseBigQueryReadSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class BigQueryReadStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/bigquery") - .add("https://www.googleapis.com/auth/cloud-platform") - .build(); - - private final UnaryCallSettings createReadSessionSettings; - private final ServerStreamingCallSettings readRowsSettings; - private final UnaryCallSettings - splitReadStreamSettings; - - /** Returns the object with the settings used for calls to createReadSession. */ - public UnaryCallSettings createReadSessionSettings() { - return createReadSessionSettings; - } - - /** Returns the object with the settings used for calls to readRows. */ - public ServerStreamingCallSettings readRowsSettings() { - return readRowsSettings; - } - - /** Returns the object with the settings used for calls to splitReadStream. */ - public UnaryCallSettings - splitReadStreamSettings() { - return splitReadStreamSettings; - } - - public BigQueryReadStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcBigQueryReadStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "bigquerystorage.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "bigquerystorage.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(BigQueryReadStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected BigQueryReadStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createReadSessionSettings = settingsBuilder.createReadSessionSettings().build(); - readRowsSettings = settingsBuilder.readRowsSettings().build(); - splitReadStreamSettings = settingsBuilder.splitReadStreamSettings().build(); - } - - /** Builder for BigQueryReadStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - createReadSessionSettings; - private final ServerStreamingCallSettings.Builder - readRowsSettings; - private final UnaryCallSettings.Builder - splitReadStreamSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_2_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(86400000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(86400000L)) - .setTotalTimeout(Duration.ofMillis(86400000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_2_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createReadSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - readRowsSettings = ServerStreamingCallSettings.newBuilder(); - splitReadStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createReadSessionSettings, splitReadStreamSettings); - initDefaults(this); - } - - protected Builder(BigQueryReadStubSettings settings) { - super(settings); - - createReadSessionSettings = settings.createReadSessionSettings.toBuilder(); - readRowsSettings = settings.readRowsSettings.toBuilder(); - splitReadStreamSettings = settings.splitReadStreamSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createReadSessionSettings, splitReadStreamSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .createReadSessionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .readRowsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .splitReadStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to createReadSession. */ - public UnaryCallSettings.Builder - createReadSessionSettings() { - return createReadSessionSettings; - } - - /** Returns the builder for the settings used for calls to readRows. */ - public ServerStreamingCallSettings.Builder - readRowsSettings() { - return readRowsSettings; - } - - /** Returns the builder for the settings used for calls to splitReadStream. */ - public UnaryCallSettings.Builder - splitReadStreamSettings() { - return splitReadStreamSettings; - } - - @Override - public BigQueryReadStubSettings build() throws IOException { - return new BigQueryReadStubSettings(this); - } - } -} diff --git a/owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java deleted file mode 100644 index 786776639d..0000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BigQueryWriteGrpc.java +++ /dev/null @@ -1,832 +0,0 @@ -package com.google.cloud.bigquery.storage.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *

- * BigQuery Write API.
- * The Write API can be used to write data to BigQuery.
- * For supplementary information about the Write API, see:
- * https://cloud.google.com/bigquery/docs/write-api
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/storage/v1/storage.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BigQueryWriteGrpc { - - private BigQueryWriteGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1.BigQueryWrite"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWriteStream", - requestType = com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.WriteStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWriteStreamMethod() { - io.grpc.MethodDescriptor getCreateWriteStreamMethod; - if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { - BigQueryWriteGrpc.getCreateWriteStreamMethod = getCreateWriteStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("CreateWriteStream")) - .build(); - } - } - } - return getCreateWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getAppendRowsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AppendRows", - requestType = com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getAppendRowsMethod() { - io.grpc.MethodDescriptor getAppendRowsMethod; - if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { - BigQueryWriteGrpc.getAppendRowsMethod = getAppendRowsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AppendRows")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("AppendRows")) - .build(); - } - } - } - return getAppendRowsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWriteStream", - requestType = com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.WriteStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWriteStreamMethod() { - io.grpc.MethodDescriptor getGetWriteStreamMethod; - if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { - BigQueryWriteGrpc.getGetWriteStreamMethod = getGetWriteStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("GetWriteStream")) - .build(); - } - } - } - return getGetWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getFinalizeWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FinalizeWriteStream", - requestType = com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFinalizeWriteStreamMethod() { - io.grpc.MethodDescriptor getFinalizeWriteStreamMethod; - if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { - BigQueryWriteGrpc.getFinalizeWriteStreamMethod = getFinalizeWriteStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FinalizeWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FinalizeWriteStream")) - .build(); - } - } - } - return getFinalizeWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchCommitWriteStreams", - requestType = com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod() { - io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod; - if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) == null) { - BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod = getBatchCommitWriteStreamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCommitWriteStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("BatchCommitWriteStreams")) - .build(); - } - } - } - return getBatchCommitWriteStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getFlushRowsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FlushRows", - requestType = com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFlushRowsMethod() { - io.grpc.MethodDescriptor getFlushRowsMethod; - if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { - BigQueryWriteGrpc.getFlushRowsMethod = getFlushRowsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FlushRows")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.FlushRowsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1.FlushRowsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FlushRows")) - .build(); - } - } - } - return getFlushRowsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static BigQueryWriteStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteStub(channel, callOptions); - } - }; - return BigQueryWriteStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BigQueryWriteBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteBlockingStub(channel, callOptions); - } - }; - return BigQueryWriteBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static BigQueryWriteFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteFutureStub(channel, callOptions); - } - }; - return BigQueryWriteFutureStub.newStub(factory, channel); - } - - /** - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * For supplementary information about the Write API, see:
-   * https://cloud.google.com/bigquery/docs/write-api
-   * 
- */ - public static abstract class BigQueryWriteImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public void createWriteStream(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWriteStreamMethod(), responseObserver); - } - - /** - *
-     * Appends data to the given stream.
-     * If `offset` is specified, the `offset` is checked against the end of
-     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
-     * attempt is made to append to an offset beyond the current end of the stream
-     * or `ALREADY_EXISTS` if user provides an `offset` that has already been
-     * written to. User can retry with adjusted offset within the same RPC
-     * connection. If `offset` is not specified, append happens at the end of the
-     * stream.
-     * The response contains an optional offset at which the append
-     * happened.  No offset information will be returned for appends to a
-     * default stream.
-     * Responses are received in the same order in which requests are sent.
-     * There will be one response for each successful inserted request.  Responses
-     * may optionally embed error information if the originating AppendRequest was
-     * not successfully processed.
-     * The specifics of when successfully appended data is made visible to the
-     * table are governed by the type of stream:
-     * * For COMMITTED streams (which includes the default stream), data is
-     * visible immediately upon successful append.
-     * * For BUFFERED streams, data is made visible via a subsequent `FlushRows`
-     * rpc which advances a cursor to a newer offset in the stream.
-     * * For PENDING streams, data is not made visible until the stream itself is
-     * finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
-     * committed via the `BatchCommitWriteStreams` rpc.
-     * 
- */ - public io.grpc.stub.StreamObserver appendRows( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getAppendRowsMethod(), responseObserver); - } - - /** - *
-     * Gets information about a write stream.
-     * 
- */ - public void getWriteStream(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWriteStreamMethod(), responseObserver); - } - - /** - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public void finalizeWriteStream(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFinalizeWriteStreamMethod(), responseObserver); - } - - /** - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public void batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchCommitWriteStreamsMethod(), responseObserver); - } - - /** - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public void flushRows(com.google.cloud.bigquery.storage.v1.FlushRowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushRowsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream>( - this, METHODID_CREATE_WRITE_STREAM))) - .addMethod( - getAppendRowsMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1.AppendRowsResponse>( - this, METHODID_APPEND_ROWS))) - .addMethod( - getGetWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.WriteStream>( - this, METHODID_GET_WRITE_STREAM))) - .addMethod( - getFinalizeWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse>( - this, METHODID_FINALIZE_WRITE_STREAM))) - .addMethod( - getBatchCommitWriteStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse>( - this, METHODID_BATCH_COMMIT_WRITE_STREAMS))) - .addMethod( - getFlushRowsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1.FlushRowsResponse>( - this, METHODID_FLUSH_ROWS))) - .build(); - } - } - - /** - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * For supplementary information about the Write API, see:
-   * https://cloud.google.com/bigquery/docs/write-api
-   * 
- */ - public static final class BigQueryWriteStub extends io.grpc.stub.AbstractAsyncStub { - private BigQueryWriteStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteStub(channel, callOptions); - } - - /** - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public void createWriteStream(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Appends data to the given stream.
-     * If `offset` is specified, the `offset` is checked against the end of
-     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
-     * attempt is made to append to an offset beyond the current end of the stream
-     * or `ALREADY_EXISTS` if user provides an `offset` that has already been
-     * written to. User can retry with adjusted offset within the same RPC
-     * connection. If `offset` is not specified, append happens at the end of the
-     * stream.
-     * The response contains an optional offset at which the append
-     * happened.  No offset information will be returned for appends to a
-     * default stream.
-     * Responses are received in the same order in which requests are sent.
-     * There will be one response for each successful inserted request.  Responses
-     * may optionally embed error information if the originating AppendRequest was
-     * not successfully processed.
-     * The specifics of when successfully appended data is made visible to the
-     * table are governed by the type of stream:
-     * * For COMMITTED streams (which includes the default stream), data is
-     * visible immediately upon successful append.
-     * * For BUFFERED streams, data is made visible via a subsequent `FlushRows`
-     * rpc which advances a cursor to a newer offset in the stream.
-     * * For PENDING streams, data is not made visible until the stream itself is
-     * finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
-     * committed via the `BatchCommitWriteStreams` rpc.
-     * 
- */ - public io.grpc.stub.StreamObserver appendRows( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getAppendRowsMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * Gets information about a write stream.
-     * 
- */ - public void getWriteStream(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public void finalizeWriteStream(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public void batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public void flushRows(com.google.cloud.bigquery.storage.v1.FlushRowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * For supplementary information about the Write API, see:
-   * https://cloud.google.com/bigquery/docs/write-api
-   * 
- */ - public static final class BigQueryWriteBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BigQueryWriteBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1.WriteStream createWriteStream(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWriteStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets information about a write stream.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWriteStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse finalizeWriteStream(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFinalizeWriteStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCommitWriteStreamsMethod(), getCallOptions(), request); - } - - /** - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1.FlushRowsResponse flushRows(com.google.cloud.bigquery.storage.v1.FlushRowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFlushRowsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * For supplementary information about the Write API, see:
-   * https://cloud.google.com/bigquery/docs/write-api
-   * 
- */ - public static final class BigQueryWriteFutureStub extends io.grpc.stub.AbstractFutureStub { - private BigQueryWriteFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWriteStream( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets information about a write stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWriteStream( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture finalizeWriteStream( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchCommitWriteStreams( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request); - } - - /** - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture flushRows( - com.google.cloud.bigquery.storage.v1.FlushRowsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_WRITE_STREAM = 0; - private static final int METHODID_GET_WRITE_STREAM = 1; - private static final int METHODID_FINALIZE_WRITE_STREAM = 2; - private static final int METHODID_BATCH_COMMIT_WRITE_STREAMS = 3; - private static final int METHODID_FLUSH_ROWS = 4; - private static final int METHODID_APPEND_ROWS = 5; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final BigQueryWriteImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BigQueryWriteImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_WRITE_STREAM: - serviceImpl.createWriteStream((com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WRITE_STREAM: - serviceImpl.getWriteStream((com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FINALIZE_WRITE_STREAM: - serviceImpl.finalizeWriteStream((com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_COMMIT_WRITE_STREAMS: - serviceImpl.batchCommitWriteStreams((com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FLUSH_ROWS: - serviceImpl.flushRows((com.google.cloud.bigquery.storage.v1.FlushRowsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_APPEND_ROWS: - return (io.grpc.stub.StreamObserver) serviceImpl.appendRows( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class BigQueryWriteBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BigQueryWriteBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BigQueryWrite"); - } - } - - private static final class BigQueryWriteFileDescriptorSupplier - extends BigQueryWriteBaseDescriptorSupplier { - BigQueryWriteFileDescriptorSupplier() {} - } - - private static final class BigQueryWriteMethodDescriptorSupplier - extends BigQueryWriteBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BigQueryWriteMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (BigQueryWriteGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BigQueryWriteFileDescriptorSupplier()) - .addMethod(getCreateWriteStreamMethod()) - .addMethod(getAppendRowsMethod()) - .addMethod(getGetWriteStreamMethod()) - .addMethod(getFinalizeWriteStreamMethod()) - .addMethod(getBatchCommitWriteStreamsMethod()) - .addMethod(getFlushRowsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java deleted file mode 100644 index 045dfa190e..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/annotations.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class AnnotationsProto { - private AnnotationsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - registry.add(com.google.cloud.bigquery.storage.v1.AnnotationsProto.columnName); - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public static final int COLUMN_NAME_FIELD_NUMBER = 454943157; - /** - *
-   * Setting the column_name extension allows users to reference
-   * bigquery column independently of the field name in the protocol buffer
-   * message.
-   * The intended use of this annotation is to reference a destination column
-   * named using characters unavailable for protobuf field names (e.g. unicode
-   * characters).
-   * More details about BigQuery naming limitations can be found here:
-   * https://cloud.google.com/bigquery/docs/schemas#column_names
-   * This extension is currently experimental.
-   * 
- * - * extend .google.protobuf.FieldOptions { ... } - */ - public static final - com.google.protobuf.GeneratedMessage.GeneratedExtension< - com.google.protobuf.DescriptorProtos.FieldOptions, - java.lang.String> columnName = com.google.protobuf.GeneratedMessage - .newFileScopedGeneratedExtension( - java.lang.String.class, - null); - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/bigquery/storage/v1/annot" + - "ations.proto\022 google.cloud.bigquery.stor" + - "age.v1\032 google/protobuf/descriptor.proto" + - ":9\n\013column_name\022\035.google.protobuf.FieldO" + - "ptions\030\265\303\367\330\001 \001(\t\210\001\001B\300\001\n$com.google.cloud" + - ".bigquery.storage.v1B\020AnnotationsProtoP\001" + - "Z>cloud.google.com/go/bigquery/storage/a" + - "piv1/storagepb;storagepb\252\002 Google.Cloud." + - "BigQuery.Storage.V1\312\002 Google\\Cloud\\BigQu" + - "ery\\Storage\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DescriptorProtos.getDescriptor(), - }); - columnName.internalInit(descriptor.getExtensions().get(0)); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java deleted file mode 100644 index 14ee256f03..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java +++ /dev/null @@ -1,83 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/arrow.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class ArrowProto { - private ArrowProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/bigquery/storage/v1/arrow" + - ".proto\022 google.cloud.bigquery.storage.v1" + - "\"(\n\013ArrowSchema\022\031\n\021serialized_schema\030\001 \001" + - "(\014\"J\n\020ArrowRecordBatch\022\037\n\027serialized_rec" + - "ord_batch\030\001 \001(\014\022\025\n\trow_count\030\002 \001(\003B\002\030\001\"\317" + - "\001\n\031ArrowSerializationOptions\022h\n\022buffer_c" + - "ompression\030\002 \001(\0162L.google.cloud.bigquery" + - ".storage.v1.ArrowSerializationOptions.Co" + - "mpressionCodec\"H\n\020CompressionCodec\022\033\n\027CO" + - "MPRESSION_UNSPECIFIED\020\000\022\r\n\tLZ4_FRAME\020\001\022\010" + - "\n\004ZSTD\020\002B\272\001\n$com.google.cloud.bigquery.s" + - "torage.v1B\nArrowProtoP\001Z>cloud.google.co" + - "m/go/bigquery/storage/apiv1/storagepb;st" + - "oragepb\252\002 Google.Cloud.BigQuery.Storage." + - "V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1b\006p" + - "roto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor, - new java.lang.String[] { "SerializedSchema", }); - internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor, - new java.lang.String[] { "SerializedRecordBatch", "RowCount", }); - internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor, - new java.lang.String[] { "BufferCompression", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java deleted file mode 100644 index 5a10e618b2..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/arrow.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface ArrowSchemaOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowSchema) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * IPC serialized Arrow schema.
-   * 
- * - * bytes serialized_schema = 1; - * @return The serializedSchema. - */ - com.google.protobuf.ByteString getSerializedSchema(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java deleted file mode 100644 index 902c0cf3a1..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/arrow.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface ArrowSerializationOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The compression codec to use for Arrow buffers in serialized record
-   * batches.
-   * 
- * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * @return The enum numeric value on the wire for bufferCompression. - */ - int getBufferCompressionValue(); - /** - *
-   * The compression codec to use for Arrow buffers in serialized record
-   * batches.
-   * 
- * - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; - * @return The bufferCompression. - */ - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec getBufferCompression(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java deleted file mode 100644 index 9d10e926dc..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/avro.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class AvroProto { - private AvroProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/bigquery/storage/v1/avro." + - "proto\022 google.cloud.bigquery.storage.v1\"" + - "\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"A\n\010AvroRow" + - "s\022\036\n\026serialized_binary_rows\030\001 \001(\014\022\025\n\trow" + - "_count\030\002 \001(\003B\002\030\001\"A\n\030AvroSerializationOpt" + - "ions\022%\n\035enable_display_name_attribute\030\001 " + - "\001(\010B\271\001\n$com.google.cloud.bigquery.storag" + - "e.v1B\tAvroProtoP\001Z>cloud.google.com/go/b" + - "igquery/storage/apiv1/storagepb;storagep" + - "b\252\002 Google.Cloud.BigQuery.Storage.V1\312\002 G" + - "oogle\\Cloud\\BigQuery\\Storage\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor, - new java.lang.String[] { "Schema", }); - internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor, - new java.lang.String[] { "SerializedBinaryRows", "RowCount", }); - internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor, - new java.lang.String[] { "EnableDisplayNameAttribute", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java deleted file mode 100644 index dc9030be18..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface CreateWriteStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Reference to the table to which the stream belongs, in the format
-   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Reference to the table to which the stream belongs, in the format
-   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Stream to be created.
-   * 
- * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the writeStream field is set. - */ - boolean hasWriteStream(); - /** - *
-   * Required. Stream to be created.
-   * 
- * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The writeStream. - */ - com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream(); - /** - *
-   * Required. Stream to be created.
-   * 
- * - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder getWriteStreamOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java deleted file mode 100644 index f1f0861c0f..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface FinalizeWriteStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the stream to finalize, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the stream to finalize, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java deleted file mode 100644 index e118c45f70..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface FinalizeWriteStreamResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Number of rows in the finalized stream.
-   * 
- * - * int64 row_count = 1; - * @return The rowCount. - */ - long getRowCount(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java deleted file mode 100644 index cefdb2bb27..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface FlushRowsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FlushRowsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The rows before this offset (including this offset) are flushed.
-   * 
- * - * int64 offset = 1; - * @return The offset. - */ - long getOffset(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java deleted file mode 100644 index 4ed7b7b037..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/protobuf.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class ProtoBufProto { - private ProtoBufProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/google/cloud/bigquery/storage/v1/proto" + - "buf.proto\022 google.cloud.bigquery.storage" + - ".v1\032 google/protobuf/descriptor.proto\"I\n" + - "\013ProtoSchema\022:\n\020proto_descriptor\030\001 \001(\0132 " + - ".google.protobuf.DescriptorProto\"$\n\tProt" + - "oRows\022\027\n\017serialized_rows\030\001 \003(\014B\275\001\n$com.g" + - "oogle.cloud.bigquery.storage.v1B\rProtoBu" + - "fProtoP\001Z>cloud.google.com/go/bigquery/s" + - "torage/apiv1/storagepb;storagepb\252\002 Googl" + - "e.Cloud.BigQuery.Storage.V1\312\002 Google\\Clo" + - "ud\\BigQuery\\Storage\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DescriptorProtos.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor, - new java.lang.String[] { "ProtoDescriptor", }); - internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor, - new java.lang.String[] { "SerializedRows", }); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java deleted file mode 100644 index a695b011a8..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface ReadRowsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadRowsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Stream to read rows from.
-   * 
- * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The readStream. - */ - java.lang.String getReadStream(); - /** - *
-   * Required. Stream to read rows from.
-   * 
- * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for readStream. - */ - com.google.protobuf.ByteString - getReadStreamBytes(); - - /** - *
-   * The offset requested must be less than the last row read from Read.
-   * Requesting a larger offset is undefined. If not specified, start reading
-   * from offset zero.
-   * 
- * - * int64 offset = 2; - * @return The offset. - */ - long getOffset(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java deleted file mode 100644 index 524e1286e8..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java +++ /dev/null @@ -1,499 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class StorageProto { - private StorageProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.google/cloud/bigquery/storage/v1/stora" + - "ge.proto\022 google.cloud.bigquery.storage." + - "v1\032\034google/api/annotations.proto\032\027google" + - "/api/client.proto\032\037google/api/field_beha" + - "vior.proto\032\031google/api/resource.proto\032,g" + - "oogle/cloud/bigquery/storage/v1/arrow.pr" + - "oto\032+google/cloud/bigquery/storage/v1/av" + - "ro.proto\032/google/cloud/bigquery/storage/" + - "v1/protobuf.proto\032-google/cloud/bigquery" + - "/storage/v1/stream.proto\032,google/cloud/b" + - "igquery/storage/v1/table.proto\032\037google/p" + - "rotobuf/timestamp.proto\032\036google/protobuf" + - "/wrappers.proto\032\027google/rpc/status.proto" + - "\"\347\001\n\030CreateReadSessionRequest\022C\n\006parent\030" + - "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" + - "leapis.com/Project\022H\n\014read_session\030\002 \001(\013" + - "2-.google.cloud.bigquery.storage.v1.Read" + - "SessionB\003\340A\002\022\030\n\020max_stream_count\030\003 \001(\005\022\"" + - "\n\032preferred_min_stream_count\030\004 \001(\005\"i\n\017Re" + - "adRowsRequest\022F\n\013read_stream\030\001 \001(\tB1\340A\002\372" + - "A+\n)bigquerystorage.googleapis.com/ReadS" + - "tream\022\016\n\006offset\030\002 \001(\003\")\n\rThrottleState\022\030" + - "\n\020throttle_percent\030\001 \001(\005\"\227\001\n\013StreamStats" + - "\022H\n\010progress\030\002 \001(\01326.google.cloud.bigque" + - "ry.storage.v1.StreamStats.Progress\032>\n\010Pr" + - "ogress\022\031\n\021at_response_start\030\001 \001(\001\022\027\n\017at_" + - "response_end\030\002 \001(\001\"\347\003\n\020ReadRowsResponse\022" + - "?\n\tavro_rows\030\003 \001(\0132*.google.cloud.bigque" + - "ry.storage.v1.AvroRowsH\000\022P\n\022arrow_record" + - "_batch\030\004 \001(\01322.google.cloud.bigquery.sto" + - "rage.v1.ArrowRecordBatchH\000\022\021\n\trow_count\030" + - "\006 \001(\003\022<\n\005stats\030\002 \001(\0132-.google.cloud.bigq" + - "uery.storage.v1.StreamStats\022G\n\016throttle_" + - "state\030\005 \001(\0132/.google.cloud.bigquery.stor" + - "age.v1.ThrottleState\022H\n\013avro_schema\030\007 \001(" + - "\0132,.google.cloud.bigquery.storage.v1.Avr" + - "oSchemaB\003\340A\003H\001\022J\n\014arrow_schema\030\010 \001(\0132-.g" + - "oogle.cloud.bigquery.storage.v1.ArrowSch" + - "emaB\003\340A\003H\001B\006\n\004rowsB\010\n\006schema\"k\n\026SplitRea" + - "dStreamRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)bi" + - "gquerystorage.googleapis.com/ReadStream\022" + - "\020\n\010fraction\030\002 \001(\001\"\247\001\n\027SplitReadStreamRes" + - "ponse\022D\n\016primary_stream\030\001 \001(\0132,.google.c" + - "loud.bigquery.storage.v1.ReadStream\022F\n\020r" + - "emainder_stream\030\002 \001(\0132,.google.cloud.big" + - "query.storage.v1.ReadStream\"\233\001\n\030CreateWr" + - "iteStreamRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" + - "\n\035bigquery.googleapis.com/Table\022H\n\014write" + - "_stream\030\002 \001(\0132-.google.cloud.bigquery.st" + - "orage.v1.WriteStreamB\003\340A\002\"\211\006\n\021AppendRows" + - "Request\022H\n\014write_stream\030\001 \001(\tB2\340A\002\372A,\n*b" + - "igquerystorage.googleapis.com/WriteStrea" + - "m\022+\n\006offset\030\002 \001(\0132\033.google.protobuf.Int6" + - "4Value\022S\n\nproto_rows\030\004 \001(\0132=.google.clou" + - "d.bigquery.storage.v1.AppendRowsRequest." + - "ProtoDataH\000\022\020\n\010trace_id\030\006 \001(\t\022{\n\035missing" + - "_value_interpretations\030\007 \003(\0132T.google.cl" + - "oud.bigquery.storage.v1.AppendRowsReques" + - "t.MissingValueInterpretationsEntry\032\214\001\n\tP" + - "rotoData\022D\n\rwriter_schema\030\001 \001(\0132-.google" + - ".cloud.bigquery.storage.v1.ProtoSchema\0229" + - "\n\004rows\030\002 \001(\0132+.google.cloud.bigquery.sto" + - "rage.v1.ProtoRows\032\222\001\n MissingValueInterp" + - "retationsEntry\022\013\n\003key\030\001 \001(\t\022]\n\005value\030\002 \001" + - "(\0162N.google.cloud.bigquery.storage.v1.Ap" + - "pendRowsRequest.MissingValueInterpretati" + - "on:\0028\001\"m\n\032MissingValueInterpretation\022,\n(" + - "MISSING_VALUE_INTERPRETATION_UNSPECIFIED" + - "\020\000\022\016\n\nNULL_VALUE\020\001\022\021\n\rDEFAULT_VALUE\020\002B\006\n" + - "\004rows\"\373\002\n\022AppendRowsResponse\022Z\n\rappend_r" + - "esult\030\001 \001(\0132A.google.cloud.bigquery.stor" + - "age.v1.AppendRowsResponse.AppendResultH\000" + - "\022#\n\005error\030\002 \001(\0132\022.google.rpc.StatusH\000\022E\n" + - "\016updated_schema\030\003 \001(\0132-.google.cloud.big" + - "query.storage.v1.TableSchema\022>\n\nrow_erro" + - "rs\030\004 \003(\0132*.google.cloud.bigquery.storage" + - ".v1.RowError\022\024\n\014write_stream\030\005 \001(\t\032;\n\014Ap" + - "pendResult\022+\n\006offset\030\001 \001(\0132\033.google.prot" + - "obuf.Int64ValueB\n\n\010response\"\232\001\n\025GetWrite" + - "StreamRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*big" + - "querystorage.googleapis.com/WriteStream\022" + - "?\n\004view\030\003 \001(\01621.google.cloud.bigquery.st" + - "orage.v1.WriteStreamView\"s\n\036BatchCommitW" + - "riteStreamsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372" + - "A\037\n\035bigquery.googleapis.com/Table\022\032\n\rwri" + - "te_streams\030\002 \003(\tB\003\340A\002\"\231\001\n\037BatchCommitWri" + - "teStreamsResponse\022/\n\013commit_time\030\001 \001(\0132\032" + - ".google.protobuf.Timestamp\022E\n\rstream_err" + - "ors\030\002 \003(\0132..google.cloud.bigquery.storag" + - "e.v1.StorageError\"^\n\032FinalizeWriteStream" + - "Request\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquerys" + - "torage.googleapis.com/WriteStream\"0\n\033Fin" + - "alizeWriteStreamResponse\022\021\n\trow_count\030\001 " + - "\001(\003\"\211\001\n\020FlushRowsRequest\022H\n\014write_stream" + - "\030\001 \001(\tB2\340A\002\372A,\n*bigquerystorage.googleap" + - "is.com/WriteStream\022+\n\006offset\030\002 \001(\0132\033.goo" + - "gle.protobuf.Int64Value\"#\n\021FlushRowsResp" + - "onse\022\016\n\006offset\030\001 \001(\003\"\245\003\n\014StorageError\022M\n" + - "\004code\030\001 \001(\0162?.google.cloud.bigquery.stor" + - "age.v1.StorageError.StorageErrorCode\022\016\n\006" + - "entity\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\"\236\002\n\020" + - "StorageErrorCode\022\"\n\036STORAGE_ERROR_CODE_U" + - "NSPECIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STR" + - "EAM_ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FO" + - "UND\020\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALI" + - "D_STREAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\006\022 " + - "\n\034SCHEMA_MISMATCH_EXTRA_FIELDS\020\007\022\031\n\025OFFS" + - "ET_ALREADY_EXISTS\020\010\022\027\n\023OFFSET_OUT_OF_RAN" + - "GE\020\t\"\263\001\n\010RowError\022\r\n\005index\030\001 \001(\003\022E\n\004code" + - "\030\002 \001(\01627.google.cloud.bigquery.storage.v" + - "1.RowError.RowErrorCode\022\017\n\007message\030\003 \001(\t" + - "\"@\n\014RowErrorCode\022\036\n\032ROW_ERROR_CODE_UNSPE" + - "CIFIED\020\000\022\020\n\014FIELDS_ERROR\020\0012\222\006\n\014BigQueryR" + - "ead\022\351\001\n\021CreateReadSession\022:.google.cloud" + - ".bigquery.storage.v1.CreateReadSessionRe" + - "quest\032-.google.cloud.bigquery.storage.v1" + - ".ReadSession\"i\202\323\344\223\002<\"7/v1/{read_session." + - "table=projects/*/datasets/*/tables/*}:\001*" + - "\332A$parent,read_session,max_stream_count\022" + - "\317\001\n\010ReadRows\0221.google.cloud.bigquery.sto" + - "rage.v1.ReadRowsRequest\0322.google.cloud.b" + - "igquery.storage.v1.ReadRowsResponse\"Z\202\323\344" + - "\223\002?\022=/v1/{read_stream=projects/*/locatio" + - "ns/*/sessions/*/streams/*}\332A\022read_stream" + - ",offset0\001\022\306\001\n\017SplitReadStream\0228.google.c" + - "loud.bigquery.storage.v1.SplitReadStream" + - "Request\0329.google.cloud.bigquery.storage." + - "v1.SplitReadStreamResponse\">\202\323\344\223\0028\0226/v1/" + - "{name=projects/*/locations/*/sessions/*/" + - "streams/*}\032{\312A\036bigquerystorage.googleapi" + - "s.com\322AWhttps://www.googleapis.com/auth/" + - "bigquery,https://www.googleapis.com/auth" + - "/cloud-platform2\274\013\n\rBigQueryWrite\022\327\001\n\021Cr" + - "eateWriteStream\022:.google.cloud.bigquery." + - "storage.v1.CreateWriteStreamRequest\032-.go" + - "ogle.cloud.bigquery.storage.v1.WriteStre" + - "am\"W\202\323\344\223\002;\"+/v1/{parent=projects/*/datas" + - "ets/*/tables/*}:\014write_stream\332A\023parent,w" + - "rite_stream\022\322\001\n\nAppendRows\0223.google.clou" + - "d.bigquery.storage.v1.AppendRowsRequest\032" + - "4.google.cloud.bigquery.storage.v1.Appen" + - "dRowsResponse\"U\202\323\344\223\002@\";/v1/{write_stream" + - "=projects/*/datasets/*/tables/*/streams/" + - "*}:\001*\332A\014write_stream(\0010\001\022\277\001\n\016GetWriteStr" + - "eam\0227.google.cloud.bigquery.storage.v1.G" + - "etWriteStreamRequest\032-.google.cloud.bigq" + - "uery.storage.v1.WriteStream\"E\202\323\344\223\0028\"3/v1" + - "/{name=projects/*/datasets/*/tables/*/st" + - "reams/*}:\001*\332A\004name\022\331\001\n\023FinalizeWriteStre" + - "am\022<.google.cloud.bigquery.storage.v1.Fi" + - "nalizeWriteStreamRequest\032=.google.cloud." + - "bigquery.storage.v1.FinalizeWriteStreamR" + - "esponse\"E\202\323\344\223\0028\"3/v1/{name=projects/*/da" + - "tasets/*/tables/*/streams/*}:\001*\332A\004name\022\334" + - "\001\n\027BatchCommitWriteStreams\022@.google.clou" + - "d.bigquery.storage.v1.BatchCommitWriteSt" + - "reamsRequest\032A.google.cloud.bigquery.sto" + - "rage.v1.BatchCommitWriteStreamsResponse\"" + - "<\202\323\344\223\002-\022+/v1/{parent=projects/*/datasets" + - "/*/tables/*}\332A\006parent\022\313\001\n\tFlushRows\0222.go" + - "ogle.cloud.bigquery.storage.v1.FlushRows" + - "Request\0323.google.cloud.bigquery.storage." + - "v1.FlushRowsResponse\"U\202\323\344\223\002@\";/v1/{write" + - "_stream=projects/*/datasets/*/tables/*/s" + - "treams/*}:\001*\332A\014write_stream\032\260\001\312A\036bigquer" + - "ystorage.googleapis.com\322A\213\001https://www.g" + - "oogleapis.com/auth/bigquery,https://www." + - "googleapis.com/auth/bigquery.insertdata," + - "https://www.googleapis.com/auth/cloud-pl" + - "atformB\224\002\n$com.google.cloud.bigquery.sto" + - "rage.v1B\014StorageProtoP\001Z>cloud.google.co" + - "m/go/bigquery/storage/apiv1/storagepb;st" + - "oragepb\252\002 Google.Cloud.BigQuery.Storage." + - "V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1\352AU" + - "\n\035bigquery.googleapis.com/Table\0224project" + - "s/{project}/datasets/{dataset}/tables/{t" + - "able}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.ProtoBufProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor, - new java.lang.String[] { "Parent", "ReadSession", "MaxStreamCount", "PreferredMinStreamCount", }); - internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor, - new java.lang.String[] { "ReadStream", "Offset", }); - internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor, - new java.lang.String[] { "ThrottlePercent", }); - internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor, - new java.lang.String[] { "Progress", }); - internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor = - internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor, - new java.lang.String[] { "AtResponseStart", "AtResponseEnd", }); - internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor, - new java.lang.String[] { "AvroRows", "ArrowRecordBatch", "RowCount", "Stats", "ThrottleState", "AvroSchema", "ArrowSchema", "Rows", "Schema", }); - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor, - new java.lang.String[] { "Name", "Fraction", }); - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor, - new java.lang.String[] { "PrimaryStream", "RemainderStream", }); - internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor, - new java.lang.String[] { "Parent", "WriteStream", }); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor, - new java.lang.String[] { "WriteStream", "Offset", "ProtoRows", "TraceId", "MissingValueInterpretations", "Rows", }); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor = - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor, - new java.lang.String[] { "WriterSchema", "Rows", }); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor = - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor, - new java.lang.String[] { "AppendResult", "Error", "UpdatedSchema", "RowErrors", "WriteStream", "Response", }); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor = - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor, - new java.lang.String[] { "Offset", }); - internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor, - new java.lang.String[] { "Name", "View", }); - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor, - new java.lang.String[] { "Parent", "WriteStreams", }); - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor, - new java.lang.String[] { "CommitTime", "StreamErrors", }); - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor, - new java.lang.String[] { "RowCount", }); - internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor, - new java.lang.String[] { "WriteStream", "Offset", }); - internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor, - new java.lang.String[] { "Offset", }); - internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor, - new java.lang.String[] { "Code", "Entity", "ErrorMessage", }); - internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor, - new java.lang.String[] { "Index", "Code", "Message", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.ProtoBufProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java deleted file mode 100644 index 0955002e8f..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java +++ /dev/null @@ -1,175 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/stream.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class StreamProto { - private StreamProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/bigquery/storage/v1/strea" + - "m.proto\022 google.cloud.bigquery.storage.v" + - "1\032\037google/api/field_behavior.proto\032\031goog" + - "le/api/resource.proto\032,google/cloud/bigq" + - "uery/storage/v1/arrow.proto\032+google/clou" + - "d/bigquery/storage/v1/avro.proto\032,google" + - "/cloud/bigquery/storage/v1/table.proto\032\037" + - "google/protobuf/timestamp.proto\"\304\t\n\013Read" + - "Session\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013expire_tim" + - "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + - "\022F\n\013data_format\030\003 \001(\0162,.google.cloud.big" + - "query.storage.v1.DataFormatB\003\340A\005\022H\n\013avro" + - "_schema\030\004 \001(\0132,.google.cloud.bigquery.st" + - "orage.v1.AvroSchemaB\003\340A\003H\000\022J\n\014arrow_sche" + - "ma\030\005 \001(\0132-.google.cloud.bigquery.storage" + - ".v1.ArrowSchemaB\003\340A\003H\000\0224\n\005table\030\006 \001(\tB%\340" + - "A\005\372A\037\n\035bigquery.googleapis.com/Table\022Z\n\017" + - "table_modifiers\030\007 \001(\0132<.google.cloud.big" + - "query.storage.v1.ReadSession.TableModifi" + - "ersB\003\340A\001\022Y\n\014read_options\030\010 \001(\0132>.google." + - "cloud.bigquery.storage.v1.ReadSession.Ta" + - "bleReadOptionsB\003\340A\001\022B\n\007streams\030\n \003(\0132,.g" + - "oogle.cloud.bigquery.storage.v1.ReadStre" + - "amB\003\340A\003\022*\n\035estimated_total_bytes_scanned" + - "\030\014 \001(\003B\003\340A\003\022 \n\023estimated_row_count\030\016 \001(\003" + - "B\003\340A\003\022\025\n\010trace_id\030\r \001(\tB\003\340A\001\032C\n\016TableMod" + - "ifiers\0221\n\rsnapshot_time\030\001 \001(\0132\032.google.p" + - "rotobuf.Timestamp\032\273\002\n\020TableReadOptions\022\027" + - "\n\017selected_fields\030\001 \003(\t\022\027\n\017row_restricti" + - "on\030\002 \001(\t\022g\n\033arrow_serialization_options\030" + - "\003 \001(\0132;.google.cloud.bigquery.storage.v1" + - ".ArrowSerializationOptionsB\003\340A\001H\000\022e\n\032avr" + - "o_serialization_options\030\004 \001(\0132:.google.c" + - "loud.bigquery.storage.v1.AvroSerializati" + - "onOptionsB\003\340A\001H\000B%\n#output_format_serial" + - "ization_options:k\352Ah\n*bigquerystorage.go" + - "ogleapis.com/ReadSession\022:projects/{proj" + - "ect}/locations/{location}/sessions/{sess" + - "ion}B\010\n\006schema\"\234\001\n\nReadStream\022\021\n\004name\030\001 " + - "\001(\tB\003\340A\003:{\352Ax\n)bigquerystorage.googleapi" + - "s.com/ReadStream\022Kprojects/{project}/loc" + - "ations/{location}/sessions/{session}/str" + - "eams/{stream}\"\373\004\n\013WriteStream\022\021\n\004name\030\001 " + - "\001(\tB\003\340A\003\022E\n\004type\030\002 \001(\01622.google.cloud.bi" + - "gquery.storage.v1.WriteStream.TypeB\003\340A\005\022" + - "4\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\0224\n\013commit_time\030\004 \001(\0132\032.goo" + - "gle.protobuf.TimestampB\003\340A\003\022H\n\014table_sch" + - "ema\030\005 \001(\0132-.google.cloud.bigquery.storag" + - "e.v1.TableSchemaB\003\340A\003\022P\n\nwrite_mode\030\007 \001(" + - "\01627.google.cloud.bigquery.storage.v1.Wri" + - "teStream.WriteModeB\003\340A\005\022\025\n\010location\030\010 \001(" + - "\tB\003\340A\005\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\t" + - "COMMITTED\020\001\022\013\n\007PENDING\020\002\022\014\n\010BUFFERED\020\003\"3" + - "\n\tWriteMode\022\032\n\026WRITE_MODE_UNSPECIFIED\020\000\022" + - "\n\n\006INSERT\020\001:v\352As\n*bigquerystorage.google" + - "apis.com/WriteStream\022Eprojects/{project}" + - "/datasets/{dataset}/tables/{table}/strea" + - "ms/{stream}*>\n\nDataFormat\022\033\n\027DATA_FORMAT" + - "_UNSPECIFIED\020\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\002*I\n\017W" + - "riteStreamView\022!\n\035WRITE_STREAM_VIEW_UNSP" + - "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002B\273\001\n$com.g" + - "oogle.cloud.bigquery.storage.v1B\013StreamP" + - "rotoP\001Z>cloud.google.com/go/bigquery/sto" + - "rage/apiv1/storagepb;storagepb\252\002 Google." + - "Cloud.BigQuery.Storage.V1\312\002 Google\\Cloud" + - "\\BigQuery\\Storage\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor, - new java.lang.String[] { "Name", "ExpireTime", "DataFormat", "AvroSchema", "ArrowSchema", "Table", "TableModifiers", "ReadOptions", "Streams", "EstimatedTotalBytesScanned", "EstimatedRowCount", "TraceId", "Schema", }); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor = - internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor, - new java.lang.String[] { "SnapshotTime", }); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor = - internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor, - new java.lang.String[] { "SelectedFields", "RowRestriction", "ArrowSerializationOptions", "AvroSerializationOptions", "OutputFormatSerializationOptions", }); - internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor, - new java.lang.String[] { "Name", "Type", "CreateTime", "CommitTime", "TableSchema", "WriteMode", "Location", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java deleted file mode 100644 index 5c3f51e9e9..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/table.proto - -package com.google.cloud.bigquery.storage.v1; - -public final class TableProto { - private TableProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/bigquery/storage/v1/table" + - ".proto\022 google.cloud.bigquery.storage.v1" + - "\032\037google/api/field_behavior.proto\"Q\n\013Tab" + - "leSchema\022B\n\006fields\030\001 \003(\01322.google.cloud." + - "bigquery.storage.v1.TableFieldSchema\"\254\005\n" + - "\020TableFieldSchema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022J\n\004" + - "type\030\002 \001(\01627.google.cloud.bigquery.stora" + - "ge.v1.TableFieldSchema.TypeB\003\340A\002\022J\n\004mode" + - "\030\003 \001(\01627.google.cloud.bigquery.storage.v" + - "1.TableFieldSchema.ModeB\003\340A\001\022G\n\006fields\030\004" + - " \003(\01322.google.cloud.bigquery.storage.v1." + - "TableFieldSchemaB\003\340A\001\022\030\n\013description\030\006 \001" + - "(\tB\003\340A\001\022\027\n\nmax_length\030\007 \001(\003B\003\340A\001\022\026\n\tprec" + - "ision\030\010 \001(\003B\003\340A\001\022\022\n\005scale\030\t \001(\003B\003\340A\001\022%\n\030" + - "default_value_expression\030\n \001(\tB\003\340A\001\"\325\001\n\004" + - "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\t" + - "\n\005INT64\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRUCT\020\004\022\t\n\005BYT" + - "ES\020\005\022\010\n\004BOOL\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020\010\022" + - "\010\n\004TIME\020\t\022\014\n\010DATETIME\020\n\022\r\n\tGEOGRAPHY\020\013\022\013" + - "\n\007NUMERIC\020\014\022\016\n\nBIGNUMERIC\020\r\022\014\n\010INTERVAL\020" + - "\016\022\010\n\004JSON\020\017\"F\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" + - "\000\022\014\n\010NULLABLE\020\001\022\014\n\010REQUIRED\020\002\022\014\n\010REPEATE" + - "D\020\003B\272\001\n$com.google.cloud.bigquery.storag" + - "e.v1B\nTableProtoP\001Z>cloud.google.com/go/" + - "bigquery/storage/apiv1/storagepb;storage" + - "pb\252\002 Google.Cloud.BigQuery.Storage.V1\312\002 " + - "Google\\Cloud\\BigQuery\\Storage\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor, - new java.lang.String[] { "Fields", }); - internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor, - new java.lang.String[] { "Name", "Type", "Mode", "Fields", "Description", "MaxLength", "Precision", "Scale", "DefaultValueExpression", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java deleted file mode 100644 index ed4dfcf538..0000000000 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1/storage.proto - -package com.google.cloud.bigquery.storage.v1; - -public interface ThrottleStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ThrottleState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * How much this connection is being throttled. Zero means no throttling,
-   * 100 means fully throttled.
-   * 
- * - * int32 throttle_percent = 1; - * @return The throttlePercent. - */ - int getThrottlePercent(); -} diff --git a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStubSettings.java b/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStubSettings.java deleted file mode 100644 index fc45582e5b..0000000000 --- a/owl-bot-staging/v1beta2/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/BigQueryReadStubSettings.java +++ /dev/null @@ -1,370 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigquery.storage.v1beta2.stub; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest; -import com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest; -import com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse; -import com.google.cloud.bigquery.storage.v1beta2.ReadSession; -import com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest; -import com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link BigQueryReadStub}. - * - *

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

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

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

For example, to set the total timeout of createReadSession to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * BigQueryReadStubSettings.Builder baseBigQueryReadSettingsBuilder =
- *     BigQueryReadStubSettings.newBuilder();
- * baseBigQueryReadSettingsBuilder
- *     .createReadSessionSettings()
- *     .setRetrySettings(
- *         baseBigQueryReadSettingsBuilder
- *             .createReadSessionSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * BigQueryReadStubSettings baseBigQueryReadSettings = baseBigQueryReadSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class BigQueryReadStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder() - .add("https://www.googleapis.com/auth/bigquery") - .add("https://www.googleapis.com/auth/cloud-platform") - .build(); - - private final UnaryCallSettings createReadSessionSettings; - private final ServerStreamingCallSettings readRowsSettings; - private final UnaryCallSettings - splitReadStreamSettings; - - /** Returns the object with the settings used for calls to createReadSession. */ - public UnaryCallSettings createReadSessionSettings() { - return createReadSessionSettings; - } - - /** Returns the object with the settings used for calls to readRows. */ - public ServerStreamingCallSettings readRowsSettings() { - return readRowsSettings; - } - - /** Returns the object with the settings used for calls to splitReadStream. */ - public UnaryCallSettings - splitReadStreamSettings() { - return splitReadStreamSettings; - } - - public BigQueryReadStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcBigQueryReadStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "bigquerystorage.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "bigquerystorage.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(BigQueryReadStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected BigQueryReadStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createReadSessionSettings = settingsBuilder.createReadSessionSettings().build(); - readRowsSettings = settingsBuilder.readRowsSettings().build(); - splitReadStreamSettings = settingsBuilder.splitReadStreamSettings().build(); - } - - /** Builder for BigQueryReadStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - createReadSessionSettings; - private final ServerStreamingCallSettings.Builder - readRowsSettings; - private final UnaryCallSettings.Builder - splitReadStreamSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "retry_policy_2_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(86400000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(86400000L)) - .setTotalTimeout(Duration.ofMillis(86400000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(600000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(600000L)) - .setTotalTimeout(Duration.ofMillis(600000L)) - .build(); - definitions.put("retry_policy_2_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - createReadSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - readRowsSettings = ServerStreamingCallSettings.newBuilder(); - splitReadStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createReadSessionSettings, splitReadStreamSettings); - initDefaults(this); - } - - protected Builder(BigQueryReadStubSettings settings) { - super(settings); - - createReadSessionSettings = settings.createReadSessionSettings.toBuilder(); - readRowsSettings = settings.readRowsSettings.toBuilder(); - splitReadStreamSettings = settings.splitReadStreamSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createReadSessionSettings, splitReadStreamSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .createReadSessionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .readRowsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .splitReadStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to createReadSession. */ - public UnaryCallSettings.Builder - createReadSessionSettings() { - return createReadSessionSettings; - } - - /** Returns the builder for the settings used for calls to readRows. */ - public ServerStreamingCallSettings.Builder - readRowsSettings() { - return readRowsSettings; - } - - /** Returns the builder for the settings used for calls to splitReadStream. */ - public UnaryCallSettings.Builder - splitReadStreamSettings() { - return splitReadStreamSettings; - } - - @Override - public BigQueryReadStubSettings build() throws IOException { - return new BigQueryReadStubSettings(this); - } - } -} diff --git a/owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java b/owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java deleted file mode 100644 index b9d3ede974..0000000000 --- a/owl-bot-staging/v1beta2/grpc-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BigQueryWriteGrpc.java +++ /dev/null @@ -1,806 +0,0 @@ -package com.google.cloud.bigquery.storage.v1beta2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *

- * BigQuery Write API.
- * The Write API can be used to write data to BigQuery.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/bigquery/storage/v1beta2/storage.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class BigQueryWriteGrpc { - - private BigQueryWriteGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.bigquery.storage.v1beta2.BigQueryWrite"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateWriteStream", - requestType = com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateWriteStreamMethod() { - io.grpc.MethodDescriptor getCreateWriteStreamMethod; - if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getCreateWriteStreamMethod = BigQueryWriteGrpc.getCreateWriteStreamMethod) == null) { - BigQueryWriteGrpc.getCreateWriteStreamMethod = getCreateWriteStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("CreateWriteStream")) - .build(); - } - } - } - return getCreateWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getAppendRowsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AppendRows", - requestType = com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getAppendRowsMethod() { - io.grpc.MethodDescriptor getAppendRowsMethod; - if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getAppendRowsMethod = BigQueryWriteGrpc.getAppendRowsMethod) == null) { - BigQueryWriteGrpc.getAppendRowsMethod = getAppendRowsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AppendRows")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("AppendRows")) - .build(); - } - } - } - return getAppendRowsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetWriteStream", - requestType = com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetWriteStreamMethod() { - io.grpc.MethodDescriptor getGetWriteStreamMethod; - if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getGetWriteStreamMethod = BigQueryWriteGrpc.getGetWriteStreamMethod) == null) { - BigQueryWriteGrpc.getGetWriteStreamMethod = getGetWriteStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("GetWriteStream")) - .build(); - } - } - } - return getGetWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getFinalizeWriteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FinalizeWriteStream", - requestType = com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFinalizeWriteStreamMethod() { - io.grpc.MethodDescriptor getFinalizeWriteStreamMethod; - if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getFinalizeWriteStreamMethod = BigQueryWriteGrpc.getFinalizeWriteStreamMethod) == null) { - BigQueryWriteGrpc.getFinalizeWriteStreamMethod = getFinalizeWriteStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FinalizeWriteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FinalizeWriteStream")) - .build(); - } - } - } - return getFinalizeWriteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchCommitWriteStreams", - requestType = com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod() { - io.grpc.MethodDescriptor getBatchCommitWriteStreamsMethod; - if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getBatchCommitWriteStreamsMethod = BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod) == null) { - BigQueryWriteGrpc.getBatchCommitWriteStreamsMethod = getBatchCommitWriteStreamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCommitWriteStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("BatchCommitWriteStreams")) - .build(); - } - } - } - return getBatchCommitWriteStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getFlushRowsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FlushRows", - requestType = com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, - responseType = com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFlushRowsMethod() { - io.grpc.MethodDescriptor getFlushRowsMethod; - if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { - synchronized (BigQueryWriteGrpc.class) { - if ((getFlushRowsMethod = BigQueryWriteGrpc.getFlushRowsMethod) == null) { - BigQueryWriteGrpc.getFlushRowsMethod = getFlushRowsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FlushRows")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.getDefaultInstance())) - .setSchemaDescriptor(new BigQueryWriteMethodDescriptorSupplier("FlushRows")) - .build(); - } - } - } - return getFlushRowsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static BigQueryWriteStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteStub(channel, callOptions); - } - }; - return BigQueryWriteStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static BigQueryWriteBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteBlockingStub(channel, callOptions); - } - }; - return BigQueryWriteBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static BigQueryWriteFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public BigQueryWriteFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteFutureStub(channel, callOptions); - } - }; - return BigQueryWriteFutureStub.newStub(factory, channel); - } - - /** - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * 
- */ - public static abstract class BigQueryWriteImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special COMMITTED stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public void createWriteStream(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWriteStreamMethod(), responseObserver); - } - - /** - *
-     * Appends data to the given stream.
-     * If `offset` is specified, the `offset` is checked against the end of
-     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
-     * attempt is made to append to an offset beyond the current end of the stream
-     * or `ALREADY_EXISTS` if user provids an `offset` that has already been
-     * written to. User can retry with adjusted offset within the same RPC
-     * stream. If `offset` is not specified, append happens at the end of the
-     * stream.
-     * The response contains the offset at which the append happened. Responses
-     * are received in the same order in which requests are sent. There will be
-     * one response for each successful request. If the `offset` is not set in
-     * response, it means append didn't happen due to some errors. If one request
-     * fails, all the subsequent requests will also fail until a success request
-     * is made again.
-     * If the stream is of `PENDING` type, data will only be available for read
-     * operations after the stream is committed.
-     * 
- */ - public io.grpc.stub.StreamObserver appendRows( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getAppendRowsMethod(), responseObserver); - } - - /** - *
-     * Gets a write stream.
-     * 
- */ - public void getWriteStream(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWriteStreamMethod(), responseObserver); - } - - /** - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public void finalizeWriteStream(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFinalizeWriteStreamMethod(), responseObserver); - } - - /** - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public void batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchCommitWriteStreamsMethod(), responseObserver); - } - - /** - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public void flushRows(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFlushRowsMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream>( - this, METHODID_CREATE_WRITE_STREAM))) - .addMethod( - getAppendRowsMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse>( - this, METHODID_APPEND_ROWS))) - .addMethod( - getGetWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.WriteStream>( - this, METHODID_GET_WRITE_STREAM))) - .addMethod( - getFinalizeWriteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest, - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse>( - this, METHODID_FINALIZE_WRITE_STREAM))) - .addMethod( - getBatchCommitWriteStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest, - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse>( - this, METHODID_BATCH_COMMIT_WRITE_STREAMS))) - .addMethod( - getFlushRowsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest, - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse>( - this, METHODID_FLUSH_ROWS))) - .build(); - } - } - - /** - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * 
- */ - public static final class BigQueryWriteStub extends io.grpc.stub.AbstractAsyncStub { - private BigQueryWriteStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteStub(channel, callOptions); - } - - /** - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special COMMITTED stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public void createWriteStream(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Appends data to the given stream.
-     * If `offset` is specified, the `offset` is checked against the end of
-     * stream. The server returns `OUT_OF_RANGE` in `AppendRowsResponse` if an
-     * attempt is made to append to an offset beyond the current end of the stream
-     * or `ALREADY_EXISTS` if user provids an `offset` that has already been
-     * written to. User can retry with adjusted offset within the same RPC
-     * stream. If `offset` is not specified, append happens at the end of the
-     * stream.
-     * The response contains the offset at which the append happened. Responses
-     * are received in the same order in which requests are sent. There will be
-     * one response for each successful request. If the `offset` is not set in
-     * response, it means append didn't happen due to some errors. If one request
-     * fails, all the subsequent requests will also fail until a success request
-     * is made again.
-     * If the stream is of `PENDING` type, data will only be available for read
-     * operations after the stream is committed.
-     * 
- */ - public io.grpc.stub.StreamObserver appendRows( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getAppendRowsMethod(), getCallOptions()), responseObserver); - } - - /** - *
-     * Gets a write stream.
-     * 
- */ - public void getWriteStream(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public void finalizeWriteStream(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public void batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public void flushRows(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * 
- */ - public static final class BigQueryWriteBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private BigQueryWriteBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special COMMITTED stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1beta2.WriteStream createWriteStream(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWriteStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a write stream.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWriteStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse finalizeWriteStream(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFinalizeWriteStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse batchCommitWriteStreams(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCommitWriteStreamsMethod(), getCallOptions(), request); - } - - /** - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse flushRows(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFlushRowsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * BigQuery Write API.
-   * The Write API can be used to write data to BigQuery.
-   * 
- */ - public static final class BigQueryWriteFutureStub extends io.grpc.stub.AbstractFutureStub { - private BigQueryWriteFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected BigQueryWriteFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new BigQueryWriteFutureStub(channel, callOptions); - } - - /** - *
-     * Creates a write stream to the given table.
-     * Additionally, every table has a special COMMITTED stream named '_default'
-     * to which data can be written. This stream doesn't need to be created using
-     * CreateWriteStream. It is a stream that can be used simultaneously by any
-     * number of clients. Data written to this stream is considered committed as
-     * soon as an acknowledgement is received.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createWriteStream( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWriteStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a write stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getWriteStream( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWriteStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Finalize a write stream so that no new data can be appended to the
-     * stream. Finalize is not supported on the '_default' stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture finalizeWriteStream( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFinalizeWriteStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Atomically commits a group of `PENDING` streams that belong to the same
-     * `parent` table.
-     * Streams must be finalized before commit and cannot be committed multiple
-     * times. Once a stream is committed, data in the stream becomes available
-     * for read operations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchCommitWriteStreams( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCommitWriteStreamsMethod(), getCallOptions()), request); - } - - /** - *
-     * Flushes rows to a BUFFERED stream.
-     * If users are appending rows to BUFFERED stream, flush operation is
-     * required in order for the rows to become available for reading. A
-     * Flush operation flushes up to any previously flushed offset in a BUFFERED
-     * stream, to the offset specified in the request.
-     * Flush is not supported on the _default stream, since it is not BUFFERED.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture flushRows( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFlushRowsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_WRITE_STREAM = 0; - private static final int METHODID_GET_WRITE_STREAM = 1; - private static final int METHODID_FINALIZE_WRITE_STREAM = 2; - private static final int METHODID_BATCH_COMMIT_WRITE_STREAMS = 3; - private static final int METHODID_FLUSH_ROWS = 4; - private static final int METHODID_APPEND_ROWS = 5; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final BigQueryWriteImplBase serviceImpl; - private final int methodId; - - MethodHandlers(BigQueryWriteImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_WRITE_STREAM: - serviceImpl.createWriteStream((com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_WRITE_STREAM: - serviceImpl.getWriteStream((com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FINALIZE_WRITE_STREAM: - serviceImpl.finalizeWriteStream((com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_COMMIT_WRITE_STREAMS: - serviceImpl.batchCommitWriteStreams((com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FLUSH_ROWS: - serviceImpl.flushRows((com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_APPEND_ROWS: - return (io.grpc.stub.StreamObserver) serviceImpl.appendRows( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class BigQueryWriteBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - BigQueryWriteBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("BigQueryWrite"); - } - } - - private static final class BigQueryWriteFileDescriptorSupplier - extends BigQueryWriteBaseDescriptorSupplier { - BigQueryWriteFileDescriptorSupplier() {} - } - - private static final class BigQueryWriteMethodDescriptorSupplier - extends BigQueryWriteBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - BigQueryWriteMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (BigQueryWriteGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new BigQueryWriteFileDescriptorSupplier()) - .addMethod(getCreateWriteStreamMethod()) - .addMethod(getAppendRowsMethod()) - .addMethod(getGetWriteStreamMethod()) - .addMethod(getFinalizeWriteStreamMethod()) - .addMethod(getBatchCommitWriteStreamsMethod()) - .addMethod(getFlushRowsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java deleted file mode 100644 index b569f579af..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/arrow.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class ArrowProto { - private ArrowProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/bigquery/storage/v1beta2/" + - "arrow.proto\022%google.cloud.bigquery.stora" + - "ge.v1beta2\"(\n\013ArrowSchema\022\031\n\021serialized_" + - "schema\030\001 \001(\014\"3\n\020ArrowRecordBatch\022\037\n\027seri" + - "alized_record_batch\030\001 \001(\014\"\266\001\n\031ArrowSeria" + - "lizationOptions\022W\n\006format\030\001 \001(\0162G.google" + - ".cloud.bigquery.storage.v1beta2.ArrowSer" + - "ializationOptions.Format\"@\n\006Format\022\026\n\022FO" + - "RMAT_UNSPECIFIED\020\000\022\016\n\nARROW_0_14\020\001\022\016\n\nAR" + - "ROW_0_15\020\002B~\n)com.google.cloud.bigquery." + - "storage.v1beta2B\nArrowProtoP\001ZCcloud.goo" + - "gle.com/go/bigquery/storage/apiv1beta2/s" + - "toragepb;storagepbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor, - new java.lang.String[] { "SerializedSchema", }); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor, - new java.lang.String[] { "SerializedRecordBatch", }); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor, - new java.lang.String[] { "Format", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java deleted file mode 100644 index 70c01bd2a7..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/arrow.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface ArrowRecordBatchOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * IPC-serialized Arrow RecordBatch.
-   * 
- * - * bytes serialized_record_batch = 1; - * @return The serializedRecordBatch. - */ - com.google.protobuf.ByteString getSerializedRecordBatch(); -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java deleted file mode 100644 index f86fe84d59..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/arrow.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface ArrowSchemaOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowSchema) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * IPC serialized Arrow schema.
-   * 
- * - * bytes serialized_schema = 1; - * @return The serializedSchema. - */ - com.google.protobuf.ByteString getSerializedSchema(); -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java deleted file mode 100644 index 7beb185a37..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java +++ /dev/null @@ -1,64 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/avro.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class AvroProto { - private AvroProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/bigquery/storage/v1beta2/" + - "avro.proto\022%google.cloud.bigquery.storag" + - "e.v1beta2\"\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"" + - "*\n\010AvroRows\022\036\n\026serialized_binary_rows\030\001 " + - "\001(\014B}\n)com.google.cloud.bigquery.storage" + - ".v1beta2B\tAvroProtoP\001ZCcloud.google.com/" + - "go/bigquery/storage/apiv1beta2/storagepb" + - ";storagepbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor, - new java.lang.String[] { "Schema", }); - internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor, - new java.lang.String[] { "SerializedBinaryRows", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java deleted file mode 100644 index 3ad59856ae..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/avro.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface AvroRowsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AvroRows) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Binary serialized rows in a block.
-   * 
- * - * bytes serialized_binary_rows = 1; - * @return The serializedBinaryRows. - */ - com.google.protobuf.ByteString getSerializedBinaryRows(); -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java deleted file mode 100644 index cca21cca1c..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface CreateWriteStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Reference to the table to which the stream belongs, in the format
-   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Reference to the table to which the stream belongs, in the format
-   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Stream to be created.
-   * 
- * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the writeStream field is set. - */ - boolean hasWriteStream(); - /** - *
-   * Required. Stream to be created.
-   * 
- * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The writeStream. - */ - com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream(); - /** - *
-   * Required. Stream to be created.
-   * 
- * - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder getWriteStreamOrBuilder(); -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java deleted file mode 100644 index 0d0321ea05..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface FinalizeWriteStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the stream to finalize, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the stream to finalize, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java deleted file mode 100644 index 86314fd7c3..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface FinalizeWriteStreamResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Number of rows in the finalized stream.
-   * 
- * - * int64 row_count = 1; - * @return The rowCount. - */ - long getRowCount(); -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java deleted file mode 100644 index a9ea318974..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface FlushRowsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The rows before this offset (including this offset) are flushed.
-   * 
- * - * int64 offset = 1; - * @return The offset. - */ - long getOffset(); -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java deleted file mode 100644 index 1d115c103e..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface GetWriteStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the stream to get, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the stream to get, in the form of
-   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java deleted file mode 100644 index 0b812399b6..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/protobuf.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class ProtoBufProto { - private ProtoBufProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/bigquery/storage/v1beta2/" + - "protobuf.proto\022%google.cloud.bigquery.st" + - "orage.v1beta2\032 google/protobuf/descripto" + - "r.proto\"I\n\013ProtoSchema\022:\n\020proto_descript" + - "or\030\001 \001(\0132 .google.protobuf.DescriptorPro" + - "to\"$\n\tProtoRows\022\027\n\017serialized_rows\030\001 \003(\014" + - "B\201\001\n)com.google.cloud.bigquery.storage.v" + - "1beta2B\rProtoBufProtoP\001ZCcloud.google.co" + - "m/go/bigquery/storage/apiv1beta2/storage" + - "pb;storagepbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DescriptorProtos.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor, - new java.lang.String[] { "ProtoDescriptor", }); - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor, - new java.lang.String[] { "SerializedRows", }); - com.google.protobuf.DescriptorProtos.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java deleted file mode 100644 index e125fcea9e..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface ReadRowsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Stream to read rows from.
-   * 
- * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The readStream. - */ - java.lang.String getReadStream(); - /** - *
-   * Required. Stream to read rows from.
-   * 
- * - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for readStream. - */ - com.google.protobuf.ByteString - getReadStreamBytes(); - - /** - *
-   * The offset requested must be less than the last row read from Read.
-   * Requesting a larger offset is undefined. If not specified, start reading
-   * from offset zero.
-   * 
- * - * int64 offset = 2; - * @return The offset. - */ - long getOffset(); -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java deleted file mode 100644 index a4ac3dc60f..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java +++ /dev/null @@ -1,457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class StorageProto { - private StorageProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/bigquery/storage/v1beta2/" + - "storage.proto\022%google.cloud.bigquery.sto" + - "rage.v1beta2\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\0321google/cloud/bigquery/storage/v" + - "1beta2/arrow.proto\0320google/cloud/bigquer" + - "y/storage/v1beta2/avro.proto\0324google/clo" + - "ud/bigquery/storage/v1beta2/protobuf.pro" + - "to\0322google/cloud/bigquery/storage/v1beta" + - "2/stream.proto\0321google/cloud/bigquery/st" + - "orage/v1beta2/table.proto\032\037google/protob" + - "uf/timestamp.proto\032\036google/protobuf/wrap" + - "pers.proto\032\027google/rpc/status.proto\"\310\001\n\030" + - "CreateReadSessionRequest\022C\n\006parent\030\001 \001(\t" + - "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + - "s.com/Project\022M\n\014read_session\030\002 \001(\01322.go" + - "ogle.cloud.bigquery.storage.v1beta2.Read" + - "SessionB\003\340A\002\022\030\n\020max_stream_count\030\003 \001(\005\"i" + - "\n\017ReadRowsRequest\022F\n\013read_stream\030\001 \001(\tB1" + - "\340A\002\372A+\n)bigquerystorage.googleapis.com/R" + - "eadStream\022\016\n\006offset\030\002 \001(\003\")\n\rThrottleSta" + - "te\022\030\n\020throttle_percent\030\001 \001(\005\"\234\001\n\013StreamS" + - "tats\022M\n\010progress\030\002 \001(\0132;.google.cloud.bi" + - "gquery.storage.v1beta2.StreamStats.Progr" + - "ess\032>\n\010Progress\022\031\n\021at_response_start\030\001 \001" + - "(\001\022\027\n\017at_response_end\030\002 \001(\001\"\205\004\n\020ReadRows" + - "Response\022D\n\tavro_rows\030\003 \001(\0132/.google.clo" + - "ud.bigquery.storage.v1beta2.AvroRowsH\000\022U" + - "\n\022arrow_record_batch\030\004 \001(\01327.google.clou" + - "d.bigquery.storage.v1beta2.ArrowRecordBa" + - "tchH\000\022\021\n\trow_count\030\006 \001(\003\022A\n\005stats\030\002 \001(\0132" + - "2.google.cloud.bigquery.storage.v1beta2." + - "StreamStats\022L\n\016throttle_state\030\005 \001(\01324.go" + - "ogle.cloud.bigquery.storage.v1beta2.Thro" + - "ttleState\022M\n\013avro_schema\030\007 \001(\01321.google." + - "cloud.bigquery.storage.v1beta2.AvroSchem" + - "aB\003\340A\003H\001\022O\n\014arrow_schema\030\010 \001(\01322.google." + - "cloud.bigquery.storage.v1beta2.ArrowSche" + - "maB\003\340A\003H\001B\006\n\004rowsB\010\n\006schema\"k\n\026SplitRead" + - "StreamRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)big" + - "querystorage.googleapis.com/ReadStream\022\020" + - "\n\010fraction\030\002 \001(\001\"\261\001\n\027SplitReadStreamResp" + - "onse\022I\n\016primary_stream\030\001 \001(\01321.google.cl" + - "oud.bigquery.storage.v1beta2.ReadStream\022" + - "K\n\020remainder_stream\030\002 \001(\01321.google.cloud" + - ".bigquery.storage.v1beta2.ReadStream\"\240\001\n" + - "\030CreateWriteStreamRequest\0225\n\006parent\030\001 \001(" + - "\tB%\340A\002\372A\037\n\035bigquery.googleapis.com/Table" + - "\022M\n\014write_stream\030\002 \001(\01322.google.cloud.bi" + - "gquery.storage.v1beta2.WriteStreamB\003\340A\002\"" + - "\227\003\n\021AppendRowsRequest\022H\n\014write_stream\030\001 " + - "\001(\tB2\340A\002\372A,\n*bigquerystorage.googleapis." + - "com/WriteStream\022+\n\006offset\030\002 \001(\0132\033.google" + - ".protobuf.Int64Value\022X\n\nproto_rows\030\004 \001(\013" + - "2B.google.cloud.bigquery.storage.v1beta2" + - ".AppendRowsRequest.ProtoDataH\000\022\020\n\010trace_" + - "id\030\006 \001(\t\032\226\001\n\tProtoData\022I\n\rwriter_schema\030" + - "\001 \001(\01322.google.cloud.bigquery.storage.v1" + - "beta2.ProtoSchema\022>\n\004rows\030\002 \001(\01320.google" + - ".cloud.bigquery.storage.v1beta2.ProtoRow" + - "sB\006\n\004rows\"\257\002\n\022AppendRowsResponse\022_\n\rappe" + - "nd_result\030\001 \001(\0132F.google.cloud.bigquery." + - "storage.v1beta2.AppendRowsResponse.Appen" + - "dResultH\000\022#\n\005error\030\002 \001(\0132\022.google.rpc.St" + - "atusH\000\022J\n\016updated_schema\030\003 \001(\01322.google." + - "cloud.bigquery.storage.v1beta2.TableSche" + - "ma\032;\n\014AppendResult\022+\n\006offset\030\001 \001(\0132\033.goo" + - "gle.protobuf.Int64ValueB\n\n\010response\"Y\n\025G" + - "etWriteStreamRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372" + - "A,\n*bigquerystorage.googleapis.com/Write" + - "Stream\"Q\n\036BatchCommitWriteStreamsRequest" + - "\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\032\n\rwrite_streams\030\002" + - " \003(\tB\003\340A\002\"\236\001\n\037BatchCommitWriteStreamsRes" + - "ponse\022/\n\013commit_time\030\001 \001(\0132\032.google.prot" + - "obuf.Timestamp\022J\n\rstream_errors\030\002 \003(\01323." + - "google.cloud.bigquery.storage.v1beta2.St" + - "orageError\"^\n\032FinalizeWriteStreamRequest" + - "\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquerystorage." + - "googleapis.com/WriteStream\"0\n\033FinalizeWr" + - "iteStreamResponse\022\021\n\trow_count\030\001 \001(\003\"\211\001\n" + - "\020FlushRowsRequest\022H\n\014write_stream\030\001 \001(\tB" + - "2\340A\002\372A,\n*bigquerystorage.googleapis.com/" + - "WriteStream\022+\n\006offset\030\002 \001(\0132\033.google.pro" + - "tobuf.Int64Value\"#\n\021FlushRowsResponse\022\016\n" + - "\006offset\030\001 \001(\003\"\324\002\n\014StorageError\022R\n\004code\030\001" + - " \001(\0162D.google.cloud.bigquery.storage.v1b" + - "eta2.StorageError.StorageErrorCode\022\016\n\006en" + - "tity\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\"\310\001\n\020St" + - "orageErrorCode\022\"\n\036STORAGE_ERROR_CODE_UNS" + - "PECIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STREA" + - "M_ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FOUN" + - "D\020\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALID_" + - "STREAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\0062\277\006\n" + - "\014BigQueryRead\022\370\001\n\021CreateReadSession\022?.go" + - "ogle.cloud.bigquery.storage.v1beta2.Crea" + - "teReadSessionRequest\0322.google.cloud.bigq" + - "uery.storage.v1beta2.ReadSession\"n\202\323\344\223\002A" + - "\".google.cloud.bigquery.sto" + - "rage.v1beta2.SplitReadStreamResponse\"C\202\323" + - "\344\223\002=\022;/v1beta2/{name=projects/*/location" + - "s/*/sessions/*/streams/*}\032{\312A\036bigqueryst" + - "orage.googleapis.com\322AWhttps://www.googl" + - "eapis.com/auth/bigquery,https://www.goog" + - "leapis.com/auth/cloud-platform2\226\014\n\rBigQu" + - "eryWrite\022\346\001\n\021CreateWriteStream\022?.google." + - "cloud.bigquery.storage.v1beta2.CreateWri" + - "teStreamRequest\0322.google.cloud.bigquery." + - "storage.v1beta2.WriteStream\"\\\202\323\344\223\002@\"0/v1" + - "beta2/{parent=projects/*/datasets/*/tabl" + - "es/*}:\014write_stream\332A\023parent,write_strea" + - "m\022\341\001\n\nAppendRows\0228.google.cloud.bigquery" + - ".storage.v1beta2.AppendRowsRequest\0329.goo" + - "gle.cloud.bigquery.storage.v1beta2.Appen" + - "dRowsResponse\"Z\202\323\344\223\002E\"@/v1beta2/{write_s" + - "tream=projects/*/datasets/*/tables/*/str" + - "eams/*}:\001*\332A\014write_stream(\0010\001\022\316\001\n\016GetWri" + - "teStream\022<.google.cloud.bigquery.storage" + - ".v1beta2.GetWriteStreamRequest\0322.google." + - "cloud.bigquery.storage.v1beta2.WriteStre" + - "am\"J\202\323\344\223\002=\"8/v1beta2/{name=projects/*/da" + - "tasets/*/tables/*/streams/*}:\001*\332A\004name\022\350" + - "\001\n\023FinalizeWriteStream\022A.google.cloud.bi" + - "gquery.storage.v1beta2.FinalizeWriteStre" + - "amRequest\032B.google.cloud.bigquery.storag" + - "e.v1beta2.FinalizeWriteStreamResponse\"J\202" + - "\323\344\223\002=\"8/v1beta2/{name=projects/*/dataset" + - "s/*/tables/*/streams/*}:\001*\332A\004name\022\353\001\n\027Ba" + - "tchCommitWriteStreams\022E.google.cloud.big" + - "query.storage.v1beta2.BatchCommitWriteSt" + - "reamsRequest\032F.google.cloud.bigquery.sto" + - "rage.v1beta2.BatchCommitWriteStreamsResp" + - "onse\"A\202\323\344\223\0022\0220/v1beta2/{parent=projects/" + - "*/datasets/*/tables/*}\332A\006parent\022\332\001\n\tFlus" + - "hRows\0227.google.cloud.bigquery.storage.v1" + - "beta2.FlushRowsRequest\0328.google.cloud.bi" + - "gquery.storage.v1beta2.FlushRowsResponse" + - "\"Z\202\323\344\223\002E\"@/v1beta2/{write_stream=project" + - "s/*/datasets/*/tables/*/streams/*}:\001*\332A\014" + - "write_stream\032\260\001\312A\036bigquerystorage.google" + - "apis.com\322A\213\001https://www.googleapis.com/a" + - "uth/bigquery,https://www.googleapis.com/" + - "auth/bigquery.insertdata,https://www.goo" + - "gleapis.com/auth/cloud-platformB\200\001\n)com." + - "google.cloud.bigquery.storage.v1beta2B\014S" + - "torageProtoP\001ZCcloud.google.com/go/bigqu" + - "ery/storage/apiv1beta2/storagepb;storage" + - "pbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor, - new java.lang.String[] { "Parent", "ReadSession", "MaxStreamCount", }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor, - new java.lang.String[] { "ReadStream", "Offset", }); - internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor, - new java.lang.String[] { "ThrottlePercent", }); - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor, - new java.lang.String[] { "Progress", }); - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor = - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor, - new java.lang.String[] { "AtResponseStart", "AtResponseEnd", }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor, - new java.lang.String[] { "AvroRows", "ArrowRecordBatch", "RowCount", "Stats", "ThrottleState", "AvroSchema", "ArrowSchema", "Rows", "Schema", }); - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor, - new java.lang.String[] { "Name", "Fraction", }); - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor, - new java.lang.String[] { "PrimaryStream", "RemainderStream", }); - internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor, - new java.lang.String[] { "Parent", "WriteStream", }); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor, - new java.lang.String[] { "WriteStream", "Offset", "ProtoRows", "TraceId", "Rows", }); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor = - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor, - new java.lang.String[] { "WriterSchema", "Rows", }); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor, - new java.lang.String[] { "AppendResult", "Error", "UpdatedSchema", "Response", }); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor = - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor, - new java.lang.String[] { "Offset", }); - internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor, - new java.lang.String[] { "Parent", "WriteStreams", }); - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor, - new java.lang.String[] { "CommitTime", "StreamErrors", }); - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor, - new java.lang.String[] { "RowCount", }); - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor, - new java.lang.String[] { "WriteStream", "Offset", }); - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor, - new java.lang.String[] { "Offset", }); - internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor, - new java.lang.String[] { "Code", "Entity", "ErrorMessage", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java deleted file mode 100644 index 0a8d557230..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/stream.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class StreamProto { - private StreamProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/bigquery/storage/v1beta2/" + - "stream.proto\022%google.cloud.bigquery.stor" + - "age.v1beta2\032\037google/api/field_behavior.p" + - "roto\032\031google/api/resource.proto\0321google/" + - "cloud/bigquery/storage/v1beta2/arrow.pro" + - "to\0320google/cloud/bigquery/storage/v1beta" + - "2/avro.proto\0321google/cloud/bigquery/stor" + - "age/v1beta2/table.proto\032\037google/protobuf" + - "/timestamp.proto\"\362\007\n\013ReadSession\022\021\n\004name" + - "\030\001 \001(\tB\003\340A\003\0224\n\013expire_time\030\002 \001(\0132\032.googl" + - "e.protobuf.TimestampB\003\340A\003\022K\n\013data_format" + - "\030\003 \001(\01621.google.cloud.bigquery.storage.v" + - "1beta2.DataFormatB\003\340A\005\022M\n\013avro_schema\030\004 " + - "\001(\01321.google.cloud.bigquery.storage.v1be" + - "ta2.AvroSchemaB\003\340A\003H\000\022O\n\014arrow_schema\030\005 " + - "\001(\01322.google.cloud.bigquery.storage.v1be" + - "ta2.ArrowSchemaB\003\340A\003H\000\0224\n\005table\030\006 \001(\tB%\340" + - "A\005\372A\037\n\035bigquery.googleapis.com/Table\022_\n\017" + - "table_modifiers\030\007 \001(\0132A.google.cloud.big" + - "query.storage.v1beta2.ReadSession.TableM" + - "odifiersB\003\340A\001\022^\n\014read_options\030\010 \001(\0132C.go" + - "ogle.cloud.bigquery.storage.v1beta2.Read" + - "Session.TableReadOptionsB\003\340A\001\022G\n\007streams" + - "\030\n \003(\01321.google.cloud.bigquery.storage.v" + - "1beta2.ReadStreamB\003\340A\003\032C\n\016TableModifiers" + - "\0221\n\rsnapshot_time\030\001 \001(\0132\032.google.protobu" + - "f.Timestamp\032\260\001\n\020TableReadOptions\022\027\n\017sele" + - "cted_fields\030\001 \003(\t\022\027\n\017row_restriction\030\002 \001" + - "(\t\022j\n\033arrow_serialization_options\030\003 \001(\0132" + - "@.google.cloud.bigquery.storage.v1beta2." + - "ArrowSerializationOptionsB\003\340A\001:k\352Ah\n*big" + - "querystorage.googleapis.com/ReadSession\022" + - ":projects/{project}/locations/{location}" + - "/sessions/{session}B\010\n\006schema\"\234\001\n\nReadSt" + - "ream\022\021\n\004name\030\001 \001(\tB\003\340A\003:{\352Ax\n)bigqueryst" + - "orage.googleapis.com/ReadStream\022Kproject" + - "s/{project}/locations/{location}/session" + - "s/{session}/streams/{stream}\"\347\003\n\013WriteSt" + - "ream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022J\n\004type\030\002 \001(\01627." + - "google.cloud.bigquery.storage.v1beta2.Wr" + - "iteStream.TypeB\003\340A\005\0224\n\013create_time\030\003 \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013com" + - "mit_time\030\004 \001(\0132\032.google.protobuf.Timesta" + - "mpB\003\340A\003\022M\n\014table_schema\030\005 \001(\01322.google.c" + - "loud.bigquery.storage.v1beta2.TableSchem" + - "aB\003\340A\003\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\t" + - "COMMITTED\020\001\022\013\n\007PENDING\020\002\022\014\n\010BUFFERED\020\003:v" + - "\352As\n*bigquerystorage.googleapis.com/Writ" + - "eStream\022Eprojects/{project}/datasets/{da" + - "taset}/tables/{table}/streams/{stream}*>" + - "\n\nDataFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020" + - "\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\002B\327\001\n)com.google.cl" + - "oud.bigquery.storage.v1beta2B\013StreamProt" + - "oP\001ZCcloud.google.com/go/bigquery/storag" + - "e/apiv1beta2/storagepb;storagepb\352AU\n\035big" + - "query.googleapis.com/Table\0224projects/{pr" + - "oject}/datasets/{dataset}/tables/{table}" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(), - com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor, - new java.lang.String[] { "Name", "ExpireTime", "DataFormat", "AvroSchema", "ArrowSchema", "Table", "TableModifiers", "ReadOptions", "Streams", "Schema", }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor = - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor, - new java.lang.String[] { "SnapshotTime", }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor = - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor, - new java.lang.String[] { "SelectedFields", "RowRestriction", "ArrowSerializationOptions", }); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor, - new java.lang.String[] { "Name", "Type", "CreateTime", "CommitTime", "TableSchema", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(); - com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java deleted file mode 100644 index 54161ee2da..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/table.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public final class TableProto { - private TableProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/bigquery/storage/v1beta2/" + - "table.proto\022%google.cloud.bigquery.stora" + - "ge.v1beta2\032\037google/api/field_behavior.pr" + - "oto\"V\n\013TableSchema\022G\n\006fields\030\001 \003(\01327.goo" + - "gle.cloud.bigquery.storage.v1beta2.Table" + - "FieldSchema\"\317\004\n\020TableFieldSchema\022\021\n\004name" + - "\030\001 \001(\tB\003\340A\002\022O\n\004type\030\002 \001(\0162<.google.cloud" + - ".bigquery.storage.v1beta2.TableFieldSche" + - "ma.TypeB\003\340A\002\022O\n\004mode\030\003 \001(\0162<.google.clou" + - "d.bigquery.storage.v1beta2.TableFieldSch" + - "ema.ModeB\003\340A\001\022L\n\006fields\030\004 \003(\01327.google.c" + - "loud.bigquery.storage.v1beta2.TableField" + - "SchemaB\003\340A\001\022\030\n\013description\030\006 \001(\tB\003\340A\001\"\325\001" + - "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001" + - "\022\t\n\005INT64\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRUCT\020\004\022\t\n\005B" + - "YTES\020\005\022\010\n\004BOOL\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020" + - "\010\022\010\n\004TIME\020\t\022\014\n\010DATETIME\020\n\022\r\n\tGEOGRAPHY\020\013" + - "\022\013\n\007NUMERIC\020\014\022\016\n\nBIGNUMERIC\020\r\022\014\n\010INTERVA" + - "L\020\016\022\010\n\004JSON\020\017\"F\n\004Mode\022\024\n\020MODE_UNSPECIFIE" + - "D\020\000\022\014\n\010NULLABLE\020\001\022\014\n\010REQUIRED\020\002\022\014\n\010REPEA" + - "TED\020\003B~\n)com.google.cloud.bigquery.stora" + - "ge.v1beta2B\nTableProtoP\001ZCcloud.google.c" + - "om/go/bigquery/storage/apiv1beta2/storag" + - "epb;storagepbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor, - new java.lang.String[] { "Fields", }); - internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor, - new java.lang.String[] { "Name", "Type", "Mode", "Fields", "Description", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java b/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java deleted file mode 100644 index 44bb407db0..0000000000 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/bigquery/storage/v1beta2/storage.proto - -package com.google.cloud.bigquery.storage.v1beta2; - -public interface ThrottleStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ThrottleState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * How much this connection is being throttled. Zero means no throttling,
-   * 100 means fully throttled.
-   * 
- * - * int32 throttle_percent = 1; - * @return The throttlePercent. - */ - int getThrottlePercent(); -} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java new file mode 100644 index 0000000000..6d3ceebf99 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AnnotationsProto.java @@ -0,0 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/annotations.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class AnnotationsProto { + private AnnotationsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) { + registry.add(com.google.cloud.bigquery.storage.v1.AnnotationsProto.columnName); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static final int COLUMN_NAME_FIELD_NUMBER = 454943157; + /** + * + * + *
+   * Setting the column_name extension allows users to reference
+   * bigquery column independently of the field name in the protocol buffer
+   * message.
+   * The intended use of this annotation is to reference a destination column
+   * named using characters unavailable for protobuf field names (e.g. unicode
+   * characters).
+   * More details about BigQuery naming limitations can be found here:
+   * https://cloud.google.com/bigquery/docs/schemas#column_names
+   * This extension is currently experimental.
+   * 
+ * + * extend .google.protobuf.FieldOptions { ... } + */ + public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< + com.google.protobuf.DescriptorProtos.FieldOptions, java.lang.String> + columnName = + com.google.protobuf.GeneratedMessage.newFileScopedGeneratedExtension( + java.lang.String.class, null); + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/bigquery/storage/v1/annot" + + "ations.proto\022 google.cloud.bigquery.stor" + + "age.v1\032 google/protobuf/descriptor.proto" + + ":9\n\013column_name\022\035.google.protobuf.FieldO" + + "ptions\030\265\303\367\330\001 \001(\t\210\001\001B\300\001\n$com.google.cloud" + + ".bigquery.storage.v1B\020AnnotationsProtoP\001" + + "Z>cloud.google.com/go/bigquery/storage/a" + + "piv1/storagepb;storagepb\252\002 Google.Cloud." + + "BigQuery.Storage.V1\312\002 Google\\Cloud\\BigQu" + + "ery\\Storage\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DescriptorProtos.getDescriptor(), + }); + columnName.internalInit(descriptor.getExtensions().get(0)); + com.google.protobuf.DescriptorProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java index fa8934e888..5b1024f620 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Request message for `AppendRows`.
  * Due to the nature of AppendRows being a bidirectional streaming RPC, certain
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsRequest}
  */
-public final class AppendRowsRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AppendRowsRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AppendRowsRequest)
     AppendRowsRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AppendRowsRequest.newBuilder() to construct.
   private AppendRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AppendRowsRequest() {
     writeStream_ = "";
     traceId_ = "";
@@ -31,42 +49,44 @@ private AppendRowsRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AppendRowsRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.StorageProto
+        .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 7:
         return internalGetMissingValueInterpretations();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.StorageProto
+        .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.Builder.class);
+            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class,
+            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * An enum to indicate how to interpret missing values. Missing values are
    * fields present in user schema but missing in rows. A missing value can
@@ -74,11 +94,13 @@ protected com.google.protobuf.MapField internalGetMapField(
    * schema.
    * 
* - * Protobuf enum {@code google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation} + * Protobuf enum {@code + * google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation} */ - public enum MissingValueInterpretation - implements com.google.protobuf.ProtocolMessageEnum { + public enum MissingValueInterpretation implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Invalid missing value interpretation. Requests with this value will be
      * rejected.
@@ -88,6 +110,8 @@ public enum MissingValueInterpretation
      */
     MISSING_VALUE_INTERPRETATION_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Missing value is interpreted as NULL.
      * 
@@ -96,6 +120,8 @@ public enum MissingValueInterpretation */ NULL_VALUE(1), /** + * + * *
      * Missing value is interpreted as column default value if declared in the
      * table schema, NULL otherwise.
@@ -108,6 +134,8 @@ public enum MissingValueInterpretation
     ;
 
     /**
+     *
+     *
      * 
      * Invalid missing value interpretation. Requests with this value will be
      * rejected.
@@ -117,6 +145,8 @@ public enum MissingValueInterpretation
      */
     public static final int MISSING_VALUE_INTERPRETATION_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Missing value is interpreted as NULL.
      * 
@@ -125,6 +155,8 @@ public enum MissingValueInterpretation */ public static final int NULL_VALUE_VALUE = 1; /** + * + * *
      * Missing value is interpreted as column default value if declared in the
      * table schema, NULL otherwise.
@@ -134,7 +166,6 @@ public enum MissingValueInterpretation
      */
     public static final int DEFAULT_VALUE_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -159,10 +190,14 @@ public static MissingValueInterpretation valueOf(int value) {
      */
     public static MissingValueInterpretation forNumber(int value) {
       switch (value) {
-        case 0: return MISSING_VALUE_INTERPRETATION_UNSPECIFIED;
-        case 1: return NULL_VALUE;
-        case 2: return DEFAULT_VALUE;
-        default: return null;
+        case 0:
+          return MISSING_VALUE_INTERPRETATION_UNSPECIFIED;
+        case 1:
+          return NULL_VALUE;
+        case 2:
+          return DEFAULT_VALUE;
+        default:
+          return null;
       }
     }
 
@@ -170,29 +205,31 @@ public static MissingValueInterpretation forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        MissingValueInterpretation> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public MissingValueInterpretation findValueByNumber(int number) {
-              return MissingValueInterpretation.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public MissingValueInterpretation findValueByNumber(int number) {
+                return MissingValueInterpretation.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final MissingValueInterpretation[] VALUES = values();
@@ -200,8 +237,7 @@ public MissingValueInterpretation findValueByNumber(int number) {
     public static MissingValueInterpretation valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -218,11 +254,14 @@ private MissingValueInterpretation(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation)
   }
 
-  public interface ProtoDataOrBuilder extends
+  public interface ProtoDataOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -230,10 +269,13 @@ public interface ProtoDataOrBuilder extends
      * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; + * * @return Whether the writerSchema field is set. */ boolean hasWriterSchema(); /** + * + * *
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -241,10 +283,13 @@ public interface ProtoDataOrBuilder extends
      * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; + * * @return The writerSchema. */ com.google.cloud.bigquery.storage.v1.ProtoSchema getWriterSchema(); /** + * + * *
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -256,6 +301,8 @@ public interface ProtoDataOrBuilder extends
     com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchemaOrBuilder();
 
     /**
+     *
+     *
      * 
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -264,10 +311,13 @@ public interface ProtoDataOrBuilder extends
      * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; + * * @return Whether the rows field is set. */ boolean hasRows(); /** + * + * *
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -276,10 +326,13 @@ public interface ProtoDataOrBuilder extends
      * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; + * * @return The rows. */ com.google.cloud.bigquery.storage.v1.ProtoRows getRows(); /** + * + * *
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -292,6 +345,8 @@ public interface ProtoDataOrBuilder extends
     com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder getRowsOrBuilder();
   }
   /**
+   *
+   *
    * 
    * ProtoData contains the data rows and schema when constructing append
    * requests.
@@ -299,46 +354,49 @@ public interface ProtoDataOrBuilder extends
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData}
    */
-  public static final class ProtoData extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ProtoData extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)
       ProtoDataOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ProtoData.newBuilder() to construct.
     private ProtoData(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private ProtoData() {
-    }
+
+    private ProtoData() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ProtoData();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.class, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder.class);
+              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.class,
+              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder.class);
     }
 
     public static final int WRITER_SCHEMA_FIELD_NUMBER = 1;
     private com.google.cloud.bigquery.storage.v1.ProtoSchema writerSchema_;
     /**
+     *
+     *
      * 
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -346,6 +404,7 @@ protected java.lang.Object newInstance(
      * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; + * * @return Whether the writerSchema field is set. */ @java.lang.Override @@ -353,6 +412,8 @@ public boolean hasWriterSchema() { return writerSchema_ != null; } /** + * + * *
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -360,13 +421,18 @@ public boolean hasWriterSchema() {
      * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; + * * @return The writerSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ProtoSchema getWriterSchema() { - return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() : writerSchema_; + return writerSchema_ == null + ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() + : writerSchema_; } /** + * + * *
      * Proto schema used to serialize the data.  This value only needs to be
      * provided as part of the first request on a gRPC network connection,
@@ -377,12 +443,16 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchema getWriterSchema() {
      */
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchemaOrBuilder() {
-      return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() : writerSchema_;
+      return writerSchema_ == null
+          ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()
+          : writerSchema_;
     }
 
     public static final int ROWS_FIELD_NUMBER = 2;
     private com.google.cloud.bigquery.storage.v1.ProtoRows rows_;
     /**
+     *
+     *
      * 
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -391,6 +461,7 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchema
      * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; + * * @return Whether the rows field is set. */ @java.lang.Override @@ -398,6 +469,8 @@ public boolean hasRows() { return rows_ != null; } /** + * + * *
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -406,13 +479,18 @@ public boolean hasRows() {
      * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; + * * @return The rows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ProtoRows getRows() { - return rows_ == null ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() : rows_; + return rows_ == null + ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() + : rows_; } /** + * + * *
      * Serialized row data in protobuf message format.
      * Currently, the backend expects the serialized rows to adhere to
@@ -424,10 +502,13 @@ public com.google.cloud.bigquery.storage.v1.ProtoRows getRows() {
      */
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder getRowsOrBuilder() {
-      return rows_ == null ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() : rows_;
+      return rows_ == null
+          ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance()
+          : rows_;
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -445,8 +526,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (writerSchema_ != null) {
         output.writeMessage(1, getWriterSchema());
       }
@@ -463,12 +543,10 @@ public int getSerializedSize() {
 
       size = 0;
       if (writerSchema_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getWriterSchema());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWriterSchema());
       }
       if (rows_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getRows());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRows());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -478,22 +556,21 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData other = (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) obj;
+      com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData other =
+          (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) obj;
 
       if (hasWriterSchema() != other.hasWriterSchema()) return false;
       if (hasWriterSchema()) {
-        if (!getWriterSchema()
-            .equals(other.getWriterSchema())) return false;
+        if (!getWriterSchema().equals(other.getWriterSchema())) return false;
       }
       if (hasRows() != other.hasRows()) return false;
       if (hasRows()) {
-        if (!getRows()
-            .equals(other.getRows())) return false;
+        if (!getRows().equals(other.getRows())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -520,87 +597,95 @@ public int hashCode() {
     }
 
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
+        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -610,6 +695,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * ProtoData contains the data rows and schema when constructing append
      * requests.
@@ -617,33 +704,34 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)
         com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.bigquery.storage.v1.StorageProto
+            .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable
+        return com.google.cloud.bigquery.storage.v1.StorageProto
+            .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.class, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder.class);
+                com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.class,
+                com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder.class);
       }
 
-      // Construct using com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.newBuilder()
-      private Builder() {
+      // Construct using
+      // com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.newBuilder()
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -662,14 +750,16 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.bigquery.storage.v1.StorageProto
+            .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getDefaultInstanceForType() {
-        return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance();
+      public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
+          getDefaultInstanceForType() {
+        return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
+            .getDefaultInstance();
       }
 
       @java.lang.Override
@@ -683,23 +773,24 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData build()
 
       @java.lang.Override
       public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData buildPartial() {
-        com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData result = new com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData result =
+            new com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData result) {
+      private void buildPartial0(
+          com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.writerSchema_ = writerSchemaBuilder_ == null
-              ? writerSchema_
-              : writerSchemaBuilder_.build();
+          result.writerSchema_ =
+              writerSchemaBuilder_ == null ? writerSchema_ : writerSchemaBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
-          result.rows_ = rowsBuilder_ == null
-              ? rows_
-              : rowsBuilder_.build();
+          result.rows_ = rowsBuilder_ == null ? rows_ : rowsBuilder_.build();
         }
       }
 
@@ -707,46 +798,53 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsReques
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) {
-          return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)other);
+          return mergeFrom(
+              (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData other) {
-        if (other == com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData other) {
+        if (other
+            == com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
+                .getDefaultInstance()) return this;
         if (other.hasWriterSchema()) {
           mergeWriterSchema(other.getWriterSchema());
         }
@@ -784,26 +882,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getWriterSchemaFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getRowsFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(getWriterSchemaFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(getRowsFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -813,12 +910,18 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
       private com.google.cloud.bigquery.storage.v1.ProtoSchema writerSchema_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1.ProtoSchema, com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder> writerSchemaBuilder_;
+              com.google.cloud.bigquery.storage.v1.ProtoSchema,
+              com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder,
+              com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder>
+          writerSchemaBuilder_;
       /**
+       *
+       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -826,12 +929,15 @@ public Builder mergeFrom(
        * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; + * * @return Whether the writerSchema field is set. */ public boolean hasWriterSchema() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -839,16 +945,21 @@ public boolean hasWriterSchema() {
        * 
* * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1; + * * @return The writerSchema. */ public com.google.cloud.bigquery.storage.v1.ProtoSchema getWriterSchema() { if (writerSchemaBuilder_ == null) { - return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() : writerSchema_; + return writerSchema_ == null + ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() + : writerSchema_; } else { return writerSchemaBuilder_.getMessage(); } } /** + * + * *
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -871,6 +982,8 @@ public Builder setWriterSchema(com.google.cloud.bigquery.storage.v1.ProtoSchema
         return this;
       }
       /**
+       *
+       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -891,6 +1004,8 @@ public Builder setWriterSchema(
         return this;
       }
       /**
+       *
+       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -901,9 +1016,10 @@ public Builder setWriterSchema(
        */
       public Builder mergeWriterSchema(com.google.cloud.bigquery.storage.v1.ProtoSchema value) {
         if (writerSchemaBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            writerSchema_ != null &&
-            writerSchema_ != com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && writerSchema_ != null
+              && writerSchema_
+                  != com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()) {
             getWriterSchemaBuilder().mergeFrom(value);
           } else {
             writerSchema_ = value;
@@ -916,6 +1032,8 @@ public Builder mergeWriterSchema(com.google.cloud.bigquery.storage.v1.ProtoSchem
         return this;
       }
       /**
+       *
+       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -935,6 +1053,8 @@ public Builder clearWriterSchema() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -949,6 +1069,8 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder getWriterSchemaB
         return getWriterSchemaFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -961,11 +1083,14 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchema
         if (writerSchemaBuilder_ != null) {
           return writerSchemaBuilder_.getMessageOrBuilder();
         } else {
-          return writerSchema_ == null ?
-              com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance() : writerSchema_;
+          return writerSchema_ == null
+              ? com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()
+              : writerSchema_;
         }
       }
       /**
+       *
+       *
        * 
        * Proto schema used to serialize the data.  This value only needs to be
        * provided as part of the first request on a gRPC network connection,
@@ -975,14 +1100,17 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchema
        * .google.cloud.bigquery.storage.v1.ProtoSchema writer_schema = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1.ProtoSchema, com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder> 
+              com.google.cloud.bigquery.storage.v1.ProtoSchema,
+              com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder,
+              com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder>
           getWriterSchemaFieldBuilder() {
         if (writerSchemaBuilder_ == null) {
-          writerSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1.ProtoSchema, com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder>(
-                  getWriterSchema(),
-                  getParentForChildren(),
-                  isClean());
+          writerSchemaBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.bigquery.storage.v1.ProtoSchema,
+                  com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder,
+                  com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder>(
+                  getWriterSchema(), getParentForChildren(), isClean());
           writerSchema_ = null;
         }
         return writerSchemaBuilder_;
@@ -990,8 +1118,13 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchema
 
       private com.google.cloud.bigquery.storage.v1.ProtoRows rows_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1.ProtoRows, com.google.cloud.bigquery.storage.v1.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder> rowsBuilder_;
+              com.google.cloud.bigquery.storage.v1.ProtoRows,
+              com.google.cloud.bigquery.storage.v1.ProtoRows.Builder,
+              com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder>
+          rowsBuilder_;
       /**
+       *
+       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1000,12 +1133,15 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder getWriterSchema
        * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; + * * @return Whether the rows field is set. */ public boolean hasRows() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1014,16 +1150,21 @@ public boolean hasRows() {
        * 
* * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2; + * * @return The rows. */ public com.google.cloud.bigquery.storage.v1.ProtoRows getRows() { if (rowsBuilder_ == null) { - return rows_ == null ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() : rows_; + return rows_ == null + ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() + : rows_; } else { return rowsBuilder_.getMessage(); } } /** + * + * *
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1047,6 +1188,8 @@ public Builder setRows(com.google.cloud.bigquery.storage.v1.ProtoRows value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1068,6 +1211,8 @@ public Builder setRows(
         return this;
       }
       /**
+       *
+       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1079,9 +1224,9 @@ public Builder setRows(
        */
       public Builder mergeRows(com.google.cloud.bigquery.storage.v1.ProtoRows value) {
         if (rowsBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            rows_ != null &&
-            rows_ != com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && rows_ != null
+              && rows_ != com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance()) {
             getRowsBuilder().mergeFrom(value);
           } else {
             rows_ = value;
@@ -1094,6 +1239,8 @@ public Builder mergeRows(com.google.cloud.bigquery.storage.v1.ProtoRows value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1114,6 +1261,8 @@ public Builder clearRows() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1129,6 +1278,8 @@ public com.google.cloud.bigquery.storage.v1.ProtoRows.Builder getRowsBuilder() {
         return getRowsFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1142,11 +1293,14 @@ public com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder getRowsOrBuilder(
         if (rowsBuilder_ != null) {
           return rowsBuilder_.getMessageOrBuilder();
         } else {
-          return rows_ == null ?
-              com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance() : rows_;
+          return rows_ == null
+              ? com.google.cloud.bigquery.storage.v1.ProtoRows.getDefaultInstance()
+              : rows_;
         }
       }
       /**
+       *
+       *
        * 
        * Serialized row data in protobuf message format.
        * Currently, the backend expects the serialized rows to adhere to
@@ -1157,18 +1311,22 @@ public com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder getRowsOrBuilder(
        * .google.cloud.bigquery.storage.v1.ProtoRows rows = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1.ProtoRows, com.google.cloud.bigquery.storage.v1.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder> 
+              com.google.cloud.bigquery.storage.v1.ProtoRows,
+              com.google.cloud.bigquery.storage.v1.ProtoRows.Builder,
+              com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder>
           getRowsFieldBuilder() {
         if (rowsBuilder_ == null) {
-          rowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1.ProtoRows, com.google.cloud.bigquery.storage.v1.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder>(
-                  getRows(),
-                  getParentForChildren(),
-                  isClean());
+          rowsBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.bigquery.storage.v1.ProtoRows,
+                  com.google.cloud.bigquery.storage.v1.ProtoRows.Builder,
+                  com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder>(
+                  getRows(), getParentForChildren(), isClean());
           rows_ = null;
         }
         return rowsBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -1181,41 +1339,44 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData)
-    private static final com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData DEFAULT_INSTANCE;
+    private static final com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData();
     }
 
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getDefaultInstance() {
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public ProtoData parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public ProtoData parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -1227,20 +1388,23 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private int rowsCase_ = 0;
   private java.lang.Object rows_;
+
   public enum RowsCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     PROTO_ROWS(4),
     ROWS_NOT_SET(0);
     private final int value;
+
     private RowsCase(int value) {
       this.value = value;
     }
@@ -1256,26 +1420,31 @@ public static RowsCase valueOf(int value) {
 
     public static RowsCase forNumber(int value) {
       switch (value) {
-        case 4: return PROTO_ROWS;
-        case 0: return ROWS_NOT_SET;
-        default: return null;
+        case 4:
+          return PROTO_ROWS;
+        case 0:
+          return ROWS_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RowsCase
-  getRowsCase() {
-    return RowsCase.forNumber(
-        rowsCase_);
+  public RowsCase getRowsCase() {
+    return RowsCase.forNumber(rowsCase_);
   }
 
   public static final int WRITE_STREAM_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object writeStream_ = "";
   /**
+   *
+   *
    * 
    * Required. The write_stream identifies the target of the append operation,
    * and only needs to be specified as part of the first request on the gRPC
@@ -1287,7 +1456,10 @@ public int getNumber() {
    * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ @java.lang.Override @@ -1296,14 +1468,15 @@ public java.lang.String getWriteStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; } } /** + * + * *
    * Required. The write_stream identifies the target of the append operation,
    * and only needs to be specified as part of the first request on the gRPC
@@ -1315,17 +1488,18 @@ public java.lang.String getWriteStream() {
    * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ @java.lang.Override - public com.google.protobuf.ByteString - getWriteStreamBytes() { + public com.google.protobuf.ByteString getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeStream_ = b; return b; } else { @@ -1336,6 +1510,8 @@ public java.lang.String getWriteStream() { public static final int OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value offset_; /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1344,6 +1520,7 @@ public java.lang.String getWriteStream() {
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ @java.lang.Override @@ -1351,6 +1528,8 @@ public boolean hasOffset() { return offset_ != null; } /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1359,6 +1538,7 @@ public boolean hasOffset() {
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ @java.lang.Override @@ -1366,6 +1546,8 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1382,11 +1564,14 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
 
   public static final int PROTO_ROWS_FIELD_NUMBER = 4;
   /**
+   *
+   *
    * 
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; + * * @return Whether the protoRows field is set. */ @java.lang.Override @@ -1394,21 +1579,26 @@ public boolean hasProtoRows() { return rowsCase_ == 4; } /** + * + * *
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; + * * @return The protoRows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getProtoRows() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; + return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; } return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); } /** + * + * *
    * Rows in proto format.
    * 
@@ -1416,23 +1606,28 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getProto * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder + getProtoRowsOrBuilder() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; + return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; } return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); } public static final int TRACE_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object traceId_ = ""; /** + * + * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; + * * @return The traceId. */ @java.lang.Override @@ -1441,30 +1636,30 @@ public java.lang.String getTraceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; } } /** + * + * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; + * * @return The bytes for traceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTraceIdBytes() { + public com.google.protobuf.ByteString getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); traceId_ = b; return b; } else { @@ -1473,45 +1668,60 @@ public java.lang.String getTraceId() { } public static final int MISSING_VALUE_INTERPRETATIONS_FIELD_NUMBER = 7; + private static final class MissingValueInterpretationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Integer> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.ENUM, - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation.MISSING_VALUE_INTERPRETATION_UNSPECIFIED.getNumber()); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation + .MISSING_VALUE_INTERPRETATION_UNSPECIFIED + .getNumber()); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> missingValueInterpretations_; private com.google.protobuf.MapField - internalGetMissingValueInterpretations() { + missingValueInterpretations_; + + private com.google.protobuf.MapField + internalGetMissingValueInterpretations() { if (missingValueInterpretations_ == null) { return com.google.protobuf.MapField.emptyMapField( MissingValueInterpretationsDefaultEntryHolder.defaultEntry); } return missingValueInterpretations_; } - private static final - com.google.protobuf.Internal.MapAdapter.Converter< - java.lang.Integer, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missingValueInterpretationsValueConverter = + + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> + missingValueInterpretationsValueConverter = com.google.protobuf.Internal.MapAdapter.newEnumConverter( - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation.internalGetValueMap(), - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation.UNRECOGNIZED); - private static final java.util.Map - internalGetAdaptedMissingValueInterpretationsMap( - java.util.Map map) { + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation + .internalGetValueMap(), + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation + .UNRECOGNIZED); + + private static final java.util.Map< + java.lang.String, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> + internalGetAdaptedMissingValueInterpretationsMap( + java.util.Map map) { return new com.google.protobuf.Internal.MapAdapter< - java.lang.String, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation, java.lang.Integer>( - map, missingValueInterpretationsValueConverter); + java.lang.String, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation, + java.lang.Integer>(map, missingValueInterpretationsValueConverter); } + public int getMissingValueInterpretationsCount() { return internalGetMissingValueInterpretations().getMap().size(); } /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1529,24 +1739,29 @@ public int getMissingValueInterpretationsCount() {
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public boolean containsMissingValueInterpretations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMissingValueInterpretations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMissingValueInterpretations().getMap().containsKey(key); } - /** - * Use {@link #getMissingValueInterpretationsMap()} instead. - */ + /** Use {@link #getMissingValueInterpretationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMissingValueInterpretations() { + public java.util.Map< + java.lang.String, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> + getMissingValueInterpretations() { return getMissingValueInterpretationsMap(); } /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1564,14 +1779,21 @@ public boolean containsMissingValueInterpretations(
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public java.util.Map - getMissingValueInterpretationsMap() { + public java.util.Map< + java.lang.String, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> + getMissingValueInterpretationsMap() { return internalGetAdaptedMissingValueInterpretationsMap( - internalGetMissingValueInterpretations().getMap());} + internalGetMissingValueInterpretations().getMap()); + } /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1589,22 +1811,30 @@ public boolean containsMissingValueInterpretations(
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.cloud.bigquery.storage.v1.AppendRowsRequest + .MissingValueInterpretation + getMissingValueInterpretationsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMissingValueInterpretations().getMap(); return map.containsKey(key) - ? missingValueInterpretationsValueConverter.doForward(map.get(key)) - : defaultValue; + ? missingValueInterpretationsValueConverter.doForward(map.get(key)) + : defaultValue; } /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1622,12 +1852,16 @@ com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretatio
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation + getMissingValueInterpretationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMissingValueInterpretations().getMap(); if (!map.containsKey(key)) { @@ -1635,16 +1869,15 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterp } return missingValueInterpretationsValueConverter.doForward(map.get(key)); } - /** - * Use {@link #getMissingValueInterpretationsValueMap()} instead. - */ + /** Use {@link #getMissingValueInterpretationsValueMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMissingValueInterpretationsValue() { + public java.util.Map getMissingValueInterpretationsValue() { return getMissingValueInterpretationsValueMap(); } /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1662,14 +1895,18 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterp
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override public java.util.Map - getMissingValueInterpretationsValueMap() { + getMissingValueInterpretationsValueMap() { return internalGetMissingValueInterpretations().getMap(); } /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1687,18 +1924,22 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterp
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public int getMissingValueInterpretationsValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public int getMissingValueInterpretationsValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMissingValueInterpretations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -1716,12 +1957,15 @@ public int getMissingValueInterpretationsValueOrDefault(
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public int getMissingValueInterpretationsValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public int getMissingValueInterpretationsValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMissingValueInterpretations().getMap(); if (!map.containsKey(key)) { @@ -1731,6 +1975,7 @@ public int getMissingValueInterpretationsValueOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1748,8 +1993,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeStream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, writeStream_); } @@ -1757,13 +2001,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, getOffset()); } if (rowsCase_ == 4) { - output.writeMessage(4, (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_); + output.writeMessage( + 4, (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, traceId_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetMissingValueInterpretations(), MissingValueInterpretationsDefaultEntryHolder.defaultEntry, @@ -1781,25 +2025,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, writeStream_); } if (offset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOffset()); } if (rowsCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, traceId_); } - for (java.util.Map.Entry entry - : internalGetMissingValueInterpretations().getMap().entrySet()) { + for (java.util.Map.Entry entry : + internalGetMissingValueInterpretations().getMap().entrySet()) { com.google.protobuf.MapEntry - missingValueInterpretations__ = MissingValueInterpretationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, missingValueInterpretations__); + missingValueInterpretations__ = + MissingValueInterpretationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, missingValueInterpretations__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1809,29 +2056,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AppendRowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.AppendRowsRequest other = (com.google.cloud.bigquery.storage.v1.AppendRowsRequest) obj; + com.google.cloud.bigquery.storage.v1.AppendRowsRequest other = + (com.google.cloud.bigquery.storage.v1.AppendRowsRequest) obj; - if (!getWriteStream() - .equals(other.getWriteStream())) return false; + if (!getWriteStream().equals(other.getWriteStream())) return false; if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { - if (!getOffset() - .equals(other.getOffset())) return false; + if (!getOffset().equals(other.getOffset())) return false; } - if (!getTraceId() - .equals(other.getTraceId())) return false; - if (!internalGetMissingValueInterpretations().equals( - other.internalGetMissingValueInterpretations())) return false; + if (!getTraceId().equals(other.getTraceId())) return false; + if (!internalGetMissingValueInterpretations() + .equals(other.internalGetMissingValueInterpretations())) return false; if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 4: - if (!getProtoRows() - .equals(other.getProtoRows())) return false; + if (!getProtoRows().equals(other.getProtoRows())) return false; break; case 0: default: @@ -1873,96 +2117,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AppendRowsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.AppendRowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `AppendRows`.
    * Due to the nature of AppendRows being a bidirectional streaming RPC, certain
@@ -1974,55 +2226,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AppendRowsRequest)
       com.google.cloud.bigquery.storage.v1.AppendRowsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 7:
           return internalGetMissingValueInterpretations();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 7:
           return internalGetMutableMissingValueInterpretations();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.Builder.class);
+              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.class,
+              com.google.cloud.bigquery.storage.v1.AppendRowsRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.AppendRowsRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2044,9 +2293,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor;
     }
 
     @java.lang.Override
@@ -2065,8 +2314,11 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.AppendRowsRequest buildPartial() {
-      com.google.cloud.bigquery.storage.v1.AppendRowsRequest result = new com.google.cloud.bigquery.storage.v1.AppendRowsRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.storage.v1.AppendRowsRequest result =
+          new com.google.cloud.bigquery.storage.v1.AppendRowsRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -2078,9 +2330,7 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsReques
         result.writeStream_ = writeStream_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.offset_ = offsetBuilder_ == null
-            ? offset_
-            : offsetBuilder_.build();
+        result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.traceId_ = traceId_;
@@ -2094,8 +2344,7 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsReques
     private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.AppendRowsRequest result) {
       result.rowsCase_ = rowsCase_;
       result.rows_ = this.rows_;
-      if (rowsCase_ == 4 &&
-          protoRowsBuilder_ != null) {
+      if (rowsCase_ == 4 && protoRowsBuilder_ != null) {
         result.rows_ = protoRowsBuilder_.build();
       }
     }
@@ -2104,38 +2353,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.AppendRowsR
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.AppendRowsRequest) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsRequest)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2143,7 +2393,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsRequest other) {
-      if (other == com.google.cloud.bigquery.storage.v1.AppendRowsRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.storage.v1.AppendRowsRequest.getDefaultInstance())
+        return this;
       if (!other.getWriteStream().isEmpty()) {
         writeStream_ = other.writeStream_;
         bitField0_ |= 0x00000001;
@@ -2157,17 +2408,19 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsRequest
         bitField0_ |= 0x00000008;
         onChanged();
       }
-      internalGetMutableMissingValueInterpretations().mergeFrom(
-          other.internalGetMissingValueInterpretations());
+      internalGetMutableMissingValueInterpretations()
+          .mergeFrom(other.internalGetMissingValueInterpretations());
       bitField0_ |= 0x00000010;
       switch (other.getRowsCase()) {
-        case PROTO_ROWS: {
-          mergeProtoRows(other.getProtoRows());
-          break;
-        }
-        case ROWS_NOT_SET: {
-          break;
-        }
+        case PROTO_ROWS:
+          {
+            mergeProtoRows(other.getProtoRows());
+            break;
+          }
+        case ROWS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -2200,45 +2453,53 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              writeStream_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getOffsetFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 34: {
-              input.readMessage(
-                  getProtoRowsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              rowsCase_ = 4;
-              break;
-            } // case 34
-            case 50: {
-              traceId_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 50
-            case 58: {
-              com.google.protobuf.MapEntry
-              missingValueInterpretations__ = input.readMessage(
-                  MissingValueInterpretationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableMissingValueInterpretations().getMutableMap().put(
-                  missingValueInterpretations__.getKey(), missingValueInterpretations__.getValue());
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 58
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                writeStream_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 34:
+              {
+                input.readMessage(getProtoRowsFieldBuilder().getBuilder(), extensionRegistry);
+                rowsCase_ = 4;
+                break;
+              } // case 34
+            case 50:
+              {
+                traceId_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 50
+            case 58:
+              {
+                com.google.protobuf.MapEntry
+                    missingValueInterpretations__ =
+                        input.readMessage(
+                            MissingValueInterpretationsDefaultEntryHolder.defaultEntry
+                                .getParserForType(),
+                            extensionRegistry);
+                internalGetMutableMissingValueInterpretations()
+                    .getMutableMap()
+                    .put(
+                        missingValueInterpretations__.getKey(),
+                        missingValueInterpretations__.getValue());
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 58
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -2248,12 +2509,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int rowsCase_ = 0;
     private java.lang.Object rows_;
-    public RowsCase
-        getRowsCase() {
-      return RowsCase.forNumber(
-          rowsCase_);
+
+    public RowsCase getRowsCase() {
+      return RowsCase.forNumber(rowsCase_);
     }
 
     public Builder clearRows() {
@@ -2267,6 +2528,8 @@ public Builder clearRows() {
 
     private java.lang.Object writeStream_ = "";
     /**
+     *
+     *
      * 
      * Required. The write_stream identifies the target of the append operation,
      * and only needs to be specified as part of the first request on the gRPC
@@ -2278,14 +2541,16 @@ public Builder clearRows() {
      * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ public java.lang.String getWriteStream() { java.lang.Object ref = writeStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; @@ -2294,6 +2559,8 @@ public java.lang.String getWriteStream() { } } /** + * + * *
      * Required. The write_stream identifies the target of the append operation,
      * and only needs to be specified as part of the first request on the gRPC
@@ -2305,16 +2572,17 @@ public java.lang.String getWriteStream() {
      * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ - public com.google.protobuf.ByteString - getWriteStreamBytes() { + public com.google.protobuf.ByteString getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeStream_ = b; return b; } else { @@ -2322,6 +2590,8 @@ public java.lang.String getWriteStream() { } } /** + * + * *
      * Required. The write_stream identifies the target of the append operation,
      * and only needs to be specified as part of the first request on the gRPC
@@ -2333,19 +2603,25 @@ public java.lang.String getWriteStream() {
      * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStream( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStream(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } writeStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The write_stream identifies the target of the append operation,
      * and only needs to be specified as part of the first request on the gRPC
@@ -2357,7 +2633,10 @@ public Builder setWriteStream(
      * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearWriteStream() { @@ -2367,6 +2646,8 @@ public Builder clearWriteStream() { return this; } /** + * + * *
      * Required. The write_stream identifies the target of the append operation,
      * and only needs to be specified as part of the first request on the gRPC
@@ -2378,13 +2659,17 @@ public Builder clearWriteStream() {
      * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStreamBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); writeStream_ = value; bitField0_ |= 0x00000001; @@ -2394,8 +2679,13 @@ public Builder setWriteStreamBytes( private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + offsetBuilder_; /** + * + * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2404,12 +2694,15 @@ public Builder setWriteStreamBytes(
      * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2418,6 +2711,7 @@ public boolean hasOffset() {
      * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -2428,6 +2722,8 @@ public com.google.protobuf.Int64Value getOffset() { } } /** + * + * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2451,6 +2747,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2460,8 +2758,7 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value offset = 2;
      */
-    public Builder setOffset(
-        com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
       if (offsetBuilder_ == null) {
         offset_ = builderForValue.build();
       } else {
@@ -2472,6 +2769,8 @@ public Builder setOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2483,9 +2782,9 @@ public Builder setOffset(
      */
     public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       if (offsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          offset_ != null &&
-          offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && offset_ != null
+            && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
           getOffsetBuilder().mergeFrom(value);
         } else {
           offset_ = value;
@@ -2498,6 +2797,8 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2518,6 +2819,8 @@ public Builder clearOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2533,6 +2836,8 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
       return getOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2546,11 +2851,12 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
       if (offsetBuilder_ != null) {
         return offsetBuilder_.getMessageOrBuilder();
       } else {
-        return offset_ == null ?
-            com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+        return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -2561,27 +2867,36 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
      * .google.protobuf.Int64Value offset = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
+            com.google.protobuf.Int64Value,
+            com.google.protobuf.Int64Value.Builder,
+            com.google.protobuf.Int64ValueOrBuilder>
         getOffsetFieldBuilder() {
       if (offsetBuilder_ == null) {
-        offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
-                getOffset(),
-                getParentForChildren(),
-                isClean());
+        offsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Int64Value,
+                com.google.protobuf.Int64Value.Builder,
+                com.google.protobuf.Int64ValueOrBuilder>(
+                getOffset(), getParentForChildren(), isClean());
         offset_ = null;
       }
       return offsetBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder> protoRowsBuilder_;
+            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData,
+            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder,
+            com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder>
+        protoRowsBuilder_;
     /**
+     *
+     *
      * 
      * Rows in proto format.
      * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; + * * @return Whether the protoRows field is set. */ @java.lang.Override @@ -2589,11 +2904,14 @@ public boolean hasProtoRows() { return rowsCase_ == 4; } /** + * + * *
      * Rows in proto format.
      * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; + * * @return The protoRows. */ @java.lang.Override @@ -2602,22 +2920,27 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getProto if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData + .getDefaultInstance(); } else { if (rowsCase_ == 4) { return protoRowsBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData + .getDefaultInstance(); } } /** + * + * *
      * Rows in proto format.
      * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ - public Builder setProtoRows(com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData value) { + public Builder setProtoRows( + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData value) { if (protoRowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2631,6 +2954,8 @@ public Builder setProtoRows(com.google.cloud.bigquery.storage.v1.AppendRowsReque return this; } /** + * + * *
      * Rows in proto format.
      * 
@@ -2649,18 +2974,26 @@ public Builder setProtoRows( return this; } /** + * + * *
      * Rows in proto format.
      * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ - public Builder mergeProtoRows(com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData value) { + public Builder mergeProtoRows( + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData value) { if (protoRowsBuilder_ == null) { - if (rowsCase_ == 4 && - rows_ != com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance()) { - rows_ = com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.newBuilder((com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_) - .mergeFrom(value).buildPartial(); + if (rowsCase_ == 4 + && rows_ + != com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData + .getDefaultInstance()) { + rows_ = + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.newBuilder( + (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_) + .mergeFrom(value) + .buildPartial(); } else { rows_ = value; } @@ -2676,6 +3009,8 @@ public Builder mergeProtoRows(com.google.cloud.bigquery.storage.v1.AppendRowsReq return this; } /** + * + * *
      * Rows in proto format.
      * 
@@ -2699,16 +3034,21 @@ public Builder clearProtoRows() { return this; } /** + * + * *
      * Rows in proto format.
      * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ - public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder getProtoRowsBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder + getProtoRowsBuilder() { return getProtoRowsFieldBuilder().getBuilder(); } /** + * + * *
      * Rows in proto format.
      * 
@@ -2716,17 +3056,21 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder + getProtoRowsOrBuilder() { if ((rowsCase_ == 4) && (protoRowsBuilder_ != null)) { return protoRowsBuilder_.getMessageOrBuilder(); } else { if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData + .getDefaultInstance(); } } /** + * + * *
      * Rows in proto format.
      * 
@@ -2734,14 +3078,20 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder> + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder> getProtoRowsFieldBuilder() { if (protoRowsBuilder_ == null) { if (!(rowsCase_ == 4)) { - rows_ = com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); + rows_ = + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.getDefaultInstance(); } - protoRowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder>( + protoRowsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData.Builder, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder>( (com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData) rows_, getParentForChildren(), isClean()); @@ -2754,19 +3104,21 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder private java.lang.Object traceId_ = ""; /** + * + * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; + * * @return The traceId. */ public java.lang.String getTraceId() { java.lang.Object ref = traceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; @@ -2775,21 +3127,22 @@ public java.lang.String getTraceId() { } } /** + * + * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; + * * @return The bytes for traceId. */ - public com.google.protobuf.ByteString - getTraceIdBytes() { + public com.google.protobuf.ByteString getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); traceId_ = b; return b; } else { @@ -2797,30 +3150,37 @@ public java.lang.String getTraceId() { } } /** + * + * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; + * * @param value The traceId to set. * @return This builder for chaining. */ - public Builder setTraceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTraceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } traceId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; + * * @return This builder for chaining. */ public Builder clearTraceId() { @@ -2830,18 +3190,22 @@ public Builder clearTraceId() { return this; } /** + * + * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; + * * @param value The bytes for traceId to set. * @return This builder for chaining. */ - public Builder setTraceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); traceId_ = value; bitField0_ |= 0x00000008; @@ -2849,8 +3213,9 @@ public Builder setTraceIdBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Integer> missingValueInterpretations_; + private com.google.protobuf.MapField + missingValueInterpretations_; + private com.google.protobuf.MapField internalGetMissingValueInterpretations() { if (missingValueInterpretations_ == null) { @@ -2859,11 +3224,13 @@ public Builder setTraceIdBytes( } return missingValueInterpretations_; } + private com.google.protobuf.MapField internalGetMutableMissingValueInterpretations() { if (missingValueInterpretations_ == null) { - missingValueInterpretations_ = com.google.protobuf.MapField.newMapField( - MissingValueInterpretationsDefaultEntryHolder.defaultEntry); + missingValueInterpretations_ = + com.google.protobuf.MapField.newMapField( + MissingValueInterpretationsDefaultEntryHolder.defaultEntry); } if (!missingValueInterpretations_.isMutable()) { missingValueInterpretations_ = missingValueInterpretations_.copy(); @@ -2872,10 +3239,13 @@ public Builder setTraceIdBytes( onChanged(); return missingValueInterpretations_; } + public int getMissingValueInterpretationsCount() { return internalGetMissingValueInterpretations().getMap().size(); } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -2893,24 +3263,29 @@ public int getMissingValueInterpretationsCount() {
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public boolean containsMissingValueInterpretations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMissingValueInterpretations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMissingValueInterpretations().getMap().containsKey(key); } - /** - * Use {@link #getMissingValueInterpretationsMap()} instead. - */ + /** Use {@link #getMissingValueInterpretationsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMissingValueInterpretations() { + public java.util.Map< + java.lang.String, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> + getMissingValueInterpretations() { return getMissingValueInterpretationsMap(); } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -2928,14 +3303,21 @@ public boolean containsMissingValueInterpretations(
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public java.util.Map - getMissingValueInterpretationsMap() { + public java.util.Map< + java.lang.String, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> + getMissingValueInterpretationsMap() { return internalGetAdaptedMissingValueInterpretationsMap( - internalGetMissingValueInterpretations().getMap());} + internalGetMissingValueInterpretations().getMap()); + } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -2953,22 +3335,30 @@ public boolean containsMissingValueInterpretations(
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public /* nullable */ -com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + public /* nullable */ com.google.cloud.bigquery.storage.v1.AppendRowsRequest + .MissingValueInterpretation + getMissingValueInterpretationsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMissingValueInterpretations().getMap(); return map.containsKey(key) - ? missingValueInterpretationsValueConverter.doForward(map.get(key)) - : defaultValue; + ? missingValueInterpretationsValueConverter.doForward(map.get(key)) + : defaultValue; } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -2986,12 +3376,16 @@ com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretatio
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation + getMissingValueInterpretationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMissingValueInterpretations().getMap(); if (!map.containsKey(key)) { @@ -2999,16 +3393,16 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterp } return missingValueInterpretationsValueConverter.doForward(map.get(key)); } - /** - * Use {@link #getMissingValueInterpretationsValueMap()} instead. - */ + /** Use {@link #getMissingValueInterpretationsValueMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map - getMissingValueInterpretationsValue() { + getMissingValueInterpretationsValue() { return getMissingValueInterpretationsValueMap(); } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3026,14 +3420,18 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterp
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override public java.util.Map - getMissingValueInterpretationsValueMap() { + getMissingValueInterpretationsValueMap() { return internalGetMissingValueInterpretations().getMap(); } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3051,18 +3449,23 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterp
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override public int getMissingValueInterpretationsValueOrDefault( - java.lang.String key, - int defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMissingValueInterpretations().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3080,12 +3483,15 @@ public int getMissingValueInterpretationsValueOrDefault(
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ @java.lang.Override - public int getMissingValueInterpretationsValueOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public int getMissingValueInterpretationsValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetMissingValueInterpretations().getMap(); if (!map.containsKey(key)) { @@ -3093,13 +3499,15 @@ public int getMissingValueInterpretationsValueOrThrow( } return map.get(key); } + public Builder clearMissingValueInterpretations() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableMissingValueInterpretations().getMutableMap() - .clear(); + internalGetMutableMissingValueInterpretations().getMutableMap().clear(); return this; } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3117,26 +3525,30 @@ public Builder clearMissingValueInterpretations() {
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ - public Builder removeMissingValueInterpretations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMissingValueInterpretations().getMutableMap() - .remove(key); + public Builder removeMissingValueInterpretations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMissingValueInterpretations().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map + public java.util.Map< + java.lang.String, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> getMutableMissingValueInterpretations() { bitField0_ |= 0x00000010; return internalGetAdaptedMissingValueInterpretationsMap( - internalGetMutableMissingValueInterpretations().getMutableMap()); + internalGetMutableMissingValueInterpretations().getMutableMap()); } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3154,19 +3566,26 @@ public Builder removeMissingValueInterpretations(
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ public Builder putMissingValueInterpretations( java.lang.String key, com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableMissingValueInterpretations().getMutableMap() + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableMissingValueInterpretations() + .getMutableMap() .put(key, missingValueInterpretationsValueConverter.doBackward(value)); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3184,26 +3603,31 @@ public Builder putMissingValueInterpretations(
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ public Builder putAllMissingValueInterpretations( - java.util.Map values) { + java.util.Map< + java.lang.String, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> + values) { internalGetAdaptedMissingValueInterpretationsMap( - internalGetMutableMissingValueInterpretations().getMutableMap()) - .putAll(values); + internalGetMutableMissingValueInterpretations().getMutableMap()) + .putAll(values); bitField0_ |= 0x00000010; return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableMissingValueInterpretationsValue() { + getMutableMissingValueInterpretationsValue() { bitField0_ |= 0x00000010; return internalGetMutableMissingValueInterpretations().getMutableMap(); } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3221,19 +3645,22 @@ public Builder putAllMissingValueInterpretations(
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ - public Builder putMissingValueInterpretationsValue( - java.lang.String key, - int value) { - if (key == null) { throw new NullPointerException("map key"); } - - internalGetMutableMissingValueInterpretations().getMutableMap() - .put(key, value); + public Builder putMissingValueInterpretationsValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); + } + + internalGetMutableMissingValueInterpretations().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * A map to indicate how to interpret missing value for some fields. Missing
      * values are fields present in user schema but missing in rows. The key is
@@ -3251,18 +3678,19 @@ public Builder putMissingValueInterpretationsValue(
      * field path like 'foo.bar'.
      * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ public Builder putAllMissingValueInterpretationsValue( java.util.Map values) { - internalGetMutableMissingValueInterpretations().getMutableMap() - .putAll(values); + internalGetMutableMissingValueInterpretations().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3272,12 +3700,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AppendRowsRequest) private static final com.google.cloud.bigquery.storage.v1.AppendRowsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AppendRowsRequest(); } @@ -3286,27 +3714,27 @@ public static com.google.cloud.bigquery.storage.v1.AppendRowsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppendRowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppendRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3321,6 +3749,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.AppendRowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java index e83143f9cd..1c0b44754f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface AppendRowsRequestOrBuilder extends +public interface AppendRowsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AppendRowsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The write_stream identifies the target of the append operation,
    * and only needs to be specified as part of the first request on the gRPC
@@ -19,11 +37,16 @@ public interface AppendRowsRequestOrBuilder extends
    * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ java.lang.String getWriteStream(); /** + * + * *
    * Required. The write_stream identifies the target of the append operation,
    * and only needs to be specified as part of the first request on the gRPC
@@ -35,13 +58,17 @@ public interface AppendRowsRequestOrBuilder extends
    * * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ - com.google.protobuf.ByteString - getWriteStreamBytes(); + com.google.protobuf.ByteString getWriteStreamBytes(); /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -50,10 +77,13 @@ public interface AppendRowsRequestOrBuilder extends
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ boolean hasOffset(); /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -62,10 +92,13 @@ public interface AppendRowsRequestOrBuilder extends
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -78,24 +111,32 @@ public interface AppendRowsRequestOrBuilder extends
   com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; + * * @return Whether the protoRows field is set. */ boolean hasProtoRows(); /** + * + * *
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData proto_rows = 4; + * * @return The protoRows. */ com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoData getProtoRows(); /** + * + * *
    * Rows in proto format.
    * 
@@ -105,28 +146,35 @@ public interface AppendRowsRequestOrBuilder extends com.google.cloud.bigquery.storage.v1.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder(); /** + * + * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; + * * @return The traceId. */ java.lang.String getTraceId(); /** + * + * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; + * * @return The bytes for traceId. */ - com.google.protobuf.ByteString - getTraceIdBytes(); + com.google.protobuf.ByteString getTraceIdBytes(); /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -144,10 +192,14 @@ public interface AppendRowsRequestOrBuilder extends
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ int getMissingValueInterpretationsCount(); /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -165,17 +217,20 @@ public interface AppendRowsRequestOrBuilder extends
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - */ - boolean containsMissingValueInterpretations( - java.lang.String key); - /** - * Use {@link #getMissingValueInterpretationsMap()} instead. + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ + boolean containsMissingValueInterpretations(java.lang.String key); + /** Use {@link #getMissingValueInterpretationsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getMissingValueInterpretations(); + java.util.Map< + java.lang.String, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> + getMissingValueInterpretations(); /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -193,11 +248,17 @@ boolean containsMissingValueInterpretations(
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ - java.util.Map - getMissingValueInterpretationsMap(); + java.util.Map< + java.lang.String, + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> + getMissingValueInterpretationsMap(); /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -215,14 +276,20 @@ boolean containsMissingValueInterpretations(
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ /* nullable */ -com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation defaultValue); + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation + getMissingValueInterpretationsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation + defaultValue); /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -240,17 +307,18 @@ com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretatio
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; - */ - com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation getMissingValueInterpretationsOrThrow( - java.lang.String key); - /** - * Use {@link #getMissingValueInterpretationsValueMap()} instead. + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ + com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation + getMissingValueInterpretationsOrThrow(java.lang.String key); + /** Use {@link #getMissingValueInterpretationsValueMap()} instead. */ @java.lang.Deprecated - java.util.Map - getMissingValueInterpretationsValue(); + java.util.Map getMissingValueInterpretationsValue(); /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -268,11 +336,14 @@ com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretatio
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ - java.util.Map - getMissingValueInterpretationsValueMap(); + java.util.Map getMissingValueInterpretationsValueMap(); /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -290,12 +361,14 @@ com.google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretatio
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ - int getMissingValueInterpretationsValueOrDefault( - java.lang.String key, - int defaultValue); + int getMissingValueInterpretationsValueOrDefault(java.lang.String key, int defaultValue); /** + * + * *
    * A map to indicate how to interpret missing value for some fields. Missing
    * values are fields present in user schema but missing in rows. The key is
@@ -313,10 +386,11 @@ int getMissingValueInterpretationsValueOrDefault(
    * field path like 'foo.bar'.
    * 
* - * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * + * map<string, .google.cloud.bigquery.storage.v1.AppendRowsRequest.MissingValueInterpretation> missing_value_interpretations = 7; + * */ - int getMissingValueInterpretationsValueOrThrow( - java.lang.String key); + int getMissingValueInterpretationsValueOrThrow(java.lang.String key); public com.google.cloud.bigquery.storage.v1.AppendRowsRequest.RowsCase getRowsCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java index eb05bb2668..5100da26ef 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Response message for `AppendRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsResponse} */ -public final class AppendRowsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AppendRowsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AppendRowsResponse) AppendRowsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AppendRowsResponse.newBuilder() to construct. private AppendRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AppendRowsResponse() { rowErrors_ = java.util.Collections.emptyList(); writeStream_ = ""; @@ -26,54 +44,64 @@ private AppendRowsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AppendRowsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.Builder.class); } - public interface AppendResultOrBuilder extends + public interface AppendResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; + * * @return Whether the offset field is set. */ boolean hasOffset(); /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; + * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
@@ -84,58 +112,64 @@ public interface AppendResultOrBuilder extends
     com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder();
   }
   /**
+   *
+   *
    * 
    * AppendResult is returned for successful append requests.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult} */ - public static final class AppendResult extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AppendResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) AppendResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AppendResult.newBuilder() to construct. private AppendResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AppendResult() { - } + + private AppendResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AppendResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.class, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder.class); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.class, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private com.google.protobuf.Int64Value offset_; /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; + * * @return Whether the offset field is set. */ @java.lang.Override @@ -143,12 +177,15 @@ public boolean hasOffset() { return offset_ != null; } /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; + * * @return The offset. */ @java.lang.Override @@ -156,6 +193,8 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
@@ -169,6 +208,7 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -180,8 +220,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (offset_ != null) {
         output.writeMessage(1, getOffset());
       }
@@ -195,8 +234,7 @@ public int getSerializedSize() {
 
       size = 0;
       if (offset_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getOffset());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOffset());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -206,17 +244,17 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult other = (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) obj;
+      com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult other =
+          (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) obj;
 
       if (hasOffset() != other.hasOffset()) return false;
       if (hasOffset()) {
-        if (!getOffset()
-            .equals(other.getOffset())) return false;
+        if (!getOffset().equals(other.getOffset())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -239,87 +277,95 @@ public int hashCode() {
     }
 
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
+        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -329,39 +375,42 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * AppendResult is returned for successful append requests.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.class, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder.class); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.class, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,19 +424,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult build() { - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result = buildPartial(); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -396,18 +448,20 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult buil @java.lang.Override public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult buildPartial() { - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result = new com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result = + new com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.offset_ = offsetBuilder_ == null - ? offset_ - : offsetBuilder_.build(); + result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build(); } } @@ -415,46 +469,53 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsRespon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult other) { - if (other == com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult other) { + if (other + == com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult + .getDefaultInstance()) return this; if (other.hasOffset()) { mergeOffset(other.getOffset()); } @@ -484,19 +545,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,30 +567,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + offsetBuilder_; /** + * + * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
        * 
* * .google.protobuf.Int64Value offset = 1; + * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
        * 
* * .google.protobuf.Int64Value offset = 1; + * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -540,6 +611,8 @@ public com.google.protobuf.Int64Value getOffset() { } } /** + * + * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -561,6 +634,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -568,8 +643,7 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
        *
        * .google.protobuf.Int64Value offset = 1;
        */
-      public Builder setOffset(
-          com.google.protobuf.Int64Value.Builder builderForValue) {
+      public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
         if (offsetBuilder_ == null) {
           offset_ = builderForValue.build();
         } else {
@@ -580,6 +654,8 @@ public Builder setOffset(
         return this;
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -589,9 +665,9 @@ public Builder setOffset(
        */
       public Builder mergeOffset(com.google.protobuf.Int64Value value) {
         if (offsetBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            offset_ != null &&
-            offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && offset_ != null
+              && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
             getOffsetBuilder().mergeFrom(value);
           } else {
             offset_ = value;
@@ -604,6 +680,8 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -622,6 +700,8 @@ public Builder clearOffset() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -635,6 +715,8 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
         return getOffsetFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -646,11 +728,12 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
         if (offsetBuilder_ != null) {
           return offsetBuilder_.getMessageOrBuilder();
         } else {
-          return offset_ == null ?
-              com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+          return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
         }
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -659,18 +742,22 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
        * .google.protobuf.Int64Value offset = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
+              com.google.protobuf.Int64Value,
+              com.google.protobuf.Int64Value.Builder,
+              com.google.protobuf.Int64ValueOrBuilder>
           getOffsetFieldBuilder() {
         if (offsetBuilder_ == null) {
-          offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
-                  getOffset(),
-                  getParentForChildren(),
-                  isClean());
+          offsetBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Int64Value,
+                  com.google.protobuf.Int64Value.Builder,
+                  com.google.protobuf.Int64ValueOrBuilder>(
+                  getOffset(), getParentForChildren(), isClean());
           offset_ = null;
         }
         return offsetBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -683,41 +770,44 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult)
-    private static final com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult DEFAULT_INSTANCE;
+    private static final com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult();
     }
 
-    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getDefaultInstance() {
+    public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public AppendResult parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public AppendResult parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -729,21 +819,24 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private int responseCase_ = 0;
   private java.lang.Object response_;
+
   public enum ResponseCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     APPEND_RESULT(1),
     ERROR(2),
     RESPONSE_NOT_SET(0);
     private final int value;
+
     private ResponseCase(int value) {
       this.value = value;
     }
@@ -759,30 +852,37 @@ public static ResponseCase valueOf(int value) {
 
     public static ResponseCase forNumber(int value) {
       switch (value) {
-        case 1: return APPEND_RESULT;
-        case 2: return ERROR;
-        case 0: return RESPONSE_NOT_SET;
-        default: return null;
+        case 1:
+          return APPEND_RESULT;
+        case 2:
+          return ERROR;
+        case 0:
+          return RESPONSE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ResponseCase
-  getResponseCase() {
-    return ResponseCase.forNumber(
-        responseCase_);
+  public ResponseCase getResponseCase() {
+    return ResponseCase.forNumber(responseCase_);
   }
 
   public static final int APPEND_RESULT_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return Whether the appendResult field is set. */ @java.lang.Override @@ -790,37 +890,49 @@ public boolean hasAppendResult() { return responseCase_ == 1; } /** + * + * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return The appendResult. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getAppendResult() { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; + return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult + .getDefaultInstance(); } /** + * + * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder + getAppendResultOrBuilder() { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; + return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult + .getDefaultInstance(); } public static final int ERROR_FIELD_NUMBER = 2; /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -839,6 +951,7 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBui
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -846,6 +959,8 @@ public boolean hasError() { return responseCase_ == 2; } /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -864,16 +979,19 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (responseCase_ == 2) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -896,7 +1014,7 @@ public com.google.rpc.Status getError() {
   @java.lang.Override
   public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
     if (responseCase_ == 2) {
-       return (com.google.rpc.Status) response_;
+      return (com.google.rpc.Status) response_;
     }
     return com.google.rpc.Status.getDefaultInstance();
   }
@@ -904,6 +1022,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int UPDATED_SCHEMA_FIELD_NUMBER = 3;
   private com.google.cloud.bigquery.storage.v1.TableSchema updatedSchema_;
   /**
+   *
+   *
    * 
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -911,6 +1031,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
    * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; + * * @return Whether the updatedSchema field is set. */ @java.lang.Override @@ -918,6 +1039,8 @@ public boolean hasUpdatedSchema() { return updatedSchema_ != null; } /** + * + * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -925,13 +1048,18 @@ public boolean hasUpdatedSchema() {
    * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; + * * @return The updatedSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableSchema getUpdatedSchema() { - return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : updatedSchema_; + return updatedSchema_ == null + ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() + : updatedSchema_; } /** + * + * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -942,13 +1070,18 @@ public com.google.cloud.bigquery.storage.v1.TableSchema getUpdatedSchema() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getUpdatedSchemaOrBuilder() {
-    return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : updatedSchema_;
+    return updatedSchema_ == null
+        ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()
+        : updatedSchema_;
   }
 
   public static final int ROW_ERRORS_FIELD_NUMBER = 4;
+
   @SuppressWarnings("serial")
   private java.util.List rowErrors_;
   /**
+   *
+   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -962,6 +1095,8 @@ public java.util.List getRowError
     return rowErrors_;
   }
   /**
+   *
+   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -971,11 +1106,13 @@ public java.util.List getRowError
    * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getRowErrorsOrBuilderList() {
     return rowErrors_;
   }
   /**
+   *
+   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -989,6 +1126,8 @@ public int getRowErrorsCount() {
     return rowErrors_.size();
   }
   /**
+   *
+   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -1002,6 +1141,8 @@ public com.google.cloud.bigquery.storage.v1.RowError getRowErrors(int index) {
     return rowErrors_.get(index);
   }
   /**
+   *
+   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -1011,21 +1152,24 @@ public com.google.cloud.bigquery.storage.v1.RowError getRowErrors(int index) {
    * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(
-      int index) {
+  public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(int index) {
     return rowErrors_.get(index);
   }
 
   public static final int WRITE_STREAM_FIELD_NUMBER = 5;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object writeStream_ = "";
   /**
+   *
+   *
    * 
    * The target of the append operation. Matches the write_stream in the
    * corresponding request.
    * 
* * string write_stream = 5; + * * @return The writeStream. */ @java.lang.Override @@ -1034,30 +1178,30 @@ public java.lang.String getWriteStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; } } /** + * + * *
    * The target of the append operation. Matches the write_stream in the
    * corresponding request.
    * 
* * string write_stream = 5; + * * @return The bytes for writeStream. */ @java.lang.Override - public com.google.protobuf.ByteString - getWriteStreamBytes() { + public com.google.protobuf.ByteString getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeStream_ = b; return b; } else { @@ -1066,6 +1210,7 @@ public java.lang.String getWriteStream() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1077,10 +1222,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (responseCase_ == 1) { - output.writeMessage(1, (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_); + output.writeMessage( + 1, (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_); } if (responseCase_ == 2) { output.writeMessage(2, (com.google.rpc.Status) response_); @@ -1104,20 +1249,20 @@ public int getSerializedSize() { size = 0; if (responseCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_); } if (responseCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.rpc.Status) response_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.rpc.Status) response_); } if (updatedSchema_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdatedSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdatedSchema()); } for (int i = 0; i < rowErrors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, rowErrors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, rowErrors_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeStream_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, writeStream_); @@ -1130,31 +1275,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AppendRowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.AppendRowsResponse other = (com.google.cloud.bigquery.storage.v1.AppendRowsResponse) obj; + com.google.cloud.bigquery.storage.v1.AppendRowsResponse other = + (com.google.cloud.bigquery.storage.v1.AppendRowsResponse) obj; if (hasUpdatedSchema() != other.hasUpdatedSchema()) return false; if (hasUpdatedSchema()) { - if (!getUpdatedSchema() - .equals(other.getUpdatedSchema())) return false; + if (!getUpdatedSchema().equals(other.getUpdatedSchema())) return false; } - if (!getRowErrorsList() - .equals(other.getRowErrorsList())) return false; - if (!getWriteStream() - .equals(other.getWriteStream())) return false; + if (!getRowErrorsList().equals(other.getRowErrorsList())) return false; + if (!getWriteStream().equals(other.getWriteStream())) return false; if (!getResponseCase().equals(other.getResponseCase())) return false; switch (responseCase_) { case 1: - if (!getAppendResult() - .equals(other.getAppendResult())) return false; + if (!getAppendResult().equals(other.getAppendResult())) return false; break; case 2: - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; break; case 0: default: @@ -1198,129 +1339,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AppendRowsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.AppendRowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for `AppendRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AppendRowsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AppendRowsResponse) com.google.cloud.bigquery.storage.v1.AppendRowsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.class, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.AppendRowsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1350,9 +1498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; } @java.lang.Override @@ -1371,15 +1519,19 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsResponse build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.AppendRowsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1.AppendRowsResponse result = new com.google.cloud.bigquery.storage.v1.AppendRowsResponse(this); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse result = + new com.google.cloud.bigquery.storage.v1.AppendRowsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.AppendRowsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1.AppendRowsResponse result) { if (rowErrorsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { rowErrors_ = java.util.Collections.unmodifiableList(rowErrors_); @@ -1394,24 +1546,22 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.App private void buildPartial0(com.google.cloud.bigquery.storage.v1.AppendRowsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { - result.updatedSchema_ = updatedSchemaBuilder_ == null - ? updatedSchema_ - : updatedSchemaBuilder_.build(); + result.updatedSchema_ = + updatedSchemaBuilder_ == null ? updatedSchema_ : updatedSchemaBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.writeStream_ = writeStream_; } } - private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.AppendRowsResponse result) { + private void buildPartialOneofs( + com.google.cloud.bigquery.storage.v1.AppendRowsResponse result) { result.responseCase_ = responseCase_; result.response_ = this.response_; - if (responseCase_ == 1 && - appendResultBuilder_ != null) { + if (responseCase_ == 1 && appendResultBuilder_ != null) { result.response_ = appendResultBuilder_.build(); } - if (responseCase_ == 2 && - errorBuilder_ != null) { + if (responseCase_ == 2 && errorBuilder_ != null) { result.response_ = errorBuilder_.build(); } } @@ -1420,38 +1570,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.AppendRowsR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.AppendRowsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsResponse)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.AppendRowsResponse) other); } else { super.mergeFrom(other); return this; @@ -1459,7 +1610,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsResponse other) { - if (other == com.google.cloud.bigquery.storage.v1.AppendRowsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.AppendRowsResponse.getDefaultInstance()) + return this; if (other.hasUpdatedSchema()) { mergeUpdatedSchema(other.getUpdatedSchema()); } @@ -1481,9 +1633,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsResponse rowErrorsBuilder_ = null; rowErrors_ = other.rowErrors_; bitField0_ = (bitField0_ & ~0x00000008); - rowErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRowErrorsFieldBuilder() : null; + rowErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRowErrorsFieldBuilder() + : null; } else { rowErrorsBuilder_.addAllMessages(other.rowErrors_); } @@ -1495,17 +1648,20 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AppendRowsResponse onChanged(); } switch (other.getResponseCase()) { - case APPEND_RESULT: { - mergeAppendResult(other.getAppendResult()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case RESPONSE_NOT_SET: { - break; - } + case APPEND_RESULT: + { + mergeAppendResult(other.getAppendResult()); + break; + } + case ERROR: + { + mergeError(other.getError()); + break; + } + case RESPONSE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1533,51 +1689,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getAppendResultFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdatedSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.cloud.bigquery.storage.v1.RowError m = - input.readMessage( - com.google.cloud.bigquery.storage.v1.RowError.parser(), - extensionRegistry); - if (rowErrorsBuilder_ == null) { - ensureRowErrorsIsMutable(); - rowErrors_.add(m); - } else { - rowErrorsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - writeStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getAppendResultFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdatedSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.bigquery.storage.v1.RowError m = + input.readMessage( + com.google.cloud.bigquery.storage.v1.RowError.parser(), extensionRegistry); + if (rowErrorsBuilder_ == null) { + ensureRowErrorsIsMutable(); + rowErrors_.add(m); + } else { + rowErrorsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + writeStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1587,12 +1742,12 @@ public Builder mergeFrom( } // finally return this; } + private int responseCase_ = 0; private java.lang.Object response_; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); } public Builder clearResponse() { @@ -1605,13 +1760,20 @@ public Builder clearResponse() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder> appendResultBuilder_; + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder> + appendResultBuilder_; /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return Whether the appendResult field is set. */ @java.lang.Override @@ -1619,11 +1781,15 @@ public boolean hasAppendResult() { return responseCase_ == 1; } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return The appendResult. */ @java.lang.Override @@ -1632,22 +1798,28 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getA if (responseCase_ == 1) { return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult + .getDefaultInstance(); } else { if (responseCase_ == 1) { return appendResultBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult + .getDefaultInstance(); } } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * */ - public Builder setAppendResult(com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult value) { + public Builder setAppendResult( + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult value) { if (appendResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1661,14 +1833,18 @@ public Builder setAppendResult(com.google.cloud.bigquery.storage.v1.AppendRowsRe return this; } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * */ public Builder setAppendResult( - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder + builderForValue) { if (appendResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1679,18 +1855,28 @@ public Builder setAppendResult( return this; } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * */ - public Builder mergeAppendResult(com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult value) { + public Builder mergeAppendResult( + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult value) { if (appendResultBuilder_ == null) { - if (responseCase_ == 1 && - response_ != com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance()) { - response_ = com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.newBuilder((com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_) - .mergeFrom(value).buildPartial(); + if (responseCase_ == 1 + && response_ + != com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult + .getDefaultInstance()) { + response_ = + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.newBuilder( + (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) + response_) + .mergeFrom(value) + .buildPartial(); } else { response_ = value; } @@ -1706,11 +1892,14 @@ public Builder mergeAppendResult(com.google.cloud.bigquery.storage.v1.AppendRows return this; } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * */ public Builder clearAppendResult() { if (appendResultBuilder_ == null) { @@ -1729,49 +1918,68 @@ public Builder clearAppendResult() { return this; } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * */ - public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder getAppendResultBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder + getAppendResultBuilder() { return getAppendResultFieldBuilder().getBuilder(); } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder() { + public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder + getAppendResultOrBuilder() { if ((responseCase_ == 1) && (appendResultBuilder_ != null)) { return appendResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 1) { return (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult + .getDefaultInstance(); } } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder> + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder> getAppendResultFieldBuilder() { if (appendResultBuilder_ == null) { if (!(responseCase_ == 1)) { - response_ = com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.getDefaultInstance(); + response_ = + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult + .getDefaultInstance(); } - appendResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder>( + appendResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult.Builder, + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder>( (com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult) response_, getParentForChildren(), isClean()); @@ -1783,8 +1991,11 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBui } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1803,6 +2014,7 @@ public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBui
      * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -1810,6 +2022,8 @@ public boolean hasError() { return responseCase_ == 2; } /** + * + * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1828,6 +2042,7 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override @@ -1845,6 +2060,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1878,6 +2095,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1897,8 +2116,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 2;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         response_ = builderForValue.build();
         onChanged();
@@ -1909,6 +2127,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1930,10 +2150,11 @@ public Builder setError(
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (responseCase_ == 2 &&
-            response_ != com.google.rpc.Status.getDefaultInstance()) {
-          response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
-              .mergeFrom(value).buildPartial();
+        if (responseCase_ == 2 && response_ != com.google.rpc.Status.getDefaultInstance()) {
+          response_ =
+              com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           response_ = value;
         }
@@ -1949,6 +2170,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1985,6 +2208,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2008,6 +2233,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2039,6 +2266,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -2059,17 +2288,18 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
         if (!(responseCase_ == 2)) {
           response_ = com.google.rpc.Status.getDefaultInstance();
         }
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                (com.google.rpc.Status) response_,
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
+                (com.google.rpc.Status) response_, getParentForChildren(), isClean());
         response_ = null;
       }
       responseCase_ = 2;
@@ -2079,8 +2309,13 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.bigquery.storage.v1.TableSchema updatedSchema_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> updatedSchemaBuilder_;
+            com.google.cloud.bigquery.storage.v1.TableSchema,
+            com.google.cloud.bigquery.storage.v1.TableSchema.Builder,
+            com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>
+        updatedSchemaBuilder_;
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2088,12 +2323,15 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; + * * @return Whether the updatedSchema field is set. */ public boolean hasUpdatedSchema() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2101,16 +2339,21 @@ public boolean hasUpdatedSchema() {
      * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; + * * @return The updatedSchema. */ public com.google.cloud.bigquery.storage.v1.TableSchema getUpdatedSchema() { if (updatedSchemaBuilder_ == null) { - return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : updatedSchema_; + return updatedSchema_ == null + ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() + : updatedSchema_; } else { return updatedSchemaBuilder_.getMessage(); } } /** + * + * *
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2133,6 +2376,8 @@ public Builder setUpdatedSchema(com.google.cloud.bigquery.storage.v1.TableSchema
       return this;
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2153,6 +2398,8 @@ public Builder setUpdatedSchema(
       return this;
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2163,9 +2410,10 @@ public Builder setUpdatedSchema(
      */
     public Builder mergeUpdatedSchema(com.google.cloud.bigquery.storage.v1.TableSchema value) {
       if (updatedSchemaBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          updatedSchema_ != null &&
-          updatedSchema_ != com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && updatedSchema_ != null
+            && updatedSchema_
+                != com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()) {
           getUpdatedSchemaBuilder().mergeFrom(value);
         } else {
           updatedSchema_ = value;
@@ -2178,6 +2426,8 @@ public Builder mergeUpdatedSchema(com.google.cloud.bigquery.storage.v1.TableSche
       return this;
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2197,6 +2447,8 @@ public Builder clearUpdatedSchema() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2211,6 +2463,8 @@ public com.google.cloud.bigquery.storage.v1.TableSchema.Builder getUpdatedSchema
       return getUpdatedSchemaFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2223,11 +2477,14 @@ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getUpdatedSchem
       if (updatedSchemaBuilder_ != null) {
         return updatedSchemaBuilder_.getMessageOrBuilder();
       } else {
-        return updatedSchema_ == null ?
-            com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : updatedSchema_;
+        return updatedSchema_ == null
+            ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()
+            : updatedSchema_;
       }
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2237,32 +2494,42 @@ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getUpdatedSchem
      * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> 
+            com.google.cloud.bigquery.storage.v1.TableSchema,
+            com.google.cloud.bigquery.storage.v1.TableSchema.Builder,
+            com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>
         getUpdatedSchemaFieldBuilder() {
       if (updatedSchemaBuilder_ == null) {
-        updatedSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>(
-                getUpdatedSchema(),
-                getParentForChildren(),
-                isClean());
+        updatedSchemaBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1.TableSchema,
+                com.google.cloud.bigquery.storage.v1.TableSchema.Builder,
+                com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>(
+                getUpdatedSchema(), getParentForChildren(), isClean());
         updatedSchema_ = null;
       }
       return updatedSchemaBuilder_;
     }
 
     private java.util.List rowErrors_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRowErrorsIsMutable() {
       if (!((bitField0_ & 0x00000008) != 0)) {
-        rowErrors_ = new java.util.ArrayList(rowErrors_);
+        rowErrors_ =
+            new java.util.ArrayList(rowErrors_);
         bitField0_ |= 0x00000008;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.RowError, com.google.cloud.bigquery.storage.v1.RowError.Builder, com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder> rowErrorsBuilder_;
+            com.google.cloud.bigquery.storage.v1.RowError,
+            com.google.cloud.bigquery.storage.v1.RowError.Builder,
+            com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder>
+        rowErrorsBuilder_;
 
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2279,6 +2546,8 @@ public java.util.List getRowError
       }
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2295,6 +2564,8 @@ public int getRowErrorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2311,6 +2582,8 @@ public com.google.cloud.bigquery.storage.v1.RowError getRowErrors(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2319,8 +2592,7 @@ public com.google.cloud.bigquery.storage.v1.RowError getRowErrors(int index) {
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public Builder setRowErrors(
-        int index, com.google.cloud.bigquery.storage.v1.RowError value) {
+    public Builder setRowErrors(int index, com.google.cloud.bigquery.storage.v1.RowError value) {
       if (rowErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2334,6 +2606,8 @@ public Builder setRowErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2354,6 +2628,8 @@ public Builder setRowErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2376,6 +2652,8 @@ public Builder addRowErrors(com.google.cloud.bigquery.storage.v1.RowError value)
       return this;
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2384,8 +2662,7 @@ public Builder addRowErrors(com.google.cloud.bigquery.storage.v1.RowError value)
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public Builder addRowErrors(
-        int index, com.google.cloud.bigquery.storage.v1.RowError value) {
+    public Builder addRowErrors(int index, com.google.cloud.bigquery.storage.v1.RowError value) {
       if (rowErrorsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2399,6 +2676,8 @@ public Builder addRowErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2419,6 +2698,8 @@ public Builder addRowErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2439,6 +2720,8 @@ public Builder addRowErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2451,8 +2734,7 @@ public Builder addAllRowErrors(
         java.lang.Iterable values) {
       if (rowErrorsBuilder_ == null) {
         ensureRowErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, rowErrors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rowErrors_);
         onChanged();
       } else {
         rowErrorsBuilder_.addAllMessages(values);
@@ -2460,6 +2742,8 @@ public Builder addAllRowErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2479,6 +2763,8 @@ public Builder clearRowErrors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2498,6 +2784,8 @@ public Builder removeRowErrors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2506,11 +2794,12 @@ public Builder removeRowErrors(int index) {
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public com.google.cloud.bigquery.storage.v1.RowError.Builder getRowErrorsBuilder(
-        int index) {
+    public com.google.cloud.bigquery.storage.v1.RowError.Builder getRowErrorsBuilder(int index) {
       return getRowErrorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2519,14 +2808,16 @@ public com.google.cloud.bigquery.storage.v1.RowError.Builder getRowErrorsBuilder
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(
-        int index) {
+    public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(int index) {
       if (rowErrorsBuilder_ == null) {
-        return rowErrors_.get(index);  } else {
+        return rowErrors_.get(index);
+      } else {
         return rowErrorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2535,8 +2826,8 @@ public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuil
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public java.util.List 
-         getRowErrorsOrBuilderList() {
+    public java.util.List
+        getRowErrorsOrBuilderList() {
       if (rowErrorsBuilder_ != null) {
         return rowErrorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2544,6 +2835,8 @@ public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuil
       }
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2553,10 +2846,12 @@ public com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuil
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
     public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder() {
-      return getRowErrorsFieldBuilder().addBuilder(
-          com.google.cloud.bigquery.storage.v1.RowError.getDefaultInstance());
+      return getRowErrorsFieldBuilder()
+          .addBuilder(com.google.cloud.bigquery.storage.v1.RowError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2565,12 +2860,13 @@ public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder(
-        int index) {
-      return getRowErrorsFieldBuilder().addBuilder(
-          index, com.google.cloud.bigquery.storage.v1.RowError.getDefaultInstance());
+    public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder(int index) {
+      return getRowErrorsFieldBuilder()
+          .addBuilder(index, com.google.cloud.bigquery.storage.v1.RowError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * If a request failed due to corrupted rows, no rows in the batch will be
      * appended. The API will return row level error info, so that the caller can
@@ -2579,20 +2875,23 @@ public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder
      *
      * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
      */
-    public java.util.List 
-         getRowErrorsBuilderList() {
+    public java.util.List
+        getRowErrorsBuilderList() {
       return getRowErrorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.RowError, com.google.cloud.bigquery.storage.v1.RowError.Builder, com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder> 
+            com.google.cloud.bigquery.storage.v1.RowError,
+            com.google.cloud.bigquery.storage.v1.RowError.Builder,
+            com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder>
         getRowErrorsFieldBuilder() {
       if (rowErrorsBuilder_ == null) {
-        rowErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.RowError, com.google.cloud.bigquery.storage.v1.RowError.Builder, com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder>(
-                rowErrors_,
-                ((bitField0_ & 0x00000008) != 0),
-                getParentForChildren(),
-                isClean());
+        rowErrorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1.RowError,
+                com.google.cloud.bigquery.storage.v1.RowError.Builder,
+                com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder>(
+                rowErrors_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
         rowErrors_ = null;
       }
       return rowErrorsBuilder_;
@@ -2600,19 +2899,21 @@ public com.google.cloud.bigquery.storage.v1.RowError.Builder addRowErrorsBuilder
 
     private java.lang.Object writeStream_ = "";
     /**
+     *
+     *
      * 
      * The target of the append operation. Matches the write_stream in the
      * corresponding request.
      * 
* * string write_stream = 5; + * * @return The writeStream. */ public java.lang.String getWriteStream() { java.lang.Object ref = writeStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; @@ -2621,21 +2922,22 @@ public java.lang.String getWriteStream() { } } /** + * + * *
      * The target of the append operation. Matches the write_stream in the
      * corresponding request.
      * 
* * string write_stream = 5; + * * @return The bytes for writeStream. */ - public com.google.protobuf.ByteString - getWriteStreamBytes() { + public com.google.protobuf.ByteString getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeStream_ = b; return b; } else { @@ -2643,30 +2945,37 @@ public java.lang.String getWriteStream() { } } /** + * + * *
      * The target of the append operation. Matches the write_stream in the
      * corresponding request.
      * 
* * string write_stream = 5; + * * @param value The writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStream( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStream(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } writeStream_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * The target of the append operation. Matches the write_stream in the
      * corresponding request.
      * 
* * string write_stream = 5; + * * @return This builder for chaining. */ public Builder clearWriteStream() { @@ -2676,27 +2985,31 @@ public Builder clearWriteStream() { return this; } /** + * + * *
      * The target of the append operation. Matches the write_stream in the
      * corresponding request.
      * 
* * string write_stream = 5; + * * @param value The bytes for writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStreamBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); writeStream_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2706,12 +3019,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AppendRowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AppendRowsResponse) private static final com.google.cloud.bigquery.storage.v1.AppendRowsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AppendRowsResponse(); } @@ -2720,27 +3033,27 @@ public static com.google.cloud.bigquery.storage.v1.AppendRowsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppendRowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppendRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2755,6 +3068,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.AppendRowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java similarity index 86% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java index 7702951c04..cfafd12c9d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AppendRowsResponseOrBuilder.java @@ -1,40 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface AppendRowsResponseOrBuilder extends +public interface AppendRowsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AppendRowsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return Whether the appendResult field is set. */ boolean hasAppendResult(); /** + * + * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return The appendResult. */ com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult getAppendResult(); /** + * + * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResult append_result = 1; + * */ - com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder(); + com.google.cloud.bigquery.storage.v1.AppendRowsResponse.AppendResultOrBuilder + getAppendResultOrBuilder(); /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -53,10 +83,13 @@ public interface AppendRowsResponseOrBuilder extends
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -75,10 +108,13 @@ public interface AppendRowsResponseOrBuilder extends
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -101,6 +137,8 @@ public interface AppendRowsResponseOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -108,10 +146,13 @@ public interface AppendRowsResponseOrBuilder extends
    * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; + * * @return Whether the updatedSchema field is set. */ boolean hasUpdatedSchema(); /** + * + * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -119,10 +160,13 @@ public interface AppendRowsResponseOrBuilder extends
    * 
* * .google.cloud.bigquery.storage.v1.TableSchema updated_schema = 3; + * * @return The updatedSchema. */ com.google.cloud.bigquery.storage.v1.TableSchema getUpdatedSchema(); /** + * + * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -134,6 +178,8 @@ public interface AppendRowsResponseOrBuilder extends
   com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getUpdatedSchemaOrBuilder();
 
   /**
+   *
+   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -142,9 +188,10 @@ public interface AppendRowsResponseOrBuilder extends
    *
    * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
    */
-  java.util.List 
-      getRowErrorsList();
+  java.util.List getRowErrorsList();
   /**
+   *
+   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -155,6 +202,8 @@ public interface AppendRowsResponseOrBuilder extends
    */
   com.google.cloud.bigquery.storage.v1.RowError getRowErrors(int index);
   /**
+   *
+   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -165,6 +214,8 @@ public interface AppendRowsResponseOrBuilder extends
    */
   int getRowErrorsCount();
   /**
+   *
+   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -173,9 +224,11 @@ public interface AppendRowsResponseOrBuilder extends
    *
    * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
    */
-  java.util.List 
+  java.util.List
       getRowErrorsOrBuilderList();
   /**
+   *
+   *
    * 
    * If a request failed due to corrupted rows, no rows in the batch will be
    * appended. The API will return row level error info, so that the caller can
@@ -184,30 +237,34 @@ public interface AppendRowsResponseOrBuilder extends
    *
    * repeated .google.cloud.bigquery.storage.v1.RowError row_errors = 4;
    */
-  com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(
-      int index);
+  com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder getRowErrorsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * The target of the append operation. Matches the write_stream in the
    * corresponding request.
    * 
* * string write_stream = 5; + * * @return The writeStream. */ java.lang.String getWriteStream(); /** + * + * *
    * The target of the append operation. Matches the write_stream in the
    * corresponding request.
    * 
* * string write_stream = 5; + * * @return The bytes for writeStream. */ - com.google.protobuf.ByteString - getWriteStreamBytes(); + com.google.protobuf.ByteString getWriteStreamBytes(); public com.google.cloud.bigquery.storage.v1.AppendRowsResponse.ResponseCase getResponseCase(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java new file mode 100644 index 0000000000..a8d38d4b29 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowProto.java @@ -0,0 +1,98 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/arrow.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class ArrowProto { + private ArrowProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/bigquery/storage/v1/arrow" + + ".proto\022 google.cloud.bigquery.storage.v1" + + "\"(\n\013ArrowSchema\022\031\n\021serialized_schema\030\001 \001" + + "(\014\"J\n\020ArrowRecordBatch\022\037\n\027serialized_rec" + + "ord_batch\030\001 \001(\014\022\025\n\trow_count\030\002 \001(\003B\002\030\001\"\317" + + "\001\n\031ArrowSerializationOptions\022h\n\022buffer_c" + + "ompression\030\002 \001(\0162L.google.cloud.bigquery" + + ".storage.v1.ArrowSerializationOptions.Co" + + "mpressionCodec\"H\n\020CompressionCodec\022\033\n\027CO" + + "MPRESSION_UNSPECIFIED\020\000\022\r\n\tLZ4_FRAME\020\001\022\010" + + "\n\004ZSTD\020\002B\272\001\n$com.google.cloud.bigquery.s" + + "torage.v1B\nArrowProtoP\001Z>cloud.google.co" + + "m/go/bigquery/storage/apiv1/storagepb;st" + + "oragepb\252\002 Google.Cloud.BigQuery.Storage." + + "V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1b\006p" + + "roto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor, + new java.lang.String[] { + "SerializedSchema", + }); + internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor, + new java.lang.String[] { + "SerializedRecordBatch", "RowCount", + }); + internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor, + new java.lang.String[] { + "BufferCompression", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java index 4d2e8ac638..0c762b10f7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatch.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Arrow RecordBatch.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowRecordBatch} */ -public final class ArrowRecordBatch extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ArrowRecordBatch extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ArrowRecordBatch) ArrowRecordBatchOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ArrowRecordBatch.newBuilder() to construct. private ArrowRecordBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ArrowRecordBatch() { serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ArrowRecordBatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.class, + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder.class); } public static final int SERIALIZED_RECORD_BATCH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * IPC-serialized Arrow RecordBatch.
    * 
* * bytes serialized_record_batch = 1; + * * @return The serializedRecordBatch. */ @java.lang.Override @@ -66,22 +89,27 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { public static final int ROW_COUNT_FIELD_NUMBER = 2; private long rowCount_ = 0L; /** + * + * *
    * [Deprecated] The count of rows in `serialized_record_batch`.
    * Please use the format-independent ReadRowsResponse.row_count instead.
    * 
* * int64 row_count = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. - * See google/cloud/bigquery/storage/v1/arrow.proto;l=43 + * + * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See + * google/cloud/bigquery/storage/v1/arrow.proto;l=43 * @return The rowCount. */ @java.lang.Override - @java.lang.Deprecated public long getRowCount() { + @java.lang.Deprecated + public long getRowCount() { return rowCount_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -93,8 +121,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!serializedRecordBatch_.isEmpty()) { output.writeBytes(1, serializedRecordBatch_); } @@ -111,12 +138,10 @@ public int getSerializedSize() { size = 0; if (!serializedRecordBatch_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, serializedRecordBatch_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedRecordBatch_); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, rowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -126,17 +151,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ArrowRecordBatch)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch other = (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) obj; + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch other = + (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) obj; - if (!getSerializedRecordBatch() - .equals(other.getSerializedRecordBatch())) return false; - if (getRowCount() - != other.getRowCount()) return false; + if (!getSerializedRecordBatch().equals(other.getSerializedRecordBatch())) return false; + if (getRowCount() != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -151,137 +175,143 @@ public int hashCode() { hash = (37 * hash) + SERIALIZED_RECORD_BATCH_FIELD_NUMBER; hash = (53 * hash) + getSerializedRecordBatch().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Arrow RecordBatch.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowRecordBatch} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ArrowRecordBatch) com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.class, + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1_ArrowRecordBatch_descriptor; } @java.lang.Override @@ -313,8 +343,11 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch buildPartial() { - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch result = new com.google.cloud.bigquery.storage.v1.ArrowRecordBatch(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch result = + new com.google.cloud.bigquery.storage.v1.ArrowRecordBatch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -333,38 +366,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowRecordBatch)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) other); } else { super.mergeFrom(other); return this; @@ -372,7 +406,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch other) { - if (other == com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance()) + return this; if (other.getSerializedRecordBatch() != com.google.protobuf.ByteString.EMPTY) { setSerializedRecordBatch(other.getSerializedRecordBatch()); } @@ -405,22 +440,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - serializedRecordBatch_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + serializedRecordBatch_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -430,15 +468,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; + * * @return The serializedRecordBatch. */ @java.lang.Override @@ -446,27 +489,35 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { return serializedRecordBatch_; } /** + * + * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; + * * @param value The serializedRecordBatch to set. * @return This builder for chaining. */ public Builder setSerializedRecordBatch(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } serializedRecordBatch_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; + * * @return This builder for chaining. */ public Builder clearSerializedRecordBatch() { @@ -476,61 +527,73 @@ public Builder clearSerializedRecordBatch() { return this; } - private long rowCount_ ; + private long rowCount_; /** + * + * *
      * [Deprecated] The count of rows in `serialized_record_batch`.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. - * See google/cloud/bigquery/storage/v1/arrow.proto;l=43 + * + * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See + * google/cloud/bigquery/storage/v1/arrow.proto;l=43 * @return The rowCount. */ @java.lang.Override - @java.lang.Deprecated public long getRowCount() { + @java.lang.Deprecated + public long getRowCount() { return rowCount_; } /** + * + * *
      * [Deprecated] The count of rows in `serialized_record_batch`.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. - * See google/cloud/bigquery/storage/v1/arrow.proto;l=43 + * + * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See + * google/cloud/bigquery/storage/v1/arrow.proto;l=43 * @param value The rowCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setRowCount(long value) { - + @java.lang.Deprecated + public Builder setRowCount(long value) { + rowCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * [Deprecated] The count of rows in `serialized_record_batch`.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. - * See google/cloud/bigquery/storage/v1/arrow.proto;l=43 + * + * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See + * google/cloud/bigquery/storage/v1/arrow.proto;l=43 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearRowCount() { + @java.lang.Deprecated + public Builder clearRowCount() { bitField0_ = (bitField0_ & ~0x00000002); rowCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -540,12 +603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ArrowRecordBatch) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ArrowRecordBatch) private static final com.google.cloud.bigquery.storage.v1.ArrowRecordBatch DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ArrowRecordBatch(); } @@ -554,27 +617,27 @@ public static com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowRecordBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowRecordBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -589,6 +652,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java similarity index 51% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java index 6bd4f925c2..80dc0e4e98 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowRecordBatchOrBuilder.java @@ -1,32 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto package com.google.cloud.bigquery.storage.v1; -public interface ArrowRecordBatchOrBuilder extends +public interface ArrowRecordBatchOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowRecordBatch) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * IPC-serialized Arrow RecordBatch.
    * 
* * bytes serialized_record_batch = 1; + * * @return The serializedRecordBatch. */ com.google.protobuf.ByteString getSerializedRecordBatch(); /** + * + * *
    * [Deprecated] The count of rows in `serialized_record_batch`.
    * Please use the format-independent ReadRowsResponse.row_count instead.
    * 
* * int64 row_count = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. - * See google/cloud/bigquery/storage/v1/arrow.proto;l=43 + * + * @deprecated google.cloud.bigquery.storage.v1.ArrowRecordBatch.row_count is deprecated. See + * google/cloud/bigquery/storage/v1/arrow.proto;l=43 * @return The rowCount. */ - @java.lang.Deprecated long getRowCount(); + @java.lang.Deprecated + long getRowCount(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java index 0c103de4bf..f571fa4dbe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchema.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Arrow schema as specified in
  * https://arrow.apache.org/docs/python/api/datatypes.html
@@ -14,52 +31,57 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowSchema}
  */
-public final class ArrowSchema extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ArrowSchema extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ArrowSchema)
     ArrowSchemaOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ArrowSchema.newBuilder() to construct.
   private ArrowSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ArrowSchema() {
     serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ArrowSchema();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.ArrowProto
+        .internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.ArrowProto
+        .internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.ArrowSchema.class, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder.class);
+            com.google.cloud.bigquery.storage.v1.ArrowSchema.class,
+            com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder.class);
   }
 
   public static final int SERIALIZED_SCHEMA_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
   /**
+   *
+   *
    * 
    * IPC serialized Arrow schema.
    * 
* * bytes serialized_schema = 1; + * * @return The serializedSchema. */ @java.lang.Override @@ -68,6 +90,7 @@ public com.google.protobuf.ByteString getSerializedSchema() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -79,8 +102,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!serializedSchema_.isEmpty()) { output.writeBytes(1, serializedSchema_); } @@ -94,8 +116,7 @@ public int getSerializedSize() { size = 0; if (!serializedSchema_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, serializedSchema_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedSchema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -105,15 +126,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ArrowSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ArrowSchema other = (com.google.cloud.bigquery.storage.v1.ArrowSchema) obj; + com.google.cloud.bigquery.storage.v1.ArrowSchema other = + (com.google.cloud.bigquery.storage.v1.ArrowSchema) obj; - if (!getSerializedSchema() - .equals(other.getSerializedSchema())) return false; + if (!getSerializedSchema().equals(other.getSerializedSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -132,97 +153,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ArrowSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ArrowSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Arrow schema as specified in
    * https://arrow.apache.org/docs/python/api/datatypes.html
@@ -233,33 +261,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowSchema}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ArrowSchema)
       com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.ArrowProto
+          .internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.ArrowProto
+          .internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.ArrowSchema.class, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder.class);
+              com.google.cloud.bigquery.storage.v1.ArrowSchema.class,
+              com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.ArrowSchema.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -269,9 +296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.ArrowProto
+          .internal_static_google_cloud_bigquery_storage_v1_ArrowSchema_descriptor;
     }
 
     @java.lang.Override
@@ -290,8 +317,11 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchema build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.ArrowSchema buildPartial() {
-      com.google.cloud.bigquery.storage.v1.ArrowSchema result = new com.google.cloud.bigquery.storage.v1.ArrowSchema(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.storage.v1.ArrowSchema result =
+          new com.google.cloud.bigquery.storage.v1.ArrowSchema(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -307,38 +337,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ArrowSchema resu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.ArrowSchema) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowSchema)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowSchema) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -346,7 +377,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ArrowSchema other) {
-      if (other == com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance())
+        return this;
       if (other.getSerializedSchema() != com.google.protobuf.ByteString.EMPTY) {
         setSerializedSchema(other.getSerializedSchema());
       }
@@ -376,17 +408,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              serializedSchema_ = input.readBytes();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                serializedSchema_ = input.readBytes();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -396,15 +430,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; + * * @return The serializedSchema. */ @java.lang.Override @@ -412,27 +450,35 @@ public com.google.protobuf.ByteString getSerializedSchema() { return serializedSchema_; } /** + * + * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; + * * @param value The serializedSchema to set. * @return This builder for chaining. */ public Builder setSerializedSchema(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } serializedSchema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; + * * @return This builder for chaining. */ public Builder clearSerializedSchema() { @@ -441,9 +487,9 @@ public Builder clearSerializedSchema() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -453,12 +499,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ArrowSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ArrowSchema) private static final com.google.cloud.bigquery.storage.v1.ArrowSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ArrowSchema(); } @@ -467,27 +513,27 @@ public static com.google.cloud.bigquery.storage.v1.ArrowSchema getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -502,6 +548,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ArrowSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java new file mode 100644 index 0000000000..d123329e39 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSchemaOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/arrow.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface ArrowSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * IPC serialized Arrow schema.
+   * 
+ * + * bytes serialized_schema = 1; + * + * @return The serializedSchema. + */ + com.google.protobuf.ByteString getSerializedSchema(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java index ed913baac3..fc83b90b07 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptions.java @@ -1,63 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/arrow.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Contains options specific to Arrow Serialization.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowSerializationOptions} */ -public final class ArrowSerializationOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ArrowSerializationOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) ArrowSerializationOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ArrowSerializationOptions.newBuilder() to construct. private ArrowSerializationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ArrowSerializationOptions() { bufferCompression_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ArrowSerializationOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.class, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.class, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder.class); } /** + * + * *
    * Compression codec's supported by Arrow.
    * 
* - * Protobuf enum {@code google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec} + * Protobuf enum {@code + * google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec} */ - public enum CompressionCodec - implements com.google.protobuf.ProtocolMessageEnum { + public enum CompressionCodec implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * If unspecified no compression will be used.
      * 
@@ -66,6 +89,8 @@ public enum CompressionCodec */ COMPRESSION_UNSPECIFIED(0), /** + * + * *
      * LZ4 Frame (https://github.com/lz4/lz4/blob/dev/doc/lz4_Frame_format.md)
      * 
@@ -74,6 +99,8 @@ public enum CompressionCodec */ LZ4_FRAME(1), /** + * + * *
      * Zstandard compression.
      * 
@@ -85,6 +112,8 @@ public enum CompressionCodec ; /** + * + * *
      * If unspecified no compression will be used.
      * 
@@ -93,6 +122,8 @@ public enum CompressionCodec */ public static final int COMPRESSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * LZ4 Frame (https://github.com/lz4/lz4/blob/dev/doc/lz4_Frame_format.md)
      * 
@@ -101,6 +132,8 @@ public enum CompressionCodec */ public static final int LZ4_FRAME_VALUE = 1; /** + * + * *
      * Zstandard compression.
      * 
@@ -109,7 +142,6 @@ public enum CompressionCodec */ public static final int ZSTD_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -134,40 +166,45 @@ public static CompressionCodec valueOf(int value) { */ public static CompressionCodec forNumber(int value) { switch (value) { - case 0: return COMPRESSION_UNSPECIFIED; - case 1: return LZ4_FRAME; - case 2: return ZSTD; - default: return null; + case 0: + return COMPRESSION_UNSPECIFIED; + case 1: + return LZ4_FRAME; + case 2: + return ZSTD; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - CompressionCodec> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CompressionCodec findValueByNumber(int number) { - return CompressionCodec.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CompressionCodec findValueByNumber(int number) { + return CompressionCodec.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDescriptor() + .getEnumTypes() + .get(0); } private static final CompressionCodec[] VALUES = values(); @@ -175,8 +212,7 @@ public CompressionCodec findValueByNumber(int number) { public static CompressionCodec valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -196,32 +232,51 @@ private CompressionCodec(int value) { public static final int BUFFER_COMPRESSION_FIELD_NUMBER = 2; private int bufferCompression_ = 0; /** + * + * *
    * The compression codec to use for Arrow buffers in serialized record
    * batches.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * * @return The enum numeric value on the wire for bufferCompression. */ - @java.lang.Override public int getBufferCompressionValue() { + @java.lang.Override + public int getBufferCompressionValue() { return bufferCompression_; } /** + * + * *
    * The compression codec to use for Arrow buffers in serialized record
    * batches.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * * @return The bufferCompression. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec getBufferCompression() { - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec result = com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.forNumber(bufferCompression_); - return result == null ? com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec + getBufferCompression() { + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec result = + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.forNumber( + bufferCompression_); + return result == null + ? com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec + .UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,9 +288,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (bufferCompression_ != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.COMPRESSION_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (bufferCompression_ + != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec + .COMPRESSION_UNSPECIFIED + .getNumber()) { output.writeEnum(2, bufferCompression_); } getUnknownFields().writeTo(output); @@ -247,9 +304,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (bufferCompression_ != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.COMPRESSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, bufferCompression_); + if (bufferCompression_ + != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec + .COMPRESSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, bufferCompression_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -259,12 +318,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions other = (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) obj; + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions other = + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) obj; if (bufferCompression_ != other.bufferCompression_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -286,129 +346,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains options specific to Arrow Serialization.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ArrowSerializationOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.class, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.class, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -418,13 +485,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1_ArrowSerializationOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } @@ -439,13 +507,17 @@ public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions buildPartial() { - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions result = new com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions result = + new com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.bufferCompression_ = bufferCompression_; @@ -456,38 +528,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ArrowSerializati public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) other); } else { super.mergeFrom(other); return this; @@ -495,7 +568,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions other) { - if (other == com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance()) + return this; if (other.bufferCompression_ != 0) { setBufferCompressionValue(other.getBufferCompressionValue()); } @@ -525,17 +600,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: { - bufferCompression_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 16: + { + bufferCompression_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -545,28 +622,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int bufferCompression_ = 0; /** + * + * *
      * The compression codec to use for Arrow buffers in serialized record
      * batches.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * * @return The enum numeric value on the wire for bufferCompression. */ - @java.lang.Override public int getBufferCompressionValue() { + @java.lang.Override + public int getBufferCompressionValue() { return bufferCompression_; } /** + * + * *
      * The compression codec to use for Arrow buffers in serialized record
      * batches.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * * @param value The enum numeric value on the wire for bufferCompression to set. * @return This builder for chaining. */ @@ -577,30 +666,47 @@ public Builder setBufferCompressionValue(int value) { return this; } /** + * + * *
      * The compression codec to use for Arrow buffers in serialized record
      * batches.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * * @return The bufferCompression. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec getBufferCompression() { - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec result = com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.forNumber(bufferCompression_); - return result == null ? com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.UNRECOGNIZED : result; + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec + getBufferCompression() { + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec result = + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec.forNumber( + bufferCompression_); + return result == null + ? com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec + .UNRECOGNIZED + : result; } /** + * + * *
      * The compression codec to use for Arrow buffers in serialized record
      * batches.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * * @param value The bufferCompression to set. * @return This builder for chaining. */ - public Builder setBufferCompression(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec value) { + public Builder setBufferCompression( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec value) { if (value == null) { throw new NullPointerException(); } @@ -610,12 +716,17 @@ public Builder setBufferCompression(com.google.cloud.bigquery.storage.v1.ArrowSe return this; } /** + * + * *
      * The compression codec to use for Arrow buffers in serialized record
      * batches.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * * @return This builder for chaining. */ public Builder clearBufferCompression() { @@ -624,9 +735,9 @@ public Builder clearBufferCompression() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -636,41 +747,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) - private static final com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions(); } - public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowSerializationOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowSerializationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -682,9 +795,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java new file mode 100644 index 0000000000..5f83ffa62b --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ArrowSerializationOptionsOrBuilder.java @@ -0,0 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/arrow.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface ArrowSerializationOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The compression codec to use for Arrow buffers in serialized record
+   * batches.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * + * @return The enum numeric value on the wire for bufferCompression. + */ + int getBufferCompressionValue(); + /** + * + * + *
+   * The compression codec to use for Arrow buffers in serialized record
+   * batches.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec buffer_compression = 2; + * + * + * @return The bufferCompression. + */ + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.CompressionCodec + getBufferCompression(); +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java new file mode 100644 index 0000000000..a47b485fef --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroProto.java @@ -0,0 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/avro.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class AvroProto { + private AvroProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/bigquery/storage/v1/avro." + + "proto\022 google.cloud.bigquery.storage.v1\"" + + "\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"A\n\010AvroRow" + + "s\022\036\n\026serialized_binary_rows\030\001 \001(\014\022\025\n\trow" + + "_count\030\002 \001(\003B\002\030\001\"A\n\030AvroSerializationOpt" + + "ions\022%\n\035enable_display_name_attribute\030\001 " + + "\001(\010B\271\001\n$com.google.cloud.bigquery.storag" + + "e.v1B\tAvroProtoP\001Z>cloud.google.com/go/b" + + "igquery/storage/apiv1/storagepb;storagep" + + "b\252\002 Google.Cloud.BigQuery.Storage.V1\312\002 G" + + "oogle\\Cloud\\BigQuery\\Storage\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor, + new java.lang.String[] { + "Schema", + }); + internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor, + new java.lang.String[] { + "SerializedBinaryRows", "RowCount", + }); + internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor, + new java.lang.String[] { + "EnableDisplayNameAttribute", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java index 948e4b383d..e95d285764 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRows.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Avro rows.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroRows} */ -public final class AvroRows extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AvroRows extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AvroRows) AvroRowsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroRows.newBuilder() to construct. private AvroRows(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AvroRows() { serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AvroRows(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroRows.class, com.google.cloud.bigquery.storage.v1.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroRows.class, + com.google.cloud.bigquery.storage.v1.AvroRows.Builder.class); } public static final int SERIALIZED_BINARY_ROWS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Binary serialized rows in a block.
    * 
* * bytes serialized_binary_rows = 1; + * * @return The serializedBinaryRows. */ @java.lang.Override @@ -66,22 +89,27 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { public static final int ROW_COUNT_FIELD_NUMBER = 2; private long rowCount_ = 0L; /** + * + * *
    * [Deprecated] The count of rows in the returning block.
    * Please use the format-independent ReadRowsResponse.row_count instead.
    * 
* * int64 row_count = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. - * See google/cloud/bigquery/storage/v1/avro.proto;l=39 + * + * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See + * google/cloud/bigquery/storage/v1/avro.proto;l=39 * @return The rowCount. */ @java.lang.Override - @java.lang.Deprecated public long getRowCount() { + @java.lang.Deprecated + public long getRowCount() { return rowCount_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -93,8 +121,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!serializedBinaryRows_.isEmpty()) { output.writeBytes(1, serializedBinaryRows_); } @@ -111,12 +138,10 @@ public int getSerializedSize() { size = 0; if (!serializedBinaryRows_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, serializedBinaryRows_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedBinaryRows_); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, rowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -126,17 +151,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AvroRows)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.AvroRows other = (com.google.cloud.bigquery.storage.v1.AvroRows) obj; + com.google.cloud.bigquery.storage.v1.AvroRows other = + (com.google.cloud.bigquery.storage.v1.AvroRows) obj; - if (!getSerializedBinaryRows() - .equals(other.getSerializedBinaryRows())) return false; - if (getRowCount() - != other.getRowCount()) return false; + if (!getSerializedBinaryRows().equals(other.getSerializedBinaryRows())) return false; + if (getRowCount() != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -151,137 +175,142 @@ public int hashCode() { hash = (37 * hash) + SERIALIZED_BINARY_ROWS_FIELD_NUMBER; hash = (53 * hash) + getSerializedBinaryRows().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroRows parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.AvroRows parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AvroRows parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AvroRows parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AvroRows prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Avro rows.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroRows} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AvroRows) com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroRows.class, com.google.cloud.bigquery.storage.v1.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroRows.class, + com.google.cloud.bigquery.storage.v1.AvroRows.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.AvroRows.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroRows_descriptor; } @java.lang.Override @@ -313,8 +342,11 @@ public com.google.cloud.bigquery.storage.v1.AvroRows build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroRows buildPartial() { - com.google.cloud.bigquery.storage.v1.AvroRows result = new com.google.cloud.bigquery.storage.v1.AvroRows(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.AvroRows result = + new com.google.cloud.bigquery.storage.v1.AvroRows(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -333,38 +365,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AvroRows result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.AvroRows) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroRows)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroRows) other); } else { super.mergeFrom(other); return this; @@ -405,22 +438,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - serializedBinaryRows_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + serializedBinaryRows_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -430,15 +466,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; + * * @return The serializedBinaryRows. */ @java.lang.Override @@ -446,27 +487,35 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { return serializedBinaryRows_; } /** + * + * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; + * * @param value The serializedBinaryRows to set. * @return This builder for chaining. */ public Builder setSerializedBinaryRows(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } serializedBinaryRows_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; + * * @return This builder for chaining. */ public Builder clearSerializedBinaryRows() { @@ -476,61 +525,73 @@ public Builder clearSerializedBinaryRows() { return this; } - private long rowCount_ ; + private long rowCount_; /** + * + * *
      * [Deprecated] The count of rows in the returning block.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. - * See google/cloud/bigquery/storage/v1/avro.proto;l=39 + * + * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See + * google/cloud/bigquery/storage/v1/avro.proto;l=39 * @return The rowCount. */ @java.lang.Override - @java.lang.Deprecated public long getRowCount() { + @java.lang.Deprecated + public long getRowCount() { return rowCount_; } /** + * + * *
      * [Deprecated] The count of rows in the returning block.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. - * See google/cloud/bigquery/storage/v1/avro.proto;l=39 + * + * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See + * google/cloud/bigquery/storage/v1/avro.proto;l=39 * @param value The rowCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setRowCount(long value) { - + @java.lang.Deprecated + public Builder setRowCount(long value) { + rowCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * [Deprecated] The count of rows in the returning block.
      * Please use the format-independent ReadRowsResponse.row_count instead.
      * 
* * int64 row_count = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. - * See google/cloud/bigquery/storage/v1/avro.proto;l=39 + * + * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See + * google/cloud/bigquery/storage/v1/avro.proto;l=39 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearRowCount() { + @java.lang.Deprecated + public Builder clearRowCount() { bitField0_ = (bitField0_ & ~0x00000002); rowCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -540,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AvroRows) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AvroRows) private static final com.google.cloud.bigquery.storage.v1.AvroRows DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AvroRows(); } @@ -554,27 +615,27 @@ public static com.google.cloud.bigquery.storage.v1.AvroRows getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroRows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroRows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -589,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.AvroRows getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java similarity index 51% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java index 6b1dfa720c..2b686761cb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroRowsOrBuilder.java @@ -1,32 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; -public interface AvroRowsOrBuilder extends +public interface AvroRowsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AvroRows) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Binary serialized rows in a block.
    * 
* * bytes serialized_binary_rows = 1; + * * @return The serializedBinaryRows. */ com.google.protobuf.ByteString getSerializedBinaryRows(); /** + * + * *
    * [Deprecated] The count of rows in the returning block.
    * Please use the format-independent ReadRowsResponse.row_count instead.
    * 
* * int64 row_count = 2 [deprecated = true]; - * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. - * See google/cloud/bigquery/storage/v1/avro.proto;l=39 + * + * @deprecated google.cloud.bigquery.storage.v1.AvroRows.row_count is deprecated. See + * google/cloud/bigquery/storage/v1/avro.proto;l=39 * @return The rowCount. */ - @java.lang.Deprecated long getRowCount(); + @java.lang.Deprecated + long getRowCount(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java index c686df8161..66c7ccbd57 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchema.java @@ -1,63 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Avro schema.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroSchema} */ -public final class AvroSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AvroSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AvroSchema) AvroSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroSchema.newBuilder() to construct. private AvroSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AvroSchema() { schema_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AvroSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroSchema.class, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroSchema.class, + com.google.cloud.bigquery.storage.v1.AvroSchema.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** + * + * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; + * * @return The schema. */ @java.lang.Override @@ -66,30 +89,30 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** + * + * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; + * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -98,6 +121,7 @@ public java.lang.String getSchema() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -134,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AvroSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.AvroSchema other = (com.google.cloud.bigquery.storage.v1.AvroSchema) obj; + com.google.cloud.bigquery.storage.v1.AvroSchema other = + (com.google.cloud.bigquery.storage.v1.AvroSchema) obj; - if (!getSchema() - .equals(other.getSchema())) return false; + if (!getSchema().equals(other.getSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,130 +184,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AvroSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AvroSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Avro schema.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AvroSchema) com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroSchema.class, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroSchema.class, + com.google.cloud.bigquery.storage.v1.AvroSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.AvroSchema.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroSchema_descriptor; } @java.lang.Override @@ -315,8 +344,11 @@ public com.google.cloud.bigquery.storage.v1.AvroSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchema buildPartial() { - com.google.cloud.bigquery.storage.v1.AvroSchema result = new com.google.cloud.bigquery.storage.v1.AvroSchema(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.AvroSchema result = + new com.google.cloud.bigquery.storage.v1.AvroSchema(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +364,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AvroSchema resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.AvroSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroSchema)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroSchema) other); } else { super.mergeFrom(other); return this; @@ -371,7 +404,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AvroSchema other) { - if (other == com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) + return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -403,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +459,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object schema_ = ""; /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; + * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -448,21 +487,22 @@ public java.lang.String getSchema() { } } /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; + * * @return The bytes for schema. */ - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -470,30 +510,37 @@ public java.lang.String getSchema() { } } /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; + * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; + * * @return This builder for chaining. */ public Builder clearSchema() { @@ -503,27 +550,31 @@ public Builder clearSchema() { return this; } /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; + * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AvroSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AvroSchema) private static final com.google.cloud.bigquery.storage.v1.AvroSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AvroSchema(); } @@ -547,27 +598,27 @@ public static com.google.cloud.bigquery.storage.v1.AvroSchema getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.AvroSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java index b8b182d60c..2612720e29 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSchemaOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; -public interface AvroSchemaOrBuilder extends +public interface AvroSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AvroSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; + * * @return The schema. */ java.lang.String getSchema(); /** + * + * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; + * * @return The bytes for schema. */ - com.google.protobuf.ByteString - getSchemaBytes(); + com.google.protobuf.ByteString getSchemaBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java index 0960e05acb..e3a2b26bae 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptions.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Contains options specific to Avro Serialization.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroSerializationOptions} */ -public final class AvroSerializationOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AvroSerializationOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.AvroSerializationOptions) AvroSerializationOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroSerializationOptions.newBuilder() to construct. private AvroSerializationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AvroSerializationOptions() { - } + + private AvroSerializationOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AvroSerializationOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.class, com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.class, + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder.class); } public static final int ENABLE_DISPLAY_NAME_ATTRIBUTE_FIELD_NUMBER = 1; private boolean enableDisplayNameAttribute_ = false; /** + * + * *
    * Enable displayName attribute in Avro schema.
    * The Avro specification requires field names to be alphanumeric.  By
@@ -62,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * bool enable_display_name_attribute = 1; + * * @return The enableDisplayNameAttribute. */ @java.lang.Override @@ -70,6 +91,7 @@ public boolean getEnableDisplayNameAttribute() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -81,8 +103,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableDisplayNameAttribute_ != false) { output.writeBool(1, enableDisplayNameAttribute_); } @@ -96,8 +117,7 @@ public int getSerializedSize() { size = 0; if (enableDisplayNameAttribute_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableDisplayNameAttribute_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableDisplayNameAttribute_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -107,15 +127,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.AvroSerializationOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions other = (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) obj; + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions other = + (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) obj; - if (getEnableDisplayNameAttribute() - != other.getEnableDisplayNameAttribute()) return false; + if (getEnableDisplayNameAttribute() != other.getEnableDisplayNameAttribute()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -128,137 +148,143 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_DISPLAY_NAME_ATTRIBUTE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableDisplayNameAttribute()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableDisplayNameAttribute()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.AvroSerializationOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains options specific to Avro Serialization.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.AvroSerializationOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.AvroSerializationOptions) com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.class, com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.class, + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -268,13 +294,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.AvroProto.internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1_AvroSerializationOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } @@ -289,13 +316,17 @@ public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions buildPartial() { - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions result = new com.google.cloud.bigquery.storage.v1.AvroSerializationOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions result = + new com.google.cloud.bigquery.storage.v1.AvroSerializationOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.AvroSerializationOptions result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.enableDisplayNameAttribute_ = enableDisplayNameAttribute_; @@ -306,38 +337,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.AvroSerializatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroSerializationOptions)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) other); } else { super.mergeFrom(other); return this; @@ -345,7 +377,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.AvroSerializationOptions other) { - if (other == com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance()) + return this; if (other.getEnableDisplayNameAttribute() != false) { setEnableDisplayNameAttribute(other.getEnableDisplayNameAttribute()); } @@ -375,17 +409,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - enableDisplayNameAttribute_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + enableDisplayNameAttribute_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -395,10 +431,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean enableDisplayNameAttribute_ ; + private boolean enableDisplayNameAttribute_; /** + * + * *
      * Enable displayName attribute in Avro schema.
      * The Avro specification requires field names to be alphanumeric.  By
@@ -411,6 +450,7 @@ public Builder mergeFrom(
      * 
* * bool enable_display_name_attribute = 1; + * * @return The enableDisplayNameAttribute. */ @java.lang.Override @@ -418,6 +458,8 @@ public boolean getEnableDisplayNameAttribute() { return enableDisplayNameAttribute_; } /** + * + * *
      * Enable displayName attribute in Avro schema.
      * The Avro specification requires field names to be alphanumeric.  By
@@ -430,17 +472,20 @@ public boolean getEnableDisplayNameAttribute() {
      * 
* * bool enable_display_name_attribute = 1; + * * @param value The enableDisplayNameAttribute to set. * @return This builder for chaining. */ public Builder setEnableDisplayNameAttribute(boolean value) { - + enableDisplayNameAttribute_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Enable displayName attribute in Avro schema.
      * The Avro specification requires field names to be alphanumeric.  By
@@ -453,6 +498,7 @@ public Builder setEnableDisplayNameAttribute(boolean value) {
      * 
* * bool enable_display_name_attribute = 1; + * * @return This builder for chaining. */ public Builder clearEnableDisplayNameAttribute() { @@ -461,9 +507,9 @@ public Builder clearEnableDisplayNameAttribute() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -473,12 +519,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.AvroSerializationOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.AvroSerializationOptions) - private static final com.google.cloud.bigquery.storage.v1.AvroSerializationOptions DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1.AvroSerializationOptions + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.AvroSerializationOptions(); } @@ -487,27 +534,27 @@ public static com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroSerializationOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroSerializationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -522,6 +569,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java index 4598477432..da8a79a2da 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/AvroSerializationOptionsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/avro.proto package com.google.cloud.bigquery.storage.v1; -public interface AvroSerializationOptionsOrBuilder extends +public interface AvroSerializationOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.AvroSerializationOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Enable displayName attribute in Avro schema.
    * The Avro specification requires field names to be alphanumeric.  By
@@ -20,6 +38,7 @@ public interface AvroSerializationOptionsOrBuilder extends
    * 
* * bool enable_display_name_attribute = 1; + * * @return The enableDisplayNameAttribute. */ boolean getEnableDisplayNameAttribute(); diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java index 7bb78525b9..b8b7cbb5bb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Request message for `BatchCommitWriteStreams`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest} */ -public final class BatchCommitWriteStreamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchCommitWriteStreamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) BatchCommitWriteStreamsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchCommitWriteStreamsRequest.newBuilder() to construct. - private BatchCommitWriteStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCommitWriteStreamsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchCommitWriteStreamsRequest() { parent_ = ""; writeStreams_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,39 +45,46 @@ private BatchCommitWriteStreamsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchCommitWriteStreamsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent table that all the streams should belong to, in the form
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,30 +93,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Parent table that all the streams should belong to, in the form
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -99,37 +127,46 @@ public java.lang.String getParent() { } public static final int WRITE_STREAMS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList writeStreams_; /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the writeStreams. */ - public com.google.protobuf.ProtocolStringList - getWriteStreamsList() { + public com.google.protobuf.ProtocolStringList getWriteStreamsList() { return writeStreams_; } /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of writeStreams. */ public int getWriteStreamsCount() { return writeStreams_.size(); } /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The writeStreams at the given index. */ @@ -137,20 +174,23 @@ public java.lang.String getWriteStreams(int index) { return writeStreams_.get(index); } /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - public com.google.protobuf.ByteString - getWriteStreamsBytes(int index) { + public com.google.protobuf.ByteString getWriteStreamsBytes(int index) { return writeStreams_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -162,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -198,17 +237,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest other = (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) obj; + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest other = + (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWriteStreamsList() - .equals(other.getWriteStreamsList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWriteStreamsList().equals(other.getWriteStreamsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,129 +270,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `BatchCommitWriteStreams`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.class, + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,14 +413,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest + .getDefaultInstance(); } @java.lang.Override @@ -387,14 +436,18 @@ public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest build @java.lang.Override public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result = new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest(this); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result = + new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result) { if (((bitField0_ & 0x00000002) != 0)) { writeStreams_ = writeStreams_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); @@ -402,7 +455,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.Bat result.writeStreams_ = writeStreams_; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -413,46 +467,51 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.BatchCommitWrite public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -494,23 +553,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureWriteStreamsIsMutable(); - writeStreams_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWriteStreamsIsMutable(); + writeStreams_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -520,23 +582,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent table that all the streams should belong to, in the form
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -545,21 +612,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent table that all the streams should belong to, in the form
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -567,30 +637,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent table that all the streams should belong to, in the form
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent table that all the streams should belong to, in the form
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -600,18 +681,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent table that all the streams should belong to, in the form
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -619,42 +706,52 @@ public Builder setParentBytes( return this; } - private com.google.protobuf.LazyStringList writeStreams_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList writeStreams_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWriteStreamsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { writeStreams_ = new com.google.protobuf.LazyStringArrayList(writeStreams_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the writeStreams. */ - public com.google.protobuf.ProtocolStringList - getWriteStreamsList() { + public com.google.protobuf.ProtocolStringList getWriteStreamsList() { return writeStreams_.getUnmodifiableView(); } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of writeStreams. */ public int getWriteStreamsCount() { return writeStreams_.size(); } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The writeStreams at the given index. */ @@ -662,76 +759,90 @@ public java.lang.String getWriteStreams(int index) { return writeStreams_.get(index); } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - public com.google.protobuf.ByteString - getWriteStreamsBytes(int index) { + public com.google.protobuf.ByteString getWriteStreamsBytes(int index) { return writeStreams_.getByteString(index); } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The writeStreams to set. * @return This builder for chaining. */ - public Builder setWriteStreams( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStreams(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureWriteStreamsIsMutable(); writeStreams_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The writeStreams to add. * @return This builder for chaining. */ - public Builder addWriteStreams( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addWriteStreams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureWriteStreamsIsMutable(); writeStreams_.add(value); onChanged(); return this; } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The writeStreams to add. * @return This builder for chaining. */ - public Builder addAllWriteStreams( - java.lang.Iterable values) { + public Builder addAllWriteStreams(java.lang.Iterable values) { ensureWriteStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, writeStreams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, writeStreams_); onChanged(); return this; } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWriteStreams() { @@ -741,26 +852,30 @@ public Builder clearWriteStreams() { return this; } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the writeStreams to add. * @return This builder for chaining. */ - public Builder addWriteStreamsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addWriteStreamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureWriteStreamsIsMutable(); writeStreams_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -770,41 +885,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) - private static final com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest(); } - public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCommitWriteStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCommitWriteStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -816,9 +933,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java index cb637c7188..101831d8ab 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsRequestOrBuilder.java @@ -1,72 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface BatchCommitWriteStreamsRequestOrBuilder extends +public interface BatchCommitWriteStreamsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent table that all the streams should belong to, in the form
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Parent table that all the streams should belong to, in the form
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the writeStreams. */ - java.util.List - getWriteStreamsList(); + java.util.List getWriteStreamsList(); /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of writeStreams. */ int getWriteStreamsCount(); /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The writeStreams at the given index. */ java.lang.String getWriteStreams(int index); /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - com.google.protobuf.ByteString - getWriteStreamsBytes(int index); + com.google.protobuf.ByteString getWriteStreamsBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java index 341cd527a2..e84d1c14cd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponse.java @@ -1,56 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Response message for `BatchCommitWriteStreams`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse} */ -public final class BatchCommitWriteStreamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchCommitWriteStreamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) BatchCommitWriteStreamsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchCommitWriteStreamsResponse.newBuilder() to construct. - private BatchCommitWriteStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCommitWriteStreamsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchCommitWriteStreamsResponse() { streamErrors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchCommitWriteStreamsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.Builder.class); } public static final int COMMIT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp commitTime_; /** + * + * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -58,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return Whether the commitTime field is set. */ @java.lang.Override @@ -65,6 +88,8 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** + * + * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -72,6 +97,7 @@ public boolean hasCommitTime() {
    * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return The commitTime. */ @java.lang.Override @@ -79,6 +105,8 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** + * + * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -93,9 +121,12 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
   }
 
   public static final int STREAM_ERRORS_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private java.util.List streamErrors_;
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -111,6 +142,8 @@ public java.util.List getStre
     return streamErrors_;
   }
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -122,11 +155,13 @@ public java.util.List getStre
    * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getStreamErrorsOrBuilderList() {
     return streamErrors_;
   }
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -142,6 +177,8 @@ public int getStreamErrorsCount() {
     return streamErrors_.size();
   }
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -157,6 +194,8 @@ public com.google.cloud.bigquery.storage.v1.StorageError getStreamErrors(int ind
     return streamErrors_.get(index);
   }
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -174,6 +213,7 @@ public com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamError
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -185,8 +225,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (commitTime_ != null) {
       output.writeMessage(1, getCommitTime());
     }
@@ -203,12 +242,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (commitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getCommitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommitTime());
     }
     for (int i = 0; i < streamErrors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, streamErrors_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, streamErrors_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -218,20 +255,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse other = (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) obj;
+    com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse other =
+        (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) obj;
 
     if (hasCommitTime() != other.hasCommitTime()) return false;
     if (hasCommitTime()) {
-      if (!getCommitTime()
-          .equals(other.getCommitTime())) return false;
+      if (!getCommitTime().equals(other.getCommitTime())) return false;
     }
-    if (!getStreamErrorsList()
-        .equals(other.getStreamErrorsList())) return false;
+    if (!getStreamErrorsList().equals(other.getStreamErrorsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -257,129 +293,138 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response message for `BatchCommitWriteStreams`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.class, + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -400,14 +445,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse + .getDefaultInstance(); } @java.lang.Override @@ -421,14 +468,18 @@ public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse buil @java.lang.Override public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result = new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse(this); + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result = + new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result) { if (streamErrorsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { streamErrors_ = java.util.Collections.unmodifiableList(streamErrors_); @@ -440,12 +491,11 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.Bat } } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.commitTime_ = commitTimeBuilder_ == null - ? commitTime_ - : commitTimeBuilder_.build(); + result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); } } @@ -453,46 +503,51 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.BatchCommitWrite public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse other) { - if (other == com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse other) { + if (other + == com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse + .getDefaultInstance()) return this; if (other.hasCommitTime()) { mergeCommitTime(other.getCommitTime()); } @@ -514,9 +569,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.BatchCommitWriteSt streamErrorsBuilder_ = null; streamErrors_ = other.streamErrors_; bitField0_ = (bitField0_ & ~0x00000002); - streamErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStreamErrorsFieldBuilder() : null; + streamErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStreamErrorsFieldBuilder() + : null; } else { streamErrorsBuilder_.addAllMessages(other.streamErrors_); } @@ -548,32 +604,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCommitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.bigquery.storage.v1.StorageError m = - input.readMessage( - com.google.cloud.bigquery.storage.v1.StorageError.parser(), - extensionRegistry); - if (streamErrorsBuilder_ == null) { - ensureStreamErrorsIsMutable(); - streamErrors_.add(m); - } else { - streamErrorsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.storage.v1.StorageError m = + input.readMessage( + com.google.cloud.bigquery.storage.v1.StorageError.parser(), + extensionRegistry); + if (streamErrorsBuilder_ == null) { + ensureStreamErrorsIsMutable(); + streamErrors_.add(m); + } else { + streamErrorsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,12 +640,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + commitTimeBuilder_; /** + * + * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -596,12 +659,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -609,16 +675,21 @@ public boolean hasCommitTime() {
      * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -641,6 +712,8 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -649,8 +722,7 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp commit_time = 1;
      */
-    public Builder setCommitTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (commitTimeBuilder_ == null) {
         commitTime_ = builderForValue.build();
       } else {
@@ -661,6 +733,8 @@ public Builder setCommitTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -671,9 +745,9 @@ public Builder setCommitTime(
      */
     public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
       if (commitTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          commitTime_ != null &&
-          commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && commitTime_ != null
+            && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getCommitTimeBuilder().mergeFrom(value);
         } else {
           commitTime_ = value;
@@ -686,6 +760,8 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -705,6 +781,8 @@ public Builder clearCommitTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -719,6 +797,8 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() {
       return getCommitTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -731,11 +811,14 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
       if (commitTimeBuilder_ != null) {
         return commitTimeBuilder_.getMessageOrBuilder();
       } else {
-        return commitTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_;
+        return commitTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : commitTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -745,32 +828,43 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * .google.protobuf.Timestamp commit_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getCommitTimeFieldBuilder() {
       if (commitTimeBuilder_ == null) {
-        commitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getCommitTime(),
-                getParentForChildren(),
-                isClean());
+        commitTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getCommitTime(), getParentForChildren(), isClean());
         commitTime_ = null;
       }
       return commitTimeBuilder_;
     }
 
     private java.util.List streamErrors_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureStreamErrorsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        streamErrors_ = new java.util.ArrayList(streamErrors_);
+        streamErrors_ =
+            new java.util.ArrayList(
+                streamErrors_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.StorageError, com.google.cloud.bigquery.storage.v1.StorageError.Builder, com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder> streamErrorsBuilder_;
+            com.google.cloud.bigquery.storage.v1.StorageError,
+            com.google.cloud.bigquery.storage.v1.StorageError.Builder,
+            com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder>
+        streamErrorsBuilder_;
 
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -789,6 +883,8 @@ public java.util.List getStre
       }
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -807,6 +903,8 @@ public int getStreamErrorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -825,6 +923,8 @@ public com.google.cloud.bigquery.storage.v1.StorageError getStreamErrors(int ind
       }
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -850,6 +950,8 @@ public Builder setStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -872,6 +974,8 @@ public Builder setStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -896,6 +1000,8 @@ public Builder addStreamErrors(com.google.cloud.bigquery.storage.v1.StorageError
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -921,6 +1027,8 @@ public Builder addStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -943,6 +1051,8 @@ public Builder addStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -965,6 +1075,8 @@ public Builder addStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -979,8 +1091,7 @@ public Builder addAllStreamErrors(
         java.lang.Iterable values) {
       if (streamErrorsBuilder_ == null) {
         ensureStreamErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, streamErrors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streamErrors_);
         onChanged();
       } else {
         streamErrorsBuilder_.addAllMessages(values);
@@ -988,6 +1099,8 @@ public Builder addAllStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1009,6 +1122,8 @@ public Builder clearStreamErrors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1030,6 +1145,8 @@ public Builder removeStreamErrors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1045,6 +1162,8 @@ public com.google.cloud.bigquery.storage.v1.StorageError.Builder getStreamErrors
       return getStreamErrorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1058,11 +1177,14 @@ public com.google.cloud.bigquery.storage.v1.StorageError.Builder getStreamErrors
     public com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamErrorsOrBuilder(
         int index) {
       if (streamErrorsBuilder_ == null) {
-        return streamErrors_.get(index);  } else {
+        return streamErrors_.get(index);
+      } else {
         return streamErrorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1073,8 +1195,8 @@ public com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamError
      *
      * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
      */
-    public java.util.List 
-         getStreamErrorsOrBuilderList() {
+    public java.util.List
+        getStreamErrorsOrBuilderList() {
       if (streamErrorsBuilder_ != null) {
         return streamErrorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1082,6 +1204,8 @@ public com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamError
       }
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1093,10 +1217,12 @@ public com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamError
      * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
      */
     public com.google.cloud.bigquery.storage.v1.StorageError.Builder addStreamErrorsBuilder() {
-      return getStreamErrorsFieldBuilder().addBuilder(
-          com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance());
+      return getStreamErrorsFieldBuilder()
+          .addBuilder(com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1109,10 +1235,13 @@ public com.google.cloud.bigquery.storage.v1.StorageError.Builder addStreamErrors
      */
     public com.google.cloud.bigquery.storage.v1.StorageError.Builder addStreamErrorsBuilder(
         int index) {
-      return getStreamErrorsFieldBuilder().addBuilder(
-          index, com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance());
+      return getStreamErrorsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1123,27 +1252,30 @@ public com.google.cloud.bigquery.storage.v1.StorageError.Builder addStreamErrors
      *
      * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
      */
-    public java.util.List 
-         getStreamErrorsBuilderList() {
+    public java.util.List
+        getStreamErrorsBuilderList() {
       return getStreamErrorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.StorageError, com.google.cloud.bigquery.storage.v1.StorageError.Builder, com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder> 
+            com.google.cloud.bigquery.storage.v1.StorageError,
+            com.google.cloud.bigquery.storage.v1.StorageError.Builder,
+            com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder>
         getStreamErrorsFieldBuilder() {
       if (streamErrorsBuilder_ == null) {
-        streamErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.StorageError, com.google.cloud.bigquery.storage.v1.StorageError.Builder, com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder>(
-                streamErrors_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        streamErrorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1.StorageError,
+                com.google.cloud.bigquery.storage.v1.StorageError.Builder,
+                com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder>(
+                streamErrors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         streamErrors_ = null;
       }
       return streamErrorsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1153,41 +1285,43 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)
-  private static final com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse();
   }
 
-  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse getDefaultInstance() {
+  public static com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchCommitWriteStreamsResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchCommitWriteStreamsResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1199,9 +1333,8 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse getDefaultInstanceForType() {
+  public com.google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java
similarity index 82%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java
rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java
index 0d818a5b0f..ecb2e46fc8 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/BatchCommitWriteStreamsResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
-public interface BatchCommitWriteStreamsResponseOrBuilder extends
+public interface BatchCommitWriteStreamsResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -15,10 +33,13 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** + * + * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -26,10 +47,13 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** + * + * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -41,6 +65,8 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -51,9 +77,10 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    *
    * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
    */
-  java.util.List 
-      getStreamErrorsList();
+  java.util.List getStreamErrorsList();
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -66,6 +93,8 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    */
   com.google.cloud.bigquery.storage.v1.StorageError getStreamErrors(int index);
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -78,6 +107,8 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    */
   int getStreamErrorsCount();
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -88,9 +119,11 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    *
    * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
    */
-  java.util.List 
+  java.util.List
       getStreamErrorsOrBuilderList();
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -101,6 +134,5 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    *
    * repeated .google.cloud.bigquery.storage.v1.StorageError stream_errors = 2;
    */
-  com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamErrorsOrBuilder(
-      int index);
+  com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder getStreamErrorsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java
similarity index 65%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java
rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java
index 910ba2bf8d..dc95ce68cd 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequest.java
@@ -1,63 +1,88 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
 /**
+ *
+ *
  * 
  * Request message for `CreateReadSession`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.CreateReadSessionRequest} */ -public final class CreateReadSessionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateReadSessionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.CreateReadSessionRequest) CreateReadSessionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateReadSessionRequest.newBuilder() to construct. private CreateReadSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateReadSessionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateReadSessionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.class, + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +127,16 @@ public java.lang.String getParent() { public static final int READ_SESSION_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1.ReadSession readSession_; /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the readSession field is set. */ @java.lang.Override @@ -112,32 +144,47 @@ public boolean hasReadSession() { return readSession_ != null; } /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The readSession. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession getReadSession() { - return readSession_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() : readSession_; + return readSession_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() + : readSession_; } /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder getReadSessionOrBuilder() { - return readSession_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() : readSession_; + return readSession_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() + : readSession_; } public static final int MAX_STREAM_COUNT_FIELD_NUMBER = 3; private int maxStreamCount_ = 0; /** + * + * *
    * Max initial number of streams. If unset or zero, the server will
    * provide a value of streams so as to produce reasonable throughput. Must be
@@ -151,6 +198,7 @@ public com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder getReadSessionO
    * 
* * int32 max_stream_count = 3; + * * @return The maxStreamCount. */ @java.lang.Override @@ -161,6 +209,8 @@ public int getMaxStreamCount() { public static final int PREFERRED_MIN_STREAM_COUNT_FIELD_NUMBER = 4; private int preferredMinStreamCount_ = 0; /** + * + * *
    * The minimum preferred stream count. This parameter can be used to inform
    * the service that there is a desired lower bound on the number of streams.
@@ -172,6 +222,7 @@ public int getMaxStreamCount() {
    * 
* * int32 preferred_min_stream_count = 4; + * * @return The preferredMinStreamCount. */ @java.lang.Override @@ -180,6 +231,7 @@ public int getPreferredMinStreamCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -218,16 +269,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readSession_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadSession()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadSession()); } if (maxStreamCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxStreamCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxStreamCount_); } if (preferredMinStreamCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, preferredMinStreamCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, preferredMinStreamCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -237,24 +285,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest other = (com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) obj; + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest other = + (com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReadSession() != other.hasReadSession()) return false; if (hasReadSession()) { - if (!getReadSession() - .equals(other.getReadSession())) return false; + if (!getReadSession().equals(other.getReadSession())) return false; } - if (getMaxStreamCount() - != other.getMaxStreamCount()) return false; - if (getPreferredMinStreamCount() - != other.getPreferredMinStreamCount()) return false; + if (getMaxStreamCount() != other.getMaxStreamCount()) return false; + if (getPreferredMinStreamCount() != other.getPreferredMinStreamCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,129 +327,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `CreateReadSession`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.CreateReadSessionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.CreateReadSessionRequest) com.google.cloud.bigquery.storage.v1.CreateReadSessionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.class, + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -421,13 +473,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.getDefaultInstance(); } @@ -442,21 +495,24 @@ public com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest result = new com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest result = + new com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readSession_ = readSessionBuilder_ == null - ? readSession_ - : readSessionBuilder_.build(); + result.readSession_ = + readSessionBuilder_ == null ? readSession_ : readSessionBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxStreamCount_ = maxStreamCount_; @@ -470,38 +526,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.CreateReadSessio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest) other); } else { super.mergeFrom(other); return this; @@ -509,7 +566,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -550,34 +609,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReadSessionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - maxStreamCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - preferredMinStreamCount_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadSessionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + maxStreamCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + preferredMinStreamCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,23 +649,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -612,21 +679,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -634,30 +704,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -667,18 +748,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -688,39 +775,58 @@ public Builder setParentBytes( private com.google.cloud.bigquery.storage.v1.ReadSession readSession_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession, com.google.cloud.bigquery.storage.v1.ReadSession.Builder, com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder> readSessionBuilder_; + com.google.cloud.bigquery.storage.v1.ReadSession, + com.google.cloud.bigquery.storage.v1.ReadSession.Builder, + com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder> + readSessionBuilder_; /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the readSession field is set. */ public boolean hasReadSession() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The readSession. */ public com.google.cloud.bigquery.storage.v1.ReadSession getReadSession() { if (readSessionBuilder_ == null) { - return readSession_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() : readSession_; + return readSession_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() + : readSession_; } else { return readSessionBuilder_.getMessage(); } } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReadSession(com.google.cloud.bigquery.storage.v1.ReadSession value) { if (readSessionBuilder_ == null) { @@ -736,11 +842,15 @@ public Builder setReadSession(com.google.cloud.bigquery.storage.v1.ReadSession v return this; } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReadSession( com.google.cloud.bigquery.storage.v1.ReadSession.Builder builderForValue) { @@ -754,17 +864,22 @@ public Builder setReadSession( return this; } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeReadSession(com.google.cloud.bigquery.storage.v1.ReadSession value) { if (readSessionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - readSession_ != null && - readSession_ != com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && readSession_ != null + && readSession_ + != com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance()) { getReadSessionBuilder().mergeFrom(value); } else { readSession_ = value; @@ -777,11 +892,15 @@ public Builder mergeReadSession(com.google.cloud.bigquery.storage.v1.ReadSession return this; } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReadSession() { bitField0_ = (bitField0_ & ~0x00000002); @@ -794,11 +913,15 @@ public Builder clearReadSession() { return this; } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.storage.v1.ReadSession.Builder getReadSessionBuilder() { bitField0_ |= 0x00000002; @@ -806,43 +929,57 @@ public com.google.cloud.bigquery.storage.v1.ReadSession.Builder getReadSessionBu return getReadSessionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder getReadSessionOrBuilder() { if (readSessionBuilder_ != null) { return readSessionBuilder_.getMessageOrBuilder(); } else { - return readSession_ == null ? - com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() : readSession_; + return readSession_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance() + : readSession_; } } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession, com.google.cloud.bigquery.storage.v1.ReadSession.Builder, com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder> + com.google.cloud.bigquery.storage.v1.ReadSession, + com.google.cloud.bigquery.storage.v1.ReadSession.Builder, + com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder> getReadSessionFieldBuilder() { if (readSessionBuilder_ == null) { - readSessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession, com.google.cloud.bigquery.storage.v1.ReadSession.Builder, com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder>( - getReadSession(), - getParentForChildren(), - isClean()); + readSessionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ReadSession, + com.google.cloud.bigquery.storage.v1.ReadSession.Builder, + com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder>( + getReadSession(), getParentForChildren(), isClean()); readSession_ = null; } return readSessionBuilder_; } - private int maxStreamCount_ ; + private int maxStreamCount_; /** + * + * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -856,6 +993,7 @@ public com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder getReadSessionO
      * 
* * int32 max_stream_count = 3; + * * @return The maxStreamCount. */ @java.lang.Override @@ -863,6 +1001,8 @@ public int getMaxStreamCount() { return maxStreamCount_; } /** + * + * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -876,17 +1016,20 @@ public int getMaxStreamCount() {
      * 
* * int32 max_stream_count = 3; + * * @param value The maxStreamCount to set. * @return This builder for chaining. */ public Builder setMaxStreamCount(int value) { - + maxStreamCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -900,6 +1043,7 @@ public Builder setMaxStreamCount(int value) {
      * 
* * int32 max_stream_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxStreamCount() { @@ -909,8 +1053,10 @@ public Builder clearMaxStreamCount() { return this; } - private int preferredMinStreamCount_ ; + private int preferredMinStreamCount_; /** + * + * *
      * The minimum preferred stream count. This parameter can be used to inform
      * the service that there is a desired lower bound on the number of streams.
@@ -922,6 +1068,7 @@ public Builder clearMaxStreamCount() {
      * 
* * int32 preferred_min_stream_count = 4; + * * @return The preferredMinStreamCount. */ @java.lang.Override @@ -929,6 +1076,8 @@ public int getPreferredMinStreamCount() { return preferredMinStreamCount_; } /** + * + * *
      * The minimum preferred stream count. This parameter can be used to inform
      * the service that there is a desired lower bound on the number of streams.
@@ -940,17 +1089,20 @@ public int getPreferredMinStreamCount() {
      * 
* * int32 preferred_min_stream_count = 4; + * * @param value The preferredMinStreamCount to set. * @return This builder for chaining. */ public Builder setPreferredMinStreamCount(int value) { - + preferredMinStreamCount_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * The minimum preferred stream count. This parameter can be used to inform
      * the service that there is a desired lower bound on the number of streams.
@@ -962,6 +1114,7 @@ public Builder setPreferredMinStreamCount(int value) {
      * 
* * int32 preferred_min_stream_count = 4; + * * @return This builder for chaining. */ public Builder clearPreferredMinStreamCount() { @@ -970,9 +1123,9 @@ public Builder clearPreferredMinStreamCount() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -982,12 +1135,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.CreateReadSessionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.CreateReadSessionRequest) - private static final com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest(); } @@ -996,27 +1150,27 @@ public static com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReadSessionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReadSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,6 +1185,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.CreateReadSessionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java index 547929425d..a878ce7c8f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateReadSessionRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface CreateReadSessionRequestOrBuilder extends +public interface CreateReadSessionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.CreateReadSessionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the readSession field is set. */ boolean hasReadSession(); /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The readSession. */ com.google.cloud.bigquery.storage.v1.ReadSession getReadSession(); /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder getReadSessionOrBuilder(); /** + * + * *
    * Max initial number of streams. If unset or zero, the server will
    * provide a value of streams so as to produce reasonable throughput. Must be
@@ -70,11 +111,14 @@ public interface CreateReadSessionRequestOrBuilder extends
    * 
* * int32 max_stream_count = 3; + * * @return The maxStreamCount. */ int getMaxStreamCount(); /** + * + * *
    * The minimum preferred stream count. This parameter can be used to inform
    * the service that there is a desired lower bound on the number of streams.
@@ -86,6 +130,7 @@ public interface CreateReadSessionRequestOrBuilder extends
    * 
* * int32 preferred_min_stream_count = 4; + * * @return The preferredMinStreamCount. */ int getPreferredMinStreamCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java index cb3bcd3081..e5729811d1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Request message for `CreateWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.CreateWriteStreamRequest} */ -public final class CreateWriteStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) CreateWriteStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWriteStreamRequest.newBuilder() to construct. private CreateWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWriteStreamRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Reference to the table to which the stream belongs, in the format
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Reference to the table to which the stream belongs, in the format
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +127,16 @@ public java.lang.String getParent() { public static final int WRITE_STREAM_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1.WriteStream writeStream_; /** + * + * *
    * Required. Stream to be created.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the writeStream field is set. */ @java.lang.Override @@ -112,30 +144,44 @@ public boolean hasWriteStream() { return writeStream_ != null; } /** + * + * *
    * Required. Stream to be created.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The writeStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream() { - return writeStream_ == null ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() : writeStream_; + return writeStream_ == null + ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() + : writeStream_; } /** + * + * *
    * Required. Stream to be created.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder getWriteStreamOrBuilder() { - return writeStream_ == null ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() : writeStream_; + return writeStream_ == null + ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() + : writeStream_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +193,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -168,8 +213,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (writeStream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getWriteStream()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWriteStream()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,19 +223,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest other = + (com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasWriteStream() != other.hasWriteStream()) return false; if (hasWriteStream()) { - if (!getWriteStream() - .equals(other.getWriteStream())) return false; + if (!getWriteStream().equals(other.getWriteStream())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,129 +259,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `CreateWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.CreateWriteStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,13 +403,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.getDefaultInstance(); } @@ -374,21 +425,24 @@ public com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest result = + new com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.writeStream_ = writeStreamBuilder_ == null - ? writeStream_ - : writeStreamBuilder_.build(); + result.writeStream_ = + writeStreamBuilder_ == null ? writeStream_ : writeStreamBuilder_.build(); } } @@ -396,38 +450,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.CreateWriteStrea public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -435,7 +490,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -470,24 +527,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getWriteStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getWriteStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,23 +555,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -522,21 +585,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -544,30 +610,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -577,18 +654,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -598,39 +681,58 @@ public Builder setParentBytes( private com.google.cloud.bigquery.storage.v1.WriteStream writeStream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.WriteStream, com.google.cloud.bigquery.storage.v1.WriteStream.Builder, com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder> writeStreamBuilder_; + com.google.cloud.bigquery.storage.v1.WriteStream, + com.google.cloud.bigquery.storage.v1.WriteStream.Builder, + com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder> + writeStreamBuilder_; /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the writeStream field is set. */ public boolean hasWriteStream() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The writeStream. */ public com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream() { if (writeStreamBuilder_ == null) { - return writeStream_ == null ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() : writeStream_; + return writeStream_ == null + ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() + : writeStream_; } else { return writeStreamBuilder_.getMessage(); } } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWriteStream(com.google.cloud.bigquery.storage.v1.WriteStream value) { if (writeStreamBuilder_ == null) { @@ -646,11 +748,15 @@ public Builder setWriteStream(com.google.cloud.bigquery.storage.v1.WriteStream v return this; } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWriteStream( com.google.cloud.bigquery.storage.v1.WriteStream.Builder builderForValue) { @@ -664,17 +770,22 @@ public Builder setWriteStream( return this; } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWriteStream(com.google.cloud.bigquery.storage.v1.WriteStream value) { if (writeStreamBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - writeStream_ != null && - writeStream_ != com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && writeStream_ != null + && writeStream_ + != com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance()) { getWriteStreamBuilder().mergeFrom(value); } else { writeStream_ = value; @@ -687,11 +798,15 @@ public Builder mergeWriteStream(com.google.cloud.bigquery.storage.v1.WriteStream return this; } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWriteStream() { bitField0_ = (bitField0_ & ~0x00000002); @@ -704,11 +819,15 @@ public Builder clearWriteStream() { return this; } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.storage.v1.WriteStream.Builder getWriteStreamBuilder() { bitField0_ |= 0x00000002; @@ -716,43 +835,55 @@ public com.google.cloud.bigquery.storage.v1.WriteStream.Builder getWriteStreamBu return getWriteStreamFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder getWriteStreamOrBuilder() { if (writeStreamBuilder_ != null) { return writeStreamBuilder_.getMessageOrBuilder(); } else { - return writeStream_ == null ? - com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() : writeStream_; + return writeStream_ == null + ? com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance() + : writeStream_; } } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.WriteStream, com.google.cloud.bigquery.storage.v1.WriteStream.Builder, com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder> + com.google.cloud.bigquery.storage.v1.WriteStream, + com.google.cloud.bigquery.storage.v1.WriteStream.Builder, + com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder> getWriteStreamFieldBuilder() { if (writeStreamBuilder_ == null) { - writeStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.WriteStream, com.google.cloud.bigquery.storage.v1.WriteStream.Builder, com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder>( - getWriteStream(), - getParentForChildren(), - isClean()); + writeStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.WriteStream, + com.google.cloud.bigquery.storage.v1.WriteStream.Builder, + com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder>( + getWriteStream(), getParentForChildren(), isClean()); writeStream_ = null; } return writeStreamBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -762,12 +893,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) - private static final com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest(); } @@ -776,27 +908,27 @@ public static com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -811,6 +943,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.CreateWriteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java new file mode 100644 index 0000000000..6effd88b9c --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/CreateWriteStreamRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface CreateWriteStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.CreateWriteStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Reference to the table to which the stream belongs, in the format
+   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Reference to the table to which the stream belongs, in the format
+   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Stream to be created.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the writeStream field is set. + */ + boolean hasWriteStream(); + /** + * + * + *
+   * Required. Stream to be created.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The writeStream. + */ + com.google.cloud.bigquery.storage.v1.WriteStream getWriteStream(); + /** + * + * + *
+   * Required. Stream to be created.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder getWriteStreamOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java index e1f0289dff..d5965f5cce 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/DataFormat.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Data format for input or output data.
  * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1.DataFormat} */ -public enum DataFormat - implements com.google.protobuf.ProtocolMessageEnum { +public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Data format is unspecified.
    * 
@@ -21,6 +39,8 @@ public enum DataFormat */ DATA_FORMAT_UNSPECIFIED(0), /** + * + * *
    * Avro is a standard open source row based file format.
    * See https://avro.apache.org/ for more details.
@@ -30,6 +50,8 @@ public enum DataFormat
    */
   AVRO(1),
   /**
+   *
+   *
    * 
    * Arrow is a standard open source column-based message format.
    * See https://arrow.apache.org/ for more details.
@@ -42,6 +64,8 @@ public enum DataFormat
   ;
 
   /**
+   *
+   *
    * 
    * Data format is unspecified.
    * 
@@ -50,6 +74,8 @@ public enum DataFormat */ public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Avro is a standard open source row based file format.
    * See https://avro.apache.org/ for more details.
@@ -59,6 +85,8 @@ public enum DataFormat
    */
   public static final int AVRO_VALUE = 1;
   /**
+   *
+   *
    * 
    * Arrow is a standard open source column-based message format.
    * See https://arrow.apache.org/ for more details.
@@ -68,7 +96,6 @@ public enum DataFormat
    */
   public static final int ARROW_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -93,49 +120,49 @@ public static DataFormat valueOf(int value) {
    */
   public static DataFormat forNumber(int value) {
     switch (value) {
-      case 0: return DATA_FORMAT_UNSPECIFIED;
-      case 1: return AVRO;
-      case 2: return ARROW;
-      default: return null;
+      case 0:
+        return DATA_FORMAT_UNSPECIFIED;
+      case 1:
+        return AVRO;
+      case 2:
+        return ARROW;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      DataFormat> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public DataFormat findValueByNumber(int number) {
-            return DataFormat.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public DataFormat findValueByNumber(int number) {
+          return DataFormat.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor().getEnumTypes().get(0);
   }
 
   private static final DataFormat[] VALUES = values();
 
-  public static DataFormat valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static DataFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -151,4 +178,3 @@ private DataFormat(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1.DataFormat)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java
similarity index 60%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java
rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java
index 1cbde03dea..1e38042536 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequest.java
@@ -1,63 +1,88 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
 /**
+ *
+ *
  * 
  * Request message for invoking `FinalizeWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest} */ -public final class FinalizeWriteStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FinalizeWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) FinalizeWriteStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FinalizeWriteStreamRequest.newBuilder() to construct. private FinalizeWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FinalizeWriteStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FinalizeWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the stream to finalize, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the stream to finalize, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -134,15 +161,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest other = + (com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for invoking `FinalizeWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,13 +328,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.getDefaultInstance(); } @@ -315,13 +350,17 @@ public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest result = + new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -332,46 +371,50 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.FinalizeWriteStr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -403,17 +446,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +468,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,21 +498,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -470,30 +523,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -503,27 +567,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,41 +603,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) - private static final com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FinalizeWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinalizeWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,9 +651,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java new file mode 100644 index 0000000000..524f55e500 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface FinalizeWriteStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the stream to finalize, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the stream to finalize, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java index b2e3eb99b9..684efc11b1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponse.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Response message for `FinalizeWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse} */ -public final class FinalizeWriteStreamResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FinalizeWriteStreamResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) FinalizeWriteStreamResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FinalizeWriteStreamResponse.newBuilder() to construct. private FinalizeWriteStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FinalizeWriteStreamResponse() { - } + + private FinalizeWriteStreamResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FinalizeWriteStreamResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.Builder.class); } public static final int ROW_COUNT_FIELD_NUMBER = 1; private long rowCount_ = 0L; /** + * + * *
    * Number of rows in the finalized stream.
    * 
* * int64 row_count = 1; + * * @return The rowCount. */ @java.lang.Override @@ -63,6 +84,7 @@ public long getRowCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (rowCount_ != 0L) { output.writeInt64(1, rowCount_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, rowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,15 +120,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse other = (com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) obj; + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse other = + (com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) obj; - if (getRowCount() - != other.getRowCount()) return false; + if (getRowCount() != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -121,137 +141,143 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for `FinalizeWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.class, + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,13 +287,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.getDefaultInstance(); } @@ -282,13 +309,17 @@ public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse build() @java.lang.Override public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse buildPartial() { - com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse result = new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse result = + new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.rowCount_ = rowCount_; @@ -299,46 +330,50 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.FinalizeWriteStr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse other) { - if (other == com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse other) { + if (other + == com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse.getDefaultInstance()) + return this; if (other.getRowCount() != 0L) { setRowCount(other.getRowCount()); } @@ -368,17 +403,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -388,15 +425,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long rowCount_ ; + private long rowCount_; /** + * + * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; + * * @return The rowCount. */ @java.lang.Override @@ -404,27 +445,33 @@ public long getRowCount() { return rowCount_; } /** + * + * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; + * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; + * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -433,9 +480,9 @@ public Builder clearRowCount() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -445,41 +492,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) - private static final com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse(); } - public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FinalizeWriteStreamResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinalizeWriteStreamResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -491,9 +540,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java new file mode 100644 index 0000000000..3da951565e --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FinalizeWriteStreamResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface FinalizeWriteStreamResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FinalizeWriteStreamResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Number of rows in the finalized stream.
+   * 
+ * + * int64 row_count = 1; + * + * @return The rowCount. + */ + long getRowCount(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java index 1082b6798b..9db3a8d3e3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Request message for `FlushRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FlushRowsRequest} */ -public final class FlushRowsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FlushRowsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.FlushRowsRequest) FlushRowsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FlushRowsRequest.newBuilder() to construct. private FlushRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FlushRowsRequest() { writeStream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FlushRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, com.google.cloud.bigquery.storage.v1.FlushRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, + com.google.cloud.bigquery.storage.v1.FlushRowsRequest.Builder.class); } public static final int WRITE_STREAM_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object writeStream_ = ""; /** + * + * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getWriteStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; } } /** + * + * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ @java.lang.Override - public com.google.protobuf.ByteString - getWriteStreamBytes() { + public com.google.protobuf.ByteString getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeStream_ = b; return b; } else { @@ -98,12 +125,15 @@ public java.lang.String getWriteStream() { public static final int OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value offset_; /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ @java.lang.Override @@ -111,12 +141,15 @@ public boolean hasOffset() { return offset_ != null; } /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ @java.lang.Override @@ -124,6 +157,8 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
@@ -137,6 +172,7 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -148,8 +184,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeStream_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, writeStream_);
     }
@@ -169,8 +204,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, writeStream_);
     }
     if (offset_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getOffset());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOffset());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -180,19 +214,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1.FlushRowsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1.FlushRowsRequest other = (com.google.cloud.bigquery.storage.v1.FlushRowsRequest) obj;
+    com.google.cloud.bigquery.storage.v1.FlushRowsRequest other =
+        (com.google.cloud.bigquery.storage.v1.FlushRowsRequest) obj;
 
-    if (!getWriteStream()
-        .equals(other.getWriteStream())) return false;
+    if (!getWriteStream().equals(other.getWriteStream())) return false;
     if (hasOffset() != other.hasOffset()) return false;
     if (hasOffset()) {
-      if (!getOffset()
-          .equals(other.getOffset())) return false;
+      if (!getOffset().equals(other.getOffset())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -217,129 +250,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.FlushRowsRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.storage.v1.FlushRowsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for `FlushRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FlushRowsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.FlushRowsRequest) com.google.cloud.bigquery.storage.v1.FlushRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, com.google.cloud.bigquery.storage.v1.FlushRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.FlushRowsRequest.class, + com.google.cloud.bigquery.storage.v1.FlushRowsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.FlushRowsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; } @java.lang.Override @@ -375,8 +415,11 @@ public com.google.cloud.bigquery.storage.v1.FlushRowsRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.FlushRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.FlushRowsRequest result = new com.google.cloud.bigquery.storage.v1.FlushRowsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.FlushRowsRequest result = + new com.google.cloud.bigquery.storage.v1.FlushRowsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -387,9 +430,7 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.FlushRowsRequest result.writeStream_ = writeStream_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.offset_ = offsetBuilder_ == null - ? offset_ - : offsetBuilder_.build(); + result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build(); } } @@ -397,38 +438,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.FlushRowsRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.FlushRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.FlushRowsRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.FlushRowsRequest) other); } else { super.mergeFrom(other); return this; @@ -436,7 +478,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.FlushRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.FlushRowsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.FlushRowsRequest.getDefaultInstance()) + return this; if (!other.getWriteStream().isEmpty()) { writeStream_ = other.writeStream_; bitField0_ |= 0x00000001; @@ -471,24 +514,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - writeStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + writeStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -498,22 +542,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object writeStream_ = ""; /** + * + * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ public java.lang.String getWriteStream() { java.lang.Object ref = writeStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; @@ -522,20 +571,23 @@ public java.lang.String getWriteStream() { } } /** + * + * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ - public com.google.protobuf.ByteString - getWriteStreamBytes() { + public com.google.protobuf.ByteString getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeStream_ = b; return b; } else { @@ -543,28 +595,39 @@ public java.lang.String getWriteStream() { } } /** + * + * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStream( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStream(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } writeStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearWriteStream() { @@ -574,17 +637,23 @@ public Builder clearWriteStream() { return this; } /** + * + * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStreamBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); writeStream_ = value; bitField0_ |= 0x00000001; @@ -594,26 +663,35 @@ public Builder setWriteStreamBytes( private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + offsetBuilder_; /** + * + * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
      * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
      * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -624,6 +702,8 @@ public com.google.protobuf.Int64Value getOffset() { } } /** + * + * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -645,6 +725,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -652,8 +734,7 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value offset = 2;
      */
-    public Builder setOffset(
-        com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
       if (offsetBuilder_ == null) {
         offset_ = builderForValue.build();
       } else {
@@ -664,6 +745,8 @@ public Builder setOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -673,9 +756,9 @@ public Builder setOffset(
      */
     public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       if (offsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          offset_ != null &&
-          offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && offset_ != null
+            && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
           getOffsetBuilder().mergeFrom(value);
         } else {
           offset_ = value;
@@ -688,6 +771,8 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -706,6 +791,8 @@ public Builder clearOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -719,6 +806,8 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
       return getOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -730,11 +819,12 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
       if (offsetBuilder_ != null) {
         return offsetBuilder_.getMessageOrBuilder();
       } else {
-        return offset_ == null ?
-            com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+        return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
       }
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -743,21 +833,24 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
      * .google.protobuf.Int64Value offset = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
+            com.google.protobuf.Int64Value,
+            com.google.protobuf.Int64Value.Builder,
+            com.google.protobuf.Int64ValueOrBuilder>
         getOffsetFieldBuilder() {
       if (offsetBuilder_ == null) {
-        offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
-                getOffset(),
-                getParentForChildren(),
-                isClean());
+        offsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Int64Value,
+                com.google.protobuf.Int64Value.Builder,
+                com.google.protobuf.Int64ValueOrBuilder>(
+                getOffset(), getParentForChildren(), isClean());
         offset_ = null;
       }
       return offsetBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -767,12 +860,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.FlushRowsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.FlushRowsRequest)
   private static final com.google.cloud.bigquery.storage.v1.FlushRowsRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.FlushRowsRequest();
   }
@@ -781,27 +874,27 @@ public static com.google.cloud.bigquery.storage.v1.FlushRowsRequest getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public FlushRowsRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public FlushRowsRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -816,6 +909,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1.FlushRowsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java
similarity index 58%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java
rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java
index 739d1ee4b8..41db84641f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsRequestOrBuilder.java
@@ -1,53 +1,86 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
-public interface FlushRowsRequestOrBuilder extends
+public interface FlushRowsRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FlushRowsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The stream that is the target of the flush operation.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ java.lang.String getWriteStream(); /** + * + * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ - com.google.protobuf.ByteString - getWriteStreamBytes(); + com.google.protobuf.ByteString getWriteStreamBytes(); /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ boolean hasOffset(); /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java
similarity index 63%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java
rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java
index ad09dca3dc..3f7e6f8aaf 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponse.java
@@ -1,60 +1,81 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
 /**
+ *
+ *
  * 
  * Respond message for `FlushRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FlushRowsResponse} */ -public final class FlushRowsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FlushRowsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.FlushRowsResponse) FlushRowsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FlushRowsResponse.newBuilder() to construct. private FlushRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FlushRowsResponse() { - } + + private FlushRowsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FlushRowsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, com.google.cloud.bigquery.storage.v1.FlushRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, + com.google.cloud.bigquery.storage.v1.FlushRowsResponse.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private long offset_ = 0L; /** + * + * *
    * The rows before this offset (including this offset) are flushed.
    * 
* * int64 offset = 1; + * * @return The offset. */ @java.lang.Override @@ -63,6 +84,7 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (offset_ != 0L) { output.writeInt64(1, offset_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, offset_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,15 +120,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.FlushRowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.FlushRowsResponse other = (com.google.cloud.bigquery.storage.v1.FlushRowsResponse) obj; + com.google.cloud.bigquery.storage.v1.FlushRowsResponse other = + (com.google.cloud.bigquery.storage.v1.FlushRowsResponse) obj; - if (getOffset() - != other.getOffset()) return false; + if (getOffset() != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -121,137 +141,143 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.FlushRowsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.FlushRowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Respond message for `FlushRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.FlushRowsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.FlushRowsResponse) com.google.cloud.bigquery.storage.v1.FlushRowsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, com.google.cloud.bigquery.storage.v1.FlushRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.FlushRowsResponse.class, + com.google.cloud.bigquery.storage.v1.FlushRowsResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.FlushRowsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,9 +287,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; } @java.lang.Override @@ -282,8 +308,11 @@ public com.google.cloud.bigquery.storage.v1.FlushRowsResponse build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.FlushRowsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1.FlushRowsResponse result = new com.google.cloud.bigquery.storage.v1.FlushRowsResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.FlushRowsResponse result = + new com.google.cloud.bigquery.storage.v1.FlushRowsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -299,38 +328,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.FlushRowsRespons public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.FlushRowsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.FlushRowsResponse)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.FlushRowsResponse) other); } else { super.mergeFrom(other); return this; @@ -338,7 +368,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.FlushRowsResponse other) { - if (other == com.google.cloud.bigquery.storage.v1.FlushRowsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.FlushRowsResponse.getDefaultInstance()) + return this; if (other.getOffset() != 0L) { setOffset(other.getOffset()); } @@ -368,17 +399,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - offset_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -388,15 +421,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long offset_ ; + private long offset_; /** + * + * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; + * * @return The offset. */ @java.lang.Override @@ -404,27 +441,33 @@ public long getOffset() { return offset_; } /** + * + * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; + * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; + * * @return This builder for chaining. */ public Builder clearOffset() { @@ -433,9 +476,9 @@ public Builder clearOffset() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -445,12 +488,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.FlushRowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.FlushRowsResponse) private static final com.google.cloud.bigquery.storage.v1.FlushRowsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.FlushRowsResponse(); } @@ -459,27 +502,27 @@ public static com.google.cloud.bigquery.storage.v1.FlushRowsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FlushRowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlushRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -494,6 +537,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.FlushRowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java new file mode 100644 index 0000000000..9608099deb --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/FlushRowsResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface FlushRowsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.FlushRowsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The rows before this offset (including this offset) are flushed.
+   * 
+ * + * int64 offset = 1; + * + * @return The offset. + */ + long getOffset(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java index 994ed7feee..d4efa4d8c7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Request message for `GetWriteStreamRequest`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.GetWriteStreamRequest} */ -public final class GetWriteStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.GetWriteStreamRequest) GetWriteStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWriteStreamRequest.newBuilder() to construct. private GetWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWriteStreamRequest() { name_ = ""; view_ = 0; @@ -26,39 +44,46 @@ private GetWriteStreamRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,30 +92,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,32 +128,44 @@ public java.lang.String getName() { public static final int VIEW_FIELD_NUMBER = 3; private int view_ = 0; /** + * + * *
    * Indicates whether to get full or partial view of the WriteStream. If
    * not set, view returned will be basic.
    * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * Indicates whether to get full or partial view of the WriteStream. If
    * not set, view returned will be basic.
    * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; + * * @return The view. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStreamView getView() { - com.google.cloud.bigquery.storage.v1.WriteStreamView result = com.google.cloud.bigquery.storage.v1.WriteStreamView.forNumber(view_); - return result == null ? com.google.cloud.bigquery.storage.v1.WriteStreamView.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.WriteStreamView getView() { + com.google.cloud.bigquery.storage.v1.WriteStreamView result = + com.google.cloud.bigquery.storage.v1.WriteStreamView.forNumber(view_); + return result == null + ? com.google.cloud.bigquery.storage.v1.WriteStreamView.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,12 +177,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (view_ != com.google.cloud.bigquery.storage.v1.WriteStreamView.WRITE_STREAM_VIEW_UNSPECIFIED.getNumber()) { + if (view_ + != com.google.cloud.bigquery.storage.v1.WriteStreamView.WRITE_STREAM_VIEW_UNSPECIFIED + .getNumber()) { output.writeEnum(3, view_); } getUnknownFields().writeTo(output); @@ -158,9 +198,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (view_ != com.google.cloud.bigquery.storage.v1.WriteStreamView.WRITE_STREAM_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, view_); + if (view_ + != com.google.cloud.bigquery.storage.v1.WriteStreamView.WRITE_STREAM_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, view_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -170,15 +211,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest other = + (com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -201,129 +242,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GetWriteStreamRequest`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.GetWriteStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.GetWriteStreamRequest) com.google.cloud.bigquery.storage.v1.GetWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -334,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; } @java.lang.Override @@ -355,8 +403,11 @@ public com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest result = + new com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -375,38 +426,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.GetWriteStreamRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -414,7 +466,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -449,22 +502,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: { - view_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -474,23 +530,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -499,21 +560,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -521,30 +585,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -554,18 +629,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -575,24 +656,31 @@ public Builder setNameBytes( private int view_ = 0; /** + * + * *
      * Indicates whether to get full or partial view of the WriteStream. If
      * not set, view returned will be basic.
      * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * Indicates whether to get full or partial view of the WriteStream. If
      * not set, view returned will be basic.
      * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -603,26 +691,35 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * Indicates whether to get full or partial view of the WriteStream. If
      * not set, view returned will be basic.
      * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; + * * @return The view. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStreamView getView() { - com.google.cloud.bigquery.storage.v1.WriteStreamView result = com.google.cloud.bigquery.storage.v1.WriteStreamView.forNumber(view_); - return result == null ? com.google.cloud.bigquery.storage.v1.WriteStreamView.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1.WriteStreamView result = + com.google.cloud.bigquery.storage.v1.WriteStreamView.forNumber(view_); + return result == null + ? com.google.cloud.bigquery.storage.v1.WriteStreamView.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates whether to get full or partial view of the WriteStream. If
      * not set, view returned will be basic.
      * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; + * * @param value The view to set. * @return This builder for chaining. */ @@ -636,12 +733,15 @@ public Builder setView(com.google.cloud.bigquery.storage.v1.WriteStreamView valu return this; } /** + * + * *
      * Indicates whether to get full or partial view of the WriteStream. If
      * not set, view returned will be basic.
      * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; + * * @return This builder for chaining. */ public Builder clearView() { @@ -650,9 +750,9 @@ public Builder clearView() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -662,12 +762,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.GetWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.GetWriteStreamRequest) private static final com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest(); } @@ -676,27 +776,27 @@ public static com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -711,6 +811,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.GetWriteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java index 1e7bb15cf2..816792d231 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/GetWriteStreamRequestOrBuilder.java @@ -1,51 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface GetWriteStreamRequestOrBuilder extends +public interface GetWriteStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.GetWriteStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Indicates whether to get full or partial view of the WriteStream. If
    * not set, view returned will be basic.
    * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * Indicates whether to get full or partial view of the WriteStream. If
    * not set, view returned will be basic.
    * 
* * .google.cloud.bigquery.storage.v1.WriteStreamView view = 3; + * * @return The view. */ com.google.cloud.bigquery.storage.v1.WriteStreamView getView(); diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProjectName.java diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java new file mode 100644 index 0000000000..4f0d833af4 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoBufProto.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/protobuf.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class ProtoBufProto { + private ProtoBufProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/bigquery/storage/v1/proto" + + "buf.proto\022 google.cloud.bigquery.storage" + + ".v1\032 google/protobuf/descriptor.proto\"I\n" + + "\013ProtoSchema\022:\n\020proto_descriptor\030\001 \001(\0132 " + + ".google.protobuf.DescriptorProto\"$\n\tProt" + + "oRows\022\027\n\017serialized_rows\030\001 \003(\014B\275\001\n$com.g" + + "oogle.cloud.bigquery.storage.v1B\rProtoBu" + + "fProtoP\001Z>cloud.google.com/go/bigquery/s" + + "torage/apiv1/storagepb;storagepb\252\002 Googl" + + "e.Cloud.BigQuery.Storage.V1\312\002 Google\\Clo" + + "ud\\BigQuery\\Storage\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DescriptorProtos.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor, + new java.lang.String[] { + "ProtoDescriptor", + }); + internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor, + new java.lang.String[] { + "SerializedRows", + }); + com.google.protobuf.DescriptorProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java index 8426e1a4ea..99335688c5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRows.java @@ -1,53 +1,71 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto package com.google.cloud.bigquery.storage.v1; -/** - * Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoRows} - */ -public final class ProtoRows extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoRows} */ +public final class ProtoRows extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ProtoRows) ProtoRowsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProtoRows.newBuilder() to construct. private ProtoRows(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProtoRows() { serializedRows_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProtoRows(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ProtoRows.class, com.google.cloud.bigquery.storage.v1.ProtoRows.Builder.class); + com.google.cloud.bigquery.storage.v1.ProtoRows.class, + com.google.cloud.bigquery.storage.v1.ProtoRows.Builder.class); } public static final int SERIALIZED_ROWS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List serializedRows_; /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -55,14 +73,16 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes serialized_rows = 1; + * * @return A list containing the serializedRows. */ @java.lang.Override - public java.util.List - getSerializedRowsList() { + public java.util.List getSerializedRowsList() { return serializedRows_; } /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -70,12 +90,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes serialized_rows = 1; + * * @return The count of serializedRows. */ public int getSerializedRowsCount() { return serializedRows_.size(); } /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -83,6 +106,7 @@ public int getSerializedRowsCount() {
    * 
* * repeated bytes serialized_rows = 1; + * * @param index The index of the element to return. * @return The serializedRows at the given index. */ @@ -91,6 +115,7 @@ public com.google.protobuf.ByteString getSerializedRows(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < serializedRows_.size(); i++) { output.writeBytes(1, serializedRows_.get(i)); } @@ -119,8 +143,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < serializedRows_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(serializedRows_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(serializedRows_.get(i)); } size += dataSize; size += 1 * getSerializedRowsList().size(); @@ -133,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ProtoRows)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ProtoRows other = (com.google.cloud.bigquery.storage.v1.ProtoRows) obj; + com.google.cloud.bigquery.storage.v1.ProtoRows other = + (com.google.cloud.bigquery.storage.v1.ProtoRows) obj; - if (!getSerializedRowsList() - .equals(other.getSerializedRowsList())) return false; + if (!getSerializedRowsList().equals(other.getSerializedRowsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,126 +186,128 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ProtoRows parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ProtoRows parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ProtoRows prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoRows} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoRows} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ProtoRows) com.google.cloud.bigquery.storage.v1.ProtoRowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1_ProtoRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ProtoRows.class, com.google.cloud.bigquery.storage.v1.ProtoRows.Builder.class); + com.google.cloud.bigquery.storage.v1.ProtoRows.class, + com.google.cloud.bigquery.storage.v1.ProtoRows.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ProtoRows.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1_ProtoRows_descriptor; } @java.lang.Override @@ -312,9 +338,12 @@ public com.google.cloud.bigquery.storage.v1.ProtoRows build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ProtoRows buildPartial() { - com.google.cloud.bigquery.storage.v1.ProtoRows result = new com.google.cloud.bigquery.storage.v1.ProtoRows(this); + com.google.cloud.bigquery.storage.v1.ProtoRows result = + new com.google.cloud.bigquery.storage.v1.ProtoRows(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -335,38 +364,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ProtoRows result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ProtoRows) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ProtoRows)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ProtoRows) other); } else { super.mergeFrom(other); return this; @@ -411,18 +441,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureSerializedRowsIsMutable(); - serializedRows_.add(v); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.ByteString v = input.readBytes(); + ensureSerializedRowsIsMutable(); + serializedRows_.add(v); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -432,9 +464,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List serializedRows_ = java.util.Collections.emptyList(); + private java.util.List serializedRows_ = + java.util.Collections.emptyList(); + private void ensureSerializedRowsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { serializedRows_ = new java.util.ArrayList(serializedRows_); @@ -442,6 +477,8 @@ private void ensureSerializedRowsIsMutable() { } } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -449,14 +486,17 @@ private void ensureSerializedRowsIsMutable() {
      * 
* * repeated bytes serialized_rows = 1; + * * @return A list containing the serializedRows. */ - public java.util.List - getSerializedRowsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(serializedRows_) : serializedRows_; + public java.util.List getSerializedRowsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(serializedRows_) + : serializedRows_; } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -464,12 +504,15 @@ private void ensureSerializedRowsIsMutable() {
      * 
* * repeated bytes serialized_rows = 1; + * * @return The count of serializedRows. */ public int getSerializedRowsCount() { return serializedRows_.size(); } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -477,6 +520,7 @@ public int getSerializedRowsCount() {
      * 
* * repeated bytes serialized_rows = 1; + * * @param index The index of the element to return. * @return The serializedRows at the given index. */ @@ -484,6 +528,8 @@ public com.google.protobuf.ByteString getSerializedRows(int index) { return serializedRows_.get(index); } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -491,19 +537,23 @@ public com.google.protobuf.ByteString getSerializedRows(int index) {
      * 
* * repeated bytes serialized_rows = 1; + * * @param index The index to set the value at. * @param value The serializedRows to set. * @return This builder for chaining. */ - public Builder setSerializedRows( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSerializedRows(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureSerializedRowsIsMutable(); serializedRows_.set(index, value); onChanged(); return this; } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -511,17 +561,22 @@ public Builder setSerializedRows(
      * 
* * repeated bytes serialized_rows = 1; + * * @param value The serializedRows to add. * @return This builder for chaining. */ public Builder addSerializedRows(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureSerializedRowsIsMutable(); serializedRows_.add(value); onChanged(); return this; } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -529,18 +584,20 @@ public Builder addSerializedRows(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes serialized_rows = 1; + * * @param values The serializedRows to add. * @return This builder for chaining. */ public Builder addAllSerializedRows( java.lang.Iterable values) { ensureSerializedRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serializedRows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serializedRows_); onChanged(); return this; } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -548,6 +605,7 @@ public Builder addAllSerializedRows(
      * 
* * repeated bytes serialized_rows = 1; + * * @return This builder for chaining. */ public Builder clearSerializedRows() { @@ -556,9 +614,9 @@ public Builder clearSerializedRows() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -568,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ProtoRows) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ProtoRows) private static final com.google.cloud.bigquery.storage.v1.ProtoRows DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ProtoRows(); } @@ -582,27 +640,27 @@ public static com.google.cloud.bigquery.storage.v1.ProtoRows getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoRows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProtoRows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +675,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ProtoRows getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java index 5022c9bb9b..478554fa14 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoRowsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto package com.google.cloud.bigquery.storage.v1; -public interface ProtoRowsOrBuilder extends +public interface ProtoRowsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ProtoRows) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -15,10 +33,13 @@ public interface ProtoRowsOrBuilder extends
    * 
* * repeated bytes serialized_rows = 1; + * * @return A list containing the serializedRows. */ java.util.List getSerializedRowsList(); /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -26,10 +47,13 @@ public interface ProtoRowsOrBuilder extends
    * 
* * repeated bytes serialized_rows = 1; + * * @return The count of serializedRows. */ int getSerializedRowsCount(); /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -37,6 +61,7 @@ public interface ProtoRowsOrBuilder extends
    * 
* * repeated bytes serialized_rows = 1; + * * @param index The index of the element to return. * @return The serializedRows at the given index. */ diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java index 1340ca9cfd..f7b7c709ed 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchema.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/protobuf.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * ProtoSchema describes the schema of the serialized protocol buffer data rows.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoSchema} */ -public final class ProtoSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProtoSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ProtoSchema) ProtoSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProtoSchema.newBuilder() to construct. private ProtoSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProtoSchema() { - } + + private ProtoSchema() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProtoSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ProtoSchema.class, com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.ProtoSchema.class, + com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder.class); } public static final int PROTO_DESCRIPTOR_FIELD_NUMBER = 1; private com.google.protobuf.DescriptorProtos.DescriptorProto protoDescriptor_; /** + * + * *
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
@@ -62,6 +82,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return Whether the protoDescriptor field is set. */ @java.lang.Override @@ -69,6 +90,8 @@ public boolean hasProtoDescriptor() { return protoDescriptor_ != null; } /** + * + * *
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
@@ -81,13 +104,18 @@ public boolean hasProtoDescriptor() {
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return The protoDescriptor. */ @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor() { - return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_; + return protoDescriptor_ == null + ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() + : protoDescriptor_; } /** + * + * *
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
@@ -102,11 +130,15 @@ public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor()
    * .google.protobuf.DescriptorProto proto_descriptor = 1;
    */
   @java.lang.Override
-  public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtoDescriptorOrBuilder() {
-    return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_;
+  public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder
+      getProtoDescriptorOrBuilder() {
+    return protoDescriptor_ == null
+        ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()
+        : protoDescriptor_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -124,8 +156,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (protoDescriptor_ != null) {
       output.writeMessage(1, getProtoDescriptor());
     }
@@ -139,8 +170,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (protoDescriptor_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getProtoDescriptor());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProtoDescriptor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -150,17 +180,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ProtoSchema)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1.ProtoSchema other = (com.google.cloud.bigquery.storage.v1.ProtoSchema) obj;
+    com.google.cloud.bigquery.storage.v1.ProtoSchema other =
+        (com.google.cloud.bigquery.storage.v1.ProtoSchema) obj;
 
     if (hasProtoDescriptor() != other.hasProtoDescriptor()) return false;
     if (hasProtoDescriptor()) {
-      if (!getProtoDescriptor()
-          .equals(other.getProtoDescriptor())) return false;
+      if (!getProtoDescriptor().equals(other.getProtoDescriptor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -182,130 +212,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.ProtoSchema parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ProtoSchema prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * ProtoSchema describes the schema of the serialized protocol buffer data rows.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ProtoSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ProtoSchema) com.google.cloud.bigquery.storage.v1.ProtoSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ProtoSchema.class, com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.ProtoSchema.class, + com.google.cloud.bigquery.storage.v1.ProtoSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ProtoSchema.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -319,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1_ProtoSchema_descriptor; } @java.lang.Override @@ -340,8 +376,11 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ProtoSchema buildPartial() { - com.google.cloud.bigquery.storage.v1.ProtoSchema result = new com.google.cloud.bigquery.storage.v1.ProtoSchema(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.ProtoSchema result = + new com.google.cloud.bigquery.storage.v1.ProtoSchema(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -349,9 +388,8 @@ public com.google.cloud.bigquery.storage.v1.ProtoSchema buildPartial() { private void buildPartial0(com.google.cloud.bigquery.storage.v1.ProtoSchema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.protoDescriptor_ = protoDescriptorBuilder_ == null - ? protoDescriptor_ - : protoDescriptorBuilder_.build(); + result.protoDescriptor_ = + protoDescriptorBuilder_ == null ? protoDescriptor_ : protoDescriptorBuilder_.build(); } } @@ -359,38 +397,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ProtoSchema resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ProtoSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ProtoSchema)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ProtoSchema) other); } else { super.mergeFrom(other); return this; @@ -398,7 +437,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ProtoSchema other) { - if (other == com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.ProtoSchema.getDefaultInstance()) + return this; if (other.hasProtoDescriptor()) { mergeProtoDescriptor(other.getProtoDescriptor()); } @@ -433,19 +473,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getProtoDescriptorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getProtoDescriptorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -455,12 +495,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.DescriptorProtos.DescriptorProto protoDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> protoDescriptorBuilder_; + com.google.protobuf.DescriptorProtos.DescriptorProto, + com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, + com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> + protoDescriptorBuilder_; /** + * + * *
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -473,12 +519,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return Whether the protoDescriptor field is set. */ public boolean hasProtoDescriptor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -491,16 +540,21 @@ public boolean hasProtoDescriptor() {
      * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return The protoDescriptor. */ public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor() { if (protoDescriptorBuilder_ == null) { - return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_; + return protoDescriptor_ == null + ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() + : protoDescriptor_; } else { return protoDescriptorBuilder_.getMessage(); } } /** + * + * *
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -528,6 +582,8 @@ public Builder setProtoDescriptor(com.google.protobuf.DescriptorProtos.Descripto
       return this;
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -553,6 +609,8 @@ public Builder setProtoDescriptor(
       return this;
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -566,11 +624,13 @@ public Builder setProtoDescriptor(
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public Builder mergeProtoDescriptor(com.google.protobuf.DescriptorProtos.DescriptorProto value) {
+    public Builder mergeProtoDescriptor(
+        com.google.protobuf.DescriptorProtos.DescriptorProto value) {
       if (protoDescriptorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          protoDescriptor_ != null &&
-          protoDescriptor_ != com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && protoDescriptor_ != null
+            && protoDescriptor_
+                != com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) {
           getProtoDescriptorBuilder().mergeFrom(value);
         } else {
           protoDescriptor_ = value;
@@ -583,6 +643,8 @@ public Builder mergeProtoDescriptor(com.google.protobuf.DescriptorProtos.Descrip
       return this;
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -607,6 +669,8 @@ public Builder clearProtoDescriptor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -620,12 +684,15 @@ public Builder clearProtoDescriptor() {
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getProtoDescriptorBuilder() {
+    public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder
+        getProtoDescriptorBuilder() {
       bitField0_ |= 0x00000001;
       onChanged();
       return getProtoDescriptorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -639,15 +706,19 @@ public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getProtoDesc
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtoDescriptorOrBuilder() {
+    public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder
+        getProtoDescriptorOrBuilder() {
       if (protoDescriptorBuilder_ != null) {
         return protoDescriptorBuilder_.getMessageOrBuilder();
       } else {
-        return protoDescriptor_ == null ?
-            com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_;
+        return protoDescriptor_ == null
+            ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()
+            : protoDescriptor_;
       }
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message.  The provided descriptor must be self
      * contained, such that data rows sent can be fully decoded using only the
@@ -662,21 +733,24 @@ public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtoDes
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 
+            com.google.protobuf.DescriptorProtos.DescriptorProto,
+            com.google.protobuf.DescriptorProtos.DescriptorProto.Builder,
+            com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>
         getProtoDescriptorFieldBuilder() {
       if (protoDescriptorBuilder_ == null) {
-        protoDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>(
-                getProtoDescriptor(),
-                getParentForChildren(),
-                isClean());
+        protoDescriptorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.DescriptorProtos.DescriptorProto,
+                com.google.protobuf.DescriptorProtos.DescriptorProto.Builder,
+                com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>(
+                getProtoDescriptor(), getParentForChildren(), isClean());
         protoDescriptor_ = null;
       }
       return protoDescriptorBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -686,12 +760,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ProtoSchema)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ProtoSchema)
   private static final com.google.cloud.bigquery.storage.v1.ProtoSchema DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ProtoSchema();
   }
@@ -700,27 +774,27 @@ public static com.google.cloud.bigquery.storage.v1.ProtoSchema getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ProtoSchema parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ProtoSchema parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -735,6 +809,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1.ProtoSchema getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java
rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java
index 976e93ef69..1abed6abb7 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ProtoSchemaOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/protobuf.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
-public interface ProtoSchemaOrBuilder extends
+public interface ProtoSchemaOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ProtoSchema)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
@@ -20,10 +38,13 @@ public interface ProtoSchemaOrBuilder extends
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return Whether the protoDescriptor field is set. */ boolean hasProtoDescriptor(); /** + * + * *
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
@@ -36,10 +57,13 @@ public interface ProtoSchemaOrBuilder extends
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return The protoDescriptor. */ com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor(); /** + * + * *
    * Descriptor for input message.  The provided descriptor must be self
    * contained, such that data rows sent can be fully decoded using only the
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java
similarity index 63%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java
rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java
index 5d8e59f2af..4cb269fab4 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequest.java
@@ -1,62 +1,87 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
 /**
+ *
+ *
  * 
  * Request message for `ReadRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadRowsRequest} */ -public final class ReadRowsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReadRowsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadRowsRequest) ReadRowsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadRowsRequest.newBuilder() to construct. private ReadRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReadRowsRequest() { readStream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadRowsRequest.class, + com.google.cloud.bigquery.storage.v1.ReadRowsRequest.Builder.class); } public static final int READ_STREAM_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object readStream_ = ""; /** + * + * *
    * Required. Stream to read rows from.
    * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The readStream. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getReadStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readStream_ = s; return s; } } /** + * + * *
    * Required. Stream to read rows from.
    * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for readStream. */ @java.lang.Override - public com.google.protobuf.ByteString - getReadStreamBytes() { + public com.google.protobuf.ByteString getReadStreamBytes() { java.lang.Object ref = readStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); readStream_ = b; return b; } else { @@ -98,6 +125,8 @@ public java.lang.String getReadStream() { public static final int OFFSET_FIELD_NUMBER = 2; private long offset_ = 0L; /** + * + * *
    * The offset requested must be less than the last row read from Read.
    * Requesting a larger offset is undefined. If not specified, start reading
@@ -105,6 +134,7 @@ public java.lang.String getReadStream() {
    * 
* * int64 offset = 2; + * * @return The offset. */ @java.lang.Override @@ -113,6 +143,7 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,8 +155,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readStream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, readStream_); } @@ -145,8 +175,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, readStream_); } if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, offset_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -156,17 +185,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadRowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadRowsRequest other = (com.google.cloud.bigquery.storage.v1.ReadRowsRequest) obj; + com.google.cloud.bigquery.storage.v1.ReadRowsRequest other = + (com.google.cloud.bigquery.storage.v1.ReadRowsRequest) obj; - if (!getReadStream() - .equals(other.getReadStream())) return false; - if (getOffset() - != other.getOffset()) return false; + if (!getReadStream().equals(other.getReadStream())) return false; + if (getOffset() != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,137 +209,142 @@ public int hashCode() { hash = (37 * hash) + READ_STREAM_FIELD_NUMBER; hash = (53 * hash) + getReadStream().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadRowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `ReadRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadRowsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadRowsRequest) com.google.cloud.bigquery.storage.v1.ReadRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadRowsRequest.class, + com.google.cloud.bigquery.storage.v1.ReadRowsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ReadRowsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +355,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; } @java.lang.Override @@ -343,8 +376,11 @@ public com.google.cloud.bigquery.storage.v1.ReadRowsRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.ReadRowsRequest result = new com.google.cloud.bigquery.storage.v1.ReadRowsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.ReadRowsRequest result = + new com.google.cloud.bigquery.storage.v1.ReadRowsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -363,38 +399,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadRowsRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ReadRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadRowsRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadRowsRequest) other); } else { super.mergeFrom(other); return this; @@ -402,7 +439,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.ReadRowsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.ReadRowsRequest.getDefaultInstance()) + return this; if (!other.getReadStream().isEmpty()) { readStream_ = other.readStream_; bitField0_ |= 0x00000001; @@ -437,22 +475,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - readStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - offset_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + readStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,22 +503,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object readStream_ = ""; /** + * + * *
      * Required. Stream to read rows from.
      * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The readStream. */ public java.lang.String getReadStream() { java.lang.Object ref = readStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readStream_ = s; return s; @@ -486,20 +532,23 @@ public java.lang.String getReadStream() { } } /** + * + * *
      * Required. Stream to read rows from.
      * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for readStream. */ - public com.google.protobuf.ByteString - getReadStreamBytes() { + public com.google.protobuf.ByteString getReadStreamBytes() { java.lang.Object ref = readStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); readStream_ = b; return b; } else { @@ -507,28 +556,39 @@ public java.lang.String getReadStream() { } } /** + * + * *
      * Required. Stream to read rows from.
      * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The readStream to set. * @return This builder for chaining. */ - public Builder setReadStream( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReadStream(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } readStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Stream to read rows from.
      * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearReadStream() { @@ -538,17 +598,23 @@ public Builder clearReadStream() { return this; } /** + * + * *
      * Required. Stream to read rows from.
      * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for readStream to set. * @return This builder for chaining. */ - public Builder setReadStreamBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReadStreamBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); readStream_ = value; bitField0_ |= 0x00000001; @@ -556,8 +622,10 @@ public Builder setReadStreamBytes( return this; } - private long offset_ ; + private long offset_; /** + * + * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -565,6 +633,7 @@ public Builder setReadStreamBytes(
      * 
* * int64 offset = 2; + * * @return The offset. */ @java.lang.Override @@ -572,6 +641,8 @@ public long getOffset() { return offset_; } /** + * + * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -579,17 +650,20 @@ public long getOffset() {
      * 
* * int64 offset = 2; + * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -597,6 +671,7 @@ public Builder setOffset(long value) {
      * 
* * int64 offset = 2; + * * @return This builder for chaining. */ public Builder clearOffset() { @@ -605,9 +680,9 @@ public Builder clearOffset() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadRowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadRowsRequest) private static final com.google.cloud.bigquery.storage.v1.ReadRowsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadRowsRequest(); } @@ -631,27 +706,27 @@ public static com.google.cloud.bigquery.storage.v1.ReadRowsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadRowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,6 +741,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ReadRowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java new file mode 100644 index 0000000000..ae6058f280 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface ReadRowsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadRowsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Stream to read rows from.
+   * 
+ * + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The readStream. + */ + java.lang.String getReadStream(); + /** + * + * + *
+   * Required. Stream to read rows from.
+   * 
+ * + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for readStream. + */ + com.google.protobuf.ByteString getReadStreamBytes(); + + /** + * + * + *
+   * The offset requested must be less than the last row read from Read.
+   * Requesting a larger offset is undefined. If not specified, start reading
+   * from offset zero.
+   * 
+ * + * int64 offset = 2; + * + * @return The offset. + */ + long getOffset(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java index a83d88d37e..5904b2253a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Response from calling `ReadRows` may include row data, progress and
  * throttling information.
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadRowsResponse}
  */
-public final class ReadRowsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReadRowsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadRowsResponse)
     ReadRowsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReadRowsResponse.newBuilder() to construct.
   private ReadRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ReadRowsResponse() {
-  }
+
+  private ReadRowsResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReadRowsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.StorageProto
+        .internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.StorageProto
+        .internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1.ReadRowsResponse.Builder.class);
+            com.google.cloud.bigquery.storage.v1.ReadRowsResponse.class,
+            com.google.cloud.bigquery.storage.v1.ReadRowsResponse.Builder.class);
   }
 
   private int rowsCase_ = 0;
   private java.lang.Object rows_;
+
   public enum RowsCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AVRO_ROWS(3),
     ARROW_RECORD_BATCH(4),
     ROWS_NOT_SET(0);
     private final int value;
+
     private RowsCase(int value) {
       this.value = value;
     }
@@ -72,32 +93,38 @@ public static RowsCase valueOf(int value) {
 
     public static RowsCase forNumber(int value) {
       switch (value) {
-        case 3: return AVRO_ROWS;
-        case 4: return ARROW_RECORD_BATCH;
-        case 0: return ROWS_NOT_SET;
-        default: return null;
+        case 3:
+          return AVRO_ROWS;
+        case 4:
+          return ARROW_RECORD_BATCH;
+        case 0:
+          return ROWS_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RowsCase
-  getRowsCase() {
-    return RowsCase.forNumber(
-        rowsCase_);
+  public RowsCase getRowsCase() {
+    return RowsCase.forNumber(rowsCase_);
   }
 
   private int schemaCase_ = 0;
   private java.lang.Object schema_;
+
   public enum SchemaCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AVRO_SCHEMA(7),
     ARROW_SCHEMA(8),
     SCHEMA_NOT_SET(0);
     private final int value;
+
     private SchemaCase(int value) {
       this.value = value;
     }
@@ -113,30 +140,36 @@ public static SchemaCase valueOf(int value) {
 
     public static SchemaCase forNumber(int value) {
       switch (value) {
-        case 7: return AVRO_SCHEMA;
-        case 8: return ARROW_SCHEMA;
-        case 0: return SCHEMA_NOT_SET;
-        default: return null;
+        case 7:
+          return AVRO_SCHEMA;
+        case 8:
+          return ARROW_SCHEMA;
+        case 0:
+          return SCHEMA_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SchemaCase
-  getSchemaCase() {
-    return SchemaCase.forNumber(
-        schemaCase_);
+  public SchemaCase getSchemaCase() {
+    return SchemaCase.forNumber(schemaCase_);
   }
 
   public static final int AVRO_ROWS_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; + * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -144,21 +177,26 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** + * + * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; + * * @return The avroRows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroRows getAvroRows() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1.AvroRows.getDefaultInstance(); } /** + * + * *
    * Serialized row data in AVRO format.
    * 
@@ -168,18 +206,21 @@ public com.google.cloud.bigquery.storage.v1.AvroRows getAvroRows() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder getAvroRowsOrBuilder() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1.AvroRows.getDefaultInstance(); } public static final int ARROW_RECORD_BATCH_FIELD_NUMBER = 4; /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; + * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -187,21 +228,26 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; + * * @return The arrowRecordBatch. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getArrowRecordBatch() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_; } return com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance(); } /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
@@ -209,9 +255,10 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getArrowRecordBatch * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder + getArrowRecordBatchOrBuilder() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_; } return com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance(); } @@ -219,11 +266,14 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder getArrowRe public static final int ROW_COUNT_FIELD_NUMBER = 6; private long rowCount_ = 0L; /** + * + * *
    * Number of serialized rows in the rows block.
    * 
* * int64 row_count = 6; + * * @return The rowCount. */ @java.lang.Override @@ -234,11 +284,14 @@ public long getRowCount() { public static final int STATS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1.StreamStats stats_; /** + * + * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; + * * @return Whether the stats field is set. */ @java.lang.Override @@ -246,18 +299,25 @@ public boolean hasStats() { return stats_ != null; } /** + * + * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; + * * @return The stats. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStats getStats() { - return stats_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() : stats_; + return stats_ == null + ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() + : stats_; } /** + * + * *
    * Statistics for the stream.
    * 
@@ -266,18 +326,23 @@ public com.google.cloud.bigquery.storage.v1.StreamStats getStats() { */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder getStatsOrBuilder() { - return stats_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() : stats_; + return stats_ == null + ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() + : stats_; } public static final int THROTTLE_STATE_FIELD_NUMBER = 5; private com.google.cloud.bigquery.storage.v1.ThrottleState throttleState_; /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; + * * @return Whether the throttleState field is set. */ @java.lang.Override @@ -285,19 +350,26 @@ public boolean hasThrottleState() { return throttleState_ != null; } /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; + * * @return The throttleState. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ThrottleState getThrottleState() { - return throttleState_ == null ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() : throttleState_; + return throttleState_ == null + ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() + : throttleState_; } /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
@@ -307,16 +379,23 @@ public com.google.cloud.bigquery.storage.v1.ThrottleState getThrottleState() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder getThrottleStateOrBuilder() {
-    return throttleState_ == null ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() : throttleState_;
+    return throttleState_ == null
+        ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()
+        : throttleState_;
   }
 
   public static final int AVRO_SCHEMA_FIELD_NUMBER = 7;
   /**
+   *
+   *
    * 
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -324,42 +403,56 @@ public boolean hasAvroSchema() { return schemaCase_ == 7; } /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema() { if (schemaCase_ == 7) { - return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { if (schemaCase_ == 7) { - return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } public static final int ARROW_SCHEMA_FIELD_NUMBER = 8; /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -367,36 +460,46 @@ public boolean hasArrowSchema() { return schemaCase_ == 8; } /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema() { if (schemaCase_ == 8) { - return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if (schemaCase_ == 8) { - return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -408,8 +511,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (stats_ != null) { output.writeMessage(2, getStats()); } @@ -441,32 +543,33 @@ public int getSerializedSize() { size = 0; if (stats_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStats()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStats()); } if (rowsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.bigquery.storage.v1.AvroRows) rows_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.bigquery.storage.v1.AvroRows) rows_); } if (rowsCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_); } if (throttleState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getThrottleState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getThrottleState()); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, rowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, rowCount_); } if (schemaCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_); } if (schemaCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -476,34 +579,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadRowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadRowsResponse other = (com.google.cloud.bigquery.storage.v1.ReadRowsResponse) obj; + com.google.cloud.bigquery.storage.v1.ReadRowsResponse other = + (com.google.cloud.bigquery.storage.v1.ReadRowsResponse) obj; - if (getRowCount() - != other.getRowCount()) return false; + if (getRowCount() != other.getRowCount()) return false; if (hasStats() != other.hasStats()) return false; if (hasStats()) { - if (!getStats() - .equals(other.getStats())) return false; + if (!getStats().equals(other.getStats())) return false; } if (hasThrottleState() != other.hasThrottleState()) return false; if (hasThrottleState()) { - if (!getThrottleState() - .equals(other.getThrottleState())) return false; + if (!getThrottleState().equals(other.getThrottleState())) return false; } if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 3: - if (!getAvroRows() - .equals(other.getAvroRows())) return false; + if (!getAvroRows().equals(other.getAvroRows())) return false; break; case 4: - if (!getArrowRecordBatch() - .equals(other.getArrowRecordBatch())) return false; + if (!getArrowRecordBatch().equals(other.getArrowRecordBatch())) return false; break; case 0: default: @@ -511,12 +610,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 7: - if (!getAvroSchema() - .equals(other.getAvroSchema())) return false; + if (!getAvroSchema().equals(other.getAvroSchema())) return false; break; case 8: - if (!getArrowSchema() - .equals(other.getArrowSchema())) return false; + if (!getArrowSchema().equals(other.getArrowSchema())) return false; break; case 0: default: @@ -533,8 +630,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); if (hasStats()) { hash = (37 * hash) + STATS_FIELD_NUMBER; hash = (53 * hash) + getStats().hashCode(); @@ -573,96 +669,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadRowsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.ReadRowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response from calling `ReadRows` may include row data, progress and
    * throttling information.
@@ -670,33 +774,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadRowsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadRowsResponse)
       com.google.cloud.bigquery.storage.v1.ReadRowsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1.ReadRowsResponse.Builder.class);
+              com.google.cloud.bigquery.storage.v1.ReadRowsResponse.class,
+              com.google.cloud.bigquery.storage.v1.ReadRowsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.ReadRowsResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -732,9 +835,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -753,8 +856,11 @@ public com.google.cloud.bigquery.storage.v1.ReadRowsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.ReadRowsResponse buildPartial() {
-      com.google.cloud.bigquery.storage.v1.ReadRowsResponse result = new com.google.cloud.bigquery.storage.v1.ReadRowsResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.storage.v1.ReadRowsResponse result =
+          new com.google.cloud.bigquery.storage.v1.ReadRowsResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -766,36 +872,29 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadRowsResponse
         result.rowCount_ = rowCount_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.stats_ = statsBuilder_ == null
-            ? stats_
-            : statsBuilder_.build();
+        result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.throttleState_ = throttleStateBuilder_ == null
-            ? throttleState_
-            : throttleStateBuilder_.build();
+        result.throttleState_ =
+            throttleStateBuilder_ == null ? throttleState_ : throttleStateBuilder_.build();
       }
     }
 
     private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadRowsResponse result) {
       result.rowsCase_ = rowsCase_;
       result.rows_ = this.rows_;
-      if (rowsCase_ == 3 &&
-          avroRowsBuilder_ != null) {
+      if (rowsCase_ == 3 && avroRowsBuilder_ != null) {
         result.rows_ = avroRowsBuilder_.build();
       }
-      if (rowsCase_ == 4 &&
-          arrowRecordBatchBuilder_ != null) {
+      if (rowsCase_ == 4 && arrowRecordBatchBuilder_ != null) {
         result.rows_ = arrowRecordBatchBuilder_.build();
       }
       result.schemaCase_ = schemaCase_;
       result.schema_ = this.schema_;
-      if (schemaCase_ == 7 &&
-          avroSchemaBuilder_ != null) {
+      if (schemaCase_ == 7 && avroSchemaBuilder_ != null) {
         result.schema_ = avroSchemaBuilder_.build();
       }
-      if (schemaCase_ == 8 &&
-          arrowSchemaBuilder_ != null) {
+      if (schemaCase_ == 8 && arrowSchemaBuilder_ != null) {
         result.schema_ = arrowSchemaBuilder_.build();
       }
     }
@@ -804,38 +903,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadRowsRes
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.ReadRowsResponse) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadRowsResponse)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadRowsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -843,7 +943,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadRowsResponse other) {
-      if (other == com.google.cloud.bigquery.storage.v1.ReadRowsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.storage.v1.ReadRowsResponse.getDefaultInstance())
+        return this;
       if (other.getRowCount() != 0L) {
         setRowCount(other.getRowCount());
       }
@@ -854,30 +955,36 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadRowsResponse o
         mergeThrottleState(other.getThrottleState());
       }
       switch (other.getRowsCase()) {
-        case AVRO_ROWS: {
-          mergeAvroRows(other.getAvroRows());
-          break;
-        }
-        case ARROW_RECORD_BATCH: {
-          mergeArrowRecordBatch(other.getArrowRecordBatch());
-          break;
-        }
-        case ROWS_NOT_SET: {
-          break;
-        }
+        case AVRO_ROWS:
+          {
+            mergeAvroRows(other.getAvroRows());
+            break;
+          }
+        case ARROW_RECORD_BATCH:
+          {
+            mergeArrowRecordBatch(other.getArrowRecordBatch());
+            break;
+          }
+        case ROWS_NOT_SET:
+          {
+            break;
+          }
       }
       switch (other.getSchemaCase()) {
-        case AVRO_SCHEMA: {
-          mergeAvroSchema(other.getAvroSchema());
-          break;
-        }
-        case ARROW_SCHEMA: {
-          mergeArrowSchema(other.getArrowSchema());
-          break;
-        }
-        case SCHEMA_NOT_SET: {
-          break;
-        }
+        case AVRO_SCHEMA:
+          {
+            mergeAvroSchema(other.getAvroSchema());
+            break;
+          }
+        case ARROW_SCHEMA:
+          {
+            mergeArrowSchema(other.getArrowSchema());
+            break;
+          }
+        case SCHEMA_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -905,59 +1012,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              input.readMessage(
-                  getStatsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getAvroRowsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              rowsCase_ = 3;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getArrowRecordBatchFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              rowsCase_ = 4;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getThrottleStateFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 48: {
-              rowCount_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 48
-            case 58: {
-              input.readMessage(
-                  getAvroSchemaFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              schemaCase_ = 7;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getArrowSchemaFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              schemaCase_ = 8;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getAvroRowsFieldBuilder().getBuilder(), extensionRegistry);
+                rowsCase_ = 3;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(
+                    getArrowRecordBatchFieldBuilder().getBuilder(), extensionRegistry);
+                rowsCase_ = 4;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getThrottleStateFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 48:
+              {
+                rowCount_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 48
+            case 58:
+              {
+                input.readMessage(getAvroSchemaFieldBuilder().getBuilder(), extensionRegistry);
+                schemaCase_ = 7;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getArrowSchemaFieldBuilder().getBuilder(), extensionRegistry);
+                schemaCase_ = 8;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -967,12 +1071,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int rowsCase_ = 0;
     private java.lang.Object rows_;
-    public RowsCase
-        getRowsCase() {
-      return RowsCase.forNumber(
-          rowsCase_);
+
+    public RowsCase getRowsCase() {
+      return RowsCase.forNumber(rowsCase_);
     }
 
     public Builder clearRows() {
@@ -984,10 +1088,9 @@ public Builder clearRows() {
 
     private int schemaCase_ = 0;
     private java.lang.Object schema_;
-    public SchemaCase
-        getSchemaCase() {
-      return SchemaCase.forNumber(
-          schemaCase_);
+
+    public SchemaCase getSchemaCase() {
+      return SchemaCase.forNumber(schemaCase_);
     }
 
     public Builder clearSchema() {
@@ -1000,13 +1103,19 @@ public Builder clearSchema() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.AvroRows, com.google.cloud.bigquery.storage.v1.AvroRows.Builder, com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder> avroRowsBuilder_;
+            com.google.cloud.bigquery.storage.v1.AvroRows,
+            com.google.cloud.bigquery.storage.v1.AvroRows.Builder,
+            com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder>
+        avroRowsBuilder_;
     /**
+     *
+     *
      * 
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; + * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -1014,11 +1123,14 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; + * * @return The avroRows. */ @java.lang.Override @@ -1036,6 +1148,8 @@ public com.google.cloud.bigquery.storage.v1.AvroRows getAvroRows() { } } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1056,6 +1170,8 @@ public Builder setAvroRows(com.google.cloud.bigquery.storage.v1.AvroRows value) return this; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1074,6 +1190,8 @@ public Builder setAvroRows( return this; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1082,10 +1200,13 @@ public Builder setAvroRows( */ public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1.AvroRows value) { if (avroRowsBuilder_ == null) { - if (rowsCase_ == 3 && - rows_ != com.google.cloud.bigquery.storage.v1.AvroRows.getDefaultInstance()) { - rows_ = com.google.cloud.bigquery.storage.v1.AvroRows.newBuilder((com.google.cloud.bigquery.storage.v1.AvroRows) rows_) - .mergeFrom(value).buildPartial(); + if (rowsCase_ == 3 + && rows_ != com.google.cloud.bigquery.storage.v1.AvroRows.getDefaultInstance()) { + rows_ = + com.google.cloud.bigquery.storage.v1.AvroRows.newBuilder( + (com.google.cloud.bigquery.storage.v1.AvroRows) rows_) + .mergeFrom(value) + .buildPartial(); } else { rows_ = value; } @@ -1101,6 +1222,8 @@ public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1.AvroRows value return this; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1124,6 +1247,8 @@ public Builder clearAvroRows() { return this; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1134,6 +1259,8 @@ public com.google.cloud.bigquery.storage.v1.AvroRows.Builder getAvroRowsBuilder( return getAvroRowsFieldBuilder().getBuilder(); } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1152,6 +1279,8 @@ public com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder getAvroRowsOrBuild } } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1159,14 +1288,19 @@ public com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder getAvroRowsOrBuild * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroRows, com.google.cloud.bigquery.storage.v1.AvroRows.Builder, com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder> + com.google.cloud.bigquery.storage.v1.AvroRows, + com.google.cloud.bigquery.storage.v1.AvroRows.Builder, + com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder> getAvroRowsFieldBuilder() { if (avroRowsBuilder_ == null) { if (!(rowsCase_ == 3)) { rows_ = com.google.cloud.bigquery.storage.v1.AvroRows.getDefaultInstance(); } - avroRowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroRows, com.google.cloud.bigquery.storage.v1.AvroRows.Builder, com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder>( + avroRowsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AvroRows, + com.google.cloud.bigquery.storage.v1.AvroRows.Builder, + com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder>( (com.google.cloud.bigquery.storage.v1.AvroRows) rows_, getParentForChildren(), isClean()); @@ -1178,13 +1312,19 @@ public com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder getAvroRowsOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder> arrowRecordBatchBuilder_; + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, + com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder> + arrowRecordBatchBuilder_; /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; + * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -1192,11 +1332,14 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; + * * @return The arrowRecordBatch. */ @java.lang.Override @@ -1214,13 +1357,16 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getArrowRecordBatch } } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ - public Builder setArrowRecordBatch(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch value) { + public Builder setArrowRecordBatch( + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1234,6 +1380,8 @@ public Builder setArrowRecordBatch(com.google.cloud.bigquery.storage.v1.ArrowRec return this; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1252,18 +1400,25 @@ public Builder setArrowRecordBatch( return this; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ - public Builder mergeArrowRecordBatch(com.google.cloud.bigquery.storage.v1.ArrowRecordBatch value) { + public Builder mergeArrowRecordBatch( + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { - if (rowsCase_ == 4 && - rows_ != com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance()) { - rows_ = com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.newBuilder((com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_) - .mergeFrom(value).buildPartial(); + if (rowsCase_ == 4 + && rows_ + != com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance()) { + rows_ = + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.newBuilder( + (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_) + .mergeFrom(value) + .buildPartial(); } else { rows_ = value; } @@ -1279,6 +1434,8 @@ public Builder mergeArrowRecordBatch(com.google.cloud.bigquery.storage.v1.ArrowR return this; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1302,16 +1459,21 @@ public Builder clearArrowRecordBatch() { return this; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ - public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder getArrowRecordBatchBuilder() { + public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder + getArrowRecordBatchBuilder() { return getArrowRecordBatchFieldBuilder().getBuilder(); } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1319,7 +1481,8 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder getArrowRec * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder + getArrowRecordBatchOrBuilder() { if ((rowsCase_ == 4) && (arrowRecordBatchBuilder_ != null)) { return arrowRecordBatchBuilder_.getMessageOrBuilder(); } else { @@ -1330,6 +1493,8 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder getArrowRe } } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1337,14 +1502,19 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder getArrowRe * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder> + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, + com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder> getArrowRecordBatchFieldBuilder() { if (arrowRecordBatchBuilder_ == null) { if (!(rowsCase_ == 4)) { rows_ = com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.getDefaultInstance(); } - arrowRecordBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder>( + arrowRecordBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch, + com.google.cloud.bigquery.storage.v1.ArrowRecordBatch.Builder, + com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder>( (com.google.cloud.bigquery.storage.v1.ArrowRecordBatch) rows_, getParentForChildren(), isClean()); @@ -1355,13 +1525,16 @@ public com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder getArrowRe return arrowRecordBatchBuilder_; } - private long rowCount_ ; + private long rowCount_; /** + * + * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; + * * @return The rowCount. */ @java.lang.Override @@ -1369,27 +1542,33 @@ public long getRowCount() { return rowCount_; } /** + * + * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; + * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; + * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -1401,34 +1580,47 @@ public Builder clearRowCount() { private com.google.cloud.bigquery.storage.v1.StreamStats stats_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats, com.google.cloud.bigquery.storage.v1.StreamStats.Builder, com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder> statsBuilder_; + com.google.cloud.bigquery.storage.v1.StreamStats, + com.google.cloud.bigquery.storage.v1.StreamStats.Builder, + com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder> + statsBuilder_; /** + * + * *
      * Statistics for the stream.
      * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; + * * @return Whether the stats field is set. */ public boolean hasStats() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Statistics for the stream.
      * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; + * * @return The stats. */ public com.google.cloud.bigquery.storage.v1.StreamStats getStats() { if (statsBuilder_ == null) { - return stats_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() : stats_; + return stats_ == null + ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() + : stats_; } else { return statsBuilder_.getMessage(); } } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1449,6 +1641,8 @@ public Builder setStats(com.google.cloud.bigquery.storage.v1.StreamStats value) return this; } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1467,6 +1661,8 @@ public Builder setStats( return this; } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1475,9 +1671,9 @@ public Builder setStats( */ public Builder mergeStats(com.google.cloud.bigquery.storage.v1.StreamStats value) { if (statsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - stats_ != null && - stats_ != com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && stats_ != null + && stats_ != com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance()) { getStatsBuilder().mergeFrom(value); } else { stats_ = value; @@ -1490,6 +1686,8 @@ public Builder mergeStats(com.google.cloud.bigquery.storage.v1.StreamStats value return this; } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1507,6 +1705,8 @@ public Builder clearStats() { return this; } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1519,6 +1719,8 @@ public com.google.cloud.bigquery.storage.v1.StreamStats.Builder getStatsBuilder( return getStatsFieldBuilder().getBuilder(); } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1529,11 +1731,14 @@ public com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder getStatsOrBuild if (statsBuilder_ != null) { return statsBuilder_.getMessageOrBuilder(); } else { - return stats_ == null ? - com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() : stats_; + return stats_ == null + ? com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance() + : stats_; } } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1541,14 +1746,17 @@ public com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder getStatsOrBuild * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats, com.google.cloud.bigquery.storage.v1.StreamStats.Builder, com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder> + com.google.cloud.bigquery.storage.v1.StreamStats, + com.google.cloud.bigquery.storage.v1.StreamStats.Builder, + com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder> getStatsFieldBuilder() { if (statsBuilder_ == null) { - statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats, com.google.cloud.bigquery.storage.v1.StreamStats.Builder, com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder>( - getStats(), - getParentForChildren(), - isClean()); + statsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.StreamStats, + com.google.cloud.bigquery.storage.v1.StreamStats.Builder, + com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder>( + getStats(), getParentForChildren(), isClean()); stats_ = null; } return statsBuilder_; @@ -1556,36 +1764,49 @@ public com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder getStatsOrBuild private com.google.cloud.bigquery.storage.v1.ThrottleState throttleState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ThrottleState, com.google.cloud.bigquery.storage.v1.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder> throttleStateBuilder_; + com.google.cloud.bigquery.storage.v1.ThrottleState, + com.google.cloud.bigquery.storage.v1.ThrottleState.Builder, + com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder> + throttleStateBuilder_; /** + * + * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; + * * @return Whether the throttleState field is set. */ public boolean hasThrottleState() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; + * * @return The throttleState. */ public com.google.cloud.bigquery.storage.v1.ThrottleState getThrottleState() { if (throttleStateBuilder_ == null) { - return throttleState_ == null ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() : throttleState_; + return throttleState_ == null + ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() + : throttleState_; } else { return throttleStateBuilder_.getMessage(); } } /** + * + * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1607,6 +1828,8 @@ public Builder setThrottleState(com.google.cloud.bigquery.storage.v1.ThrottleSta
       return this;
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1626,6 +1849,8 @@ public Builder setThrottleState(
       return this;
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1635,9 +1860,10 @@ public Builder setThrottleState(
      */
     public Builder mergeThrottleState(com.google.cloud.bigquery.storage.v1.ThrottleState value) {
       if (throttleStateBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          throttleState_ != null &&
-          throttleState_ != com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && throttleState_ != null
+            && throttleState_
+                != com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()) {
           getThrottleStateBuilder().mergeFrom(value);
         } else {
           throttleState_ = value;
@@ -1650,6 +1876,8 @@ public Builder mergeThrottleState(com.google.cloud.bigquery.storage.v1.ThrottleS
       return this;
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1668,6 +1896,8 @@ public Builder clearThrottleState() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1681,6 +1911,8 @@ public com.google.cloud.bigquery.storage.v1.ThrottleState.Builder getThrottleSta
       return getThrottleStateFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1692,11 +1924,14 @@ public com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder getThrottleSt
       if (throttleStateBuilder_ != null) {
         return throttleStateBuilder_.getMessageOrBuilder();
       } else {
-        return throttleState_ == null ?
-            com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance() : throttleState_;
+        return throttleState_ == null
+            ? com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()
+            : throttleState_;
       }
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1705,27 +1940,38 @@ public com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder getThrottleSt
      * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.ThrottleState, com.google.cloud.bigquery.storage.v1.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder> 
+            com.google.cloud.bigquery.storage.v1.ThrottleState,
+            com.google.cloud.bigquery.storage.v1.ThrottleState.Builder,
+            com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder>
         getThrottleStateFieldBuilder() {
       if (throttleStateBuilder_ == null) {
-        throttleStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.ThrottleState, com.google.cloud.bigquery.storage.v1.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder>(
-                getThrottleState(),
-                getParentForChildren(),
-                isClean());
+        throttleStateBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1.ThrottleState,
+                com.google.cloud.bigquery.storage.v1.ThrottleState.Builder,
+                com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder>(
+                getThrottleState(), getParentForChildren(), isClean());
         throttleState_ = null;
       }
       return throttleStateBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> avroSchemaBuilder_;
+            com.google.cloud.bigquery.storage.v1.AvroSchema,
+            com.google.cloud.bigquery.storage.v1.AvroSchema.Builder,
+            com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder>
+        avroSchemaBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -1733,11 +1979,16 @@ public boolean hasAvroSchema() { return schemaCase_ == 7; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ @java.lang.Override @@ -1755,11 +2006,15 @@ public com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema() { } } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema value) { if (avroSchemaBuilder_ == null) { @@ -1775,11 +2030,15 @@ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema val return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAvroSchema( com.google.cloud.bigquery.storage.v1.AvroSchema.Builder builderForValue) { @@ -1793,18 +2052,25 @@ public Builder setAvroSchema( return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema value) { if (avroSchemaBuilder_ == null) { - if (schemaCase_ == 7 && - schema_ != com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) { - schema_ = com.google.cloud.bigquery.storage.v1.AvroSchema.newBuilder((com.google.cloud.bigquery.storage.v1.AvroSchema) schema_) - .mergeFrom(value).buildPartial(); + if (schemaCase_ == 7 + && schema_ != com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) { + schema_ = + com.google.cloud.bigquery.storage.v1.AvroSchema.newBuilder( + (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -1820,11 +2086,15 @@ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema v return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearAvroSchema() { if (avroSchemaBuilder_ == null) { @@ -1843,21 +2113,29 @@ public Builder clearAvroSchema() { return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1.AvroSchema.Builder getAvroSchemaBuilder() { return getAvroSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { @@ -1871,21 +2149,30 @@ public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrB } } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.AvroSchema, + com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> getAvroSchemaFieldBuilder() { if (avroSchemaBuilder_ == null) { if (!(schemaCase_ == 7)) { schema_ = com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } - avroSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder>( + avroSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AvroSchema, + com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_, getParentForChildren(), isClean()); @@ -1897,13 +2184,21 @@ public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> arrowSchemaBuilder_; + com.google.cloud.bigquery.storage.v1.ArrowSchema, + com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> + arrowSchemaBuilder_; /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -1911,11 +2206,16 @@ public boolean hasArrowSchema() { return schemaCase_ == 8; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ @java.lang.Override @@ -1933,11 +2233,15 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema() { } } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { @@ -1953,11 +2257,15 @@ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema v return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setArrowSchema( com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder builderForValue) { @@ -1971,18 +2279,25 @@ public Builder setArrowSchema( return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { - if (schemaCase_ == 8 && - schema_ != com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance()) { - schema_ = com.google.cloud.bigquery.storage.v1.ArrowSchema.newBuilder((com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_) - .mergeFrom(value).buildPartial(); + if (schemaCase_ == 8 + && schema_ != com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance()) { + schema_ = + com.google.cloud.bigquery.storage.v1.ArrowSchema.newBuilder( + (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -1998,11 +2313,15 @@ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearArrowSchema() { if (arrowSchemaBuilder_ == null) { @@ -2021,21 +2340,29 @@ public Builder clearArrowSchema() { return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder getArrowSchemaBuilder() { return getArrowSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { @@ -2049,21 +2376,30 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaO } } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.ArrowSchema, + com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> getArrowSchemaFieldBuilder() { if (arrowSchemaBuilder_ == null) { if (!(schemaCase_ == 8)) { schema_ = com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } - arrowSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder>( + arrowSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ArrowSchema, + com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_, getParentForChildren(), isClean()); @@ -2073,9 +2409,9 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaO onChanged(); return arrowSchemaBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2085,12 +2421,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadRowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadRowsResponse) private static final com.google.cloud.bigquery.storage.v1.ReadRowsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadRowsResponse(); } @@ -2099,27 +2435,27 @@ public static com.google.cloud.bigquery.storage.v1.ReadRowsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadRowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2134,6 +2470,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ReadRowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java index 547f7fccd0..18a490ad63 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadRowsResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface ReadRowsResponseOrBuilder extends +public interface ReadRowsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadRowsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; + * * @return Whether the avroRows field is set. */ boolean hasAvroRows(); /** + * + * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1.AvroRows avro_rows = 3; + * * @return The avroRows. */ com.google.cloud.bigquery.storage.v1.AvroRows getAvroRows(); /** + * + * *
    * Serialized row data in AVRO format.
    * 
@@ -35,24 +59,32 @@ public interface ReadRowsResponseOrBuilder extends com.google.cloud.bigquery.storage.v1.AvroRowsOrBuilder getAvroRowsOrBuilder(); /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; + * * @return Whether the arrowRecordBatch field is set. */ boolean hasArrowRecordBatch(); /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1.ArrowRecordBatch arrow_record_batch = 4; + * * @return The arrowRecordBatch. */ com.google.cloud.bigquery.storage.v1.ArrowRecordBatch getArrowRecordBatch(); /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
@@ -62,34 +94,45 @@ public interface ReadRowsResponseOrBuilder extends com.google.cloud.bigquery.storage.v1.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder(); /** + * + * *
    * Number of serialized rows in the rows block.
    * 
* * int64 row_count = 6; + * * @return The rowCount. */ long getRowCount(); /** + * + * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; + * * @return Whether the stats field is set. */ boolean hasStats(); /** + * + * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats stats = 2; + * * @return The stats. */ com.google.cloud.bigquery.storage.v1.StreamStats getStats(); /** + * + * *
    * Statistics for the stream.
    * 
@@ -99,26 +142,34 @@ public interface ReadRowsResponseOrBuilder extends com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder getStatsOrBuilder(); /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; + * * @return Whether the throttleState field is set. */ boolean hasThrottleState(); /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1.ThrottleState throttle_state = 5; + * * @return The throttleState. */ com.google.cloud.bigquery.storage.v1.ThrottleState getThrottleState(); /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
@@ -129,56 +180,84 @@ public interface ReadRowsResponseOrBuilder extends
   com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder getThrottleStateOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ boolean hasAvroSchema(); /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema(); /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ boolean hasArrowSchema(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder(); diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java index 706859361b..b334cb75a5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSession.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Information about the ReadSession.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession} */ -public final class ReadSession extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReadSession extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadSession) ReadSessionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadSession.newBuilder() to construct. private ReadSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReadSession() { name_ = ""; dataFormat_ = 0; @@ -29,52 +47,62 @@ private ReadSession() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadSession(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.class, com.google.cloud.bigquery.storage.v1.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.class, + com.google.cloud.bigquery.storage.v1.ReadSession.Builder.class); } - public interface TableModifiersOrBuilder extends + public interface TableModifiersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return Whether the snapshotTime field is set. */ boolean hasSnapshotTime(); /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return The snapshotTime. */ com.google.protobuf.Timestamp getSnapshotTime(); /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -84,57 +112,63 @@ public interface TableModifiersOrBuilder extends com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder(); } /** + * + * *
    * Additional attributes when reading a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession.TableModifiers} */ - public static final class TableModifiers extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TableModifiers extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) TableModifiersOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableModifiers.newBuilder() to construct. private TableModifiers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableModifiers() { - } + + private TableModifiers() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableModifiers(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.class, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.class, + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder.class); } public static final int SNAPSHOT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp snapshotTime_; /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return Whether the snapshotTime field is set. */ @java.lang.Override @@ -142,18 +176,25 @@ public boolean hasSnapshotTime() { return snapshotTime_ != null; } /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return The snapshotTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSnapshotTime() { - return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -162,10 +203,13 @@ public com.google.protobuf.Timestamp getSnapshotTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { - return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +221,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (snapshotTime_ != null) { output.writeMessage(1, getSnapshotTime()); } @@ -192,8 +235,7 @@ public int getSerializedSize() { size = 0; if (snapshotTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSnapshotTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshotTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -203,17 +245,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers other = (com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) obj; + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers other = + (com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) obj; if (hasSnapshotTime() != other.hasSnapshotTime()) return false; if (hasSnapshotTime()) { - if (!getSnapshotTime() - .equals(other.getSnapshotTime())) return false; + if (!getSnapshotTime().equals(other.getSnapshotTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -236,87 +278,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -326,39 +376,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Additional attributes when reading a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession.TableModifiers} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.class, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.class, + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -372,13 +425,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance(); } @@ -393,18 +447,21 @@ public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers buildPartial() { - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers result = new com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers result = + new com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.snapshotTime_ = snapshotTimeBuilder_ == null - ? snapshotTime_ - : snapshotTimeBuilder_.build(); + result.snapshotTime_ = + snapshotTimeBuilder_ == null ? snapshotTime_ : snapshotTimeBuilder_.build(); } } @@ -412,46 +469,52 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession.Tabl public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers other) { - if (other == com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers other) { + if (other + == com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance()) + return this; if (other.hasSnapshotTime()) { mergeSnapshotTime(other.getSnapshotTime()); } @@ -481,19 +544,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSnapshotTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSnapshotTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -503,38 +566,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp snapshotTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> snapshotTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + snapshotTimeBuilder_; /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return Whether the snapshotTime field is set. */ public boolean hasSnapshotTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return The snapshotTime. */ public com.google.protobuf.Timestamp getSnapshotTime() { if (snapshotTimeBuilder_ == null) { - return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } else { return snapshotTimeBuilder_.getMessage(); } } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -555,14 +632,15 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; */ - public Builder setSnapshotTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (snapshotTimeBuilder_ == null) { snapshotTime_ = builderForValue.build(); } else { @@ -573,6 +651,8 @@ public Builder setSnapshotTime( return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -581,9 +661,9 @@ public Builder setSnapshotTime( */ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { if (snapshotTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - snapshotTime_ != null && - snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && snapshotTime_ != null + && snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSnapshotTimeBuilder().mergeFrom(value); } else { snapshotTime_ = value; @@ -596,6 +676,8 @@ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -613,6 +695,8 @@ public Builder clearSnapshotTime() { return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -625,6 +709,8 @@ public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { return getSnapshotTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -635,11 +721,14 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { if (snapshotTimeBuilder_ != null) { return snapshotTimeBuilder_.getMessageOrBuilder(); } else { - return snapshotTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -647,18 +736,22 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { * .google.protobuf.Timestamp snapshot_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSnapshotTimeFieldBuilder() { if (snapshotTimeBuilder_ == null) { - snapshotTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSnapshotTime(), - getParentForChildren(), - isClean()); + snapshotTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSnapshotTime(), getParentForChildren(), isClean()); snapshotTime_ = null; } return snapshotTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -671,41 +764,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadSession.TableModifiers) - private static final com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers(); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableModifiers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableModifiers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -717,17 +813,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TableReadOptionsOrBuilder extends + public interface TableReadOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -771,11 +870,13 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @return A list containing the selectedFields. */ - java.util.List - getSelectedFieldsList(); + java.util.List getSelectedFieldsList(); /** + * + * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -819,10 +920,13 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @return The count of selectedFields. */ int getSelectedFieldsCount(); /** + * + * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -866,11 +970,14 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the element to return. * @return The selectedFields at the given index. */ java.lang.String getSelectedFields(int index); /** + * + * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -914,13 +1021,15 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - com.google.protobuf.ByteString - getSelectedFieldsBytes(int index); + com.google.protobuf.ByteString getSelectedFieldsBytes(int index); /** + * + * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -933,10 +1042,13 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * string row_restriction = 2; + * * @return The rowRestriction. */ java.lang.String getRowRestriction(); /** + * + * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -949,83 +1061,118 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * string row_restriction = 2; + * * @return The bytes for rowRestriction. */ - com.google.protobuf.ByteString - getRowRestrictionBytes(); + com.google.protobuf.ByteString getRowRestrictionBytes(); /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrowSerializationOptions field is set. */ boolean hasArrowSerializationOptions(); /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrowSerializationOptions. */ com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getArrowSerializationOptions(); /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder(); /** + * + * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the avroSerializationOptions field is set. */ boolean hasAvroSerializationOptions(); /** + * + * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The avroSerializationOptions. */ com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getAvroSerializationOptions(); /** + * + * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder getAvroSerializationOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder + getAvroSerializationOptionsOrBuilder(); - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase(); + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions + .OutputFormatSerializationOptionsCase + getOutputFormatSerializationOptionsCase(); } /** + * + * *
    * Options dictating how we read a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions} */ - public static final class TableReadOptions extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TableReadOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) TableReadOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableReadOptions.newBuilder() to construct. private TableReadOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableReadOptions() { selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; rowRestriction_ = ""; @@ -1033,38 +1180,42 @@ private TableReadOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableReadOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.class, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.class, + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder.class); } private int outputFormatSerializationOptionsCase_ = 0; private java.lang.Object outputFormatSerializationOptions_; + public enum OutputFormatSerializationOptionsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ARROW_SERIALIZATION_OPTIONS(3), AVRO_SERIALIZATION_OPTIONS(4), OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET(0); private final int value; + private OutputFormatSerializationOptionsCase(int value) { this.value = value; } @@ -1080,27 +1231,33 @@ public static OutputFormatSerializationOptionsCase valueOf(int value) { public static OutputFormatSerializationOptionsCase forNumber(int value) { switch (value) { - case 3: return ARROW_SERIALIZATION_OPTIONS; - case 4: return AVRO_SERIALIZATION_OPTIONS; - case 0: return OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET; - default: return null; + case 3: + return ARROW_SERIALIZATION_OPTIONS; + case 4: + return AVRO_SERIALIZATION_OPTIONS; + case 0: + return OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public OutputFormatSerializationOptionsCase - getOutputFormatSerializationOptionsCase() { - return OutputFormatSerializationOptionsCase.forNumber( - outputFormatSerializationOptionsCase_); + public OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase() { + return OutputFormatSerializationOptionsCase.forNumber(outputFormatSerializationOptionsCase_); } public static final int SELECTED_FIELDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList selectedFields_; /** + * + * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -1144,13 +1301,15 @@ public int getNumber() {
      * 
* * repeated string selected_fields = 1; + * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList - getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { return selectedFields_; } /** + * + * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -1194,12 +1353,15 @@ public int getNumber() {
      * 
* * repeated string selected_fields = 1; + * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** + * + * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -1243,6 +1405,7 @@ public int getSelectedFieldsCount() {
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -1250,6 +1413,8 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** + * + * *
      * Optional. The names of the fields in the table to be returned. If no
      * field names are specified, then all fields in the table are returned.
@@ -1293,18 +1458,21 @@ public java.lang.String getSelectedFields(int index) {
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString - getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } public static final int ROW_RESTRICTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object rowRestriction_ = ""; /** + * + * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -1317,6 +1485,7 @@ public java.lang.String getSelectedFields(int index) {
      * 
* * string row_restriction = 2; + * * @return The rowRestriction. */ @java.lang.Override @@ -1325,14 +1494,15 @@ public java.lang.String getRowRestriction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; } } /** + * + * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -1345,16 +1515,15 @@ public java.lang.String getRowRestriction() {
      * 
* * string row_restriction = 2; + * * @return The bytes for rowRestriction. */ @java.lang.Override - public com.google.protobuf.ByteString - getRowRestrictionBytes() { + public com.google.protobuf.ByteString getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -1364,11 +1533,16 @@ public java.lang.String getRowRestriction() { public static final int ARROW_SERIALIZATION_OPTIONS_FIELD_NUMBER = 3; /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrowSerializationOptions field is set. */ @java.lang.Override @@ -1376,42 +1550,60 @@ public boolean hasArrowSerializationOptions() { return outputFormatSerializationOptionsCase_ == 3; } /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrowSerializationOptions. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getArrowSerializationOptions() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + getArrowSerializationOptions() { if (outputFormatSerializationOptionsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder() { if (outputFormatSerializationOptionsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } public static final int AVRO_SERIALIZATION_OPTIONS_FIELD_NUMBER = 4; /** + * + * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the avroSerializationOptions field is set. */ @java.lang.Override @@ -1419,36 +1611,50 @@ public boolean hasAvroSerializationOptions() { return outputFormatSerializationOptionsCase_ == 4; } /** + * + * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The avroSerializationOptions. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getAvroSerializationOptions() { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions + getAvroSerializationOptions() { if (outputFormatSerializationOptionsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) + outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } /** + * + * *
      * Optional. Options specific to the Apache Avro output format
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder getAvroSerializationOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder + getAvroSerializationOptionsOrBuilder() { if (outputFormatSerializationOptionsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) + outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1460,8 +1666,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < selectedFields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectedFields_.getRaw(i)); } @@ -1469,10 +1674,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rowRestriction_); } if (outputFormatSerializationOptionsCase_ == 3) { - output.writeMessage(3, (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_); + output.writeMessage( + 3, + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_); } if (outputFormatSerializationOptionsCase_ == 4) { - output.writeMessage(4, (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_); + output.writeMessage( + 4, + (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) + outputFormatSerializationOptions_); } getUnknownFields().writeTo(output); } @@ -1495,12 +1706,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rowRestriction_); } if (outputFormatSerializationOptionsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_); } if (outputFormatSerializationOptionsCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) + outputFormatSerializationOptions_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1510,26 +1727,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions other = (com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) obj; + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions other = + (com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) obj; - if (!getSelectedFieldsList() - .equals(other.getSelectedFieldsList())) return false; - if (!getRowRestriction() - .equals(other.getRowRestriction())) return false; - if (!getOutputFormatSerializationOptionsCase().equals(other.getOutputFormatSerializationOptionsCase())) return false; + if (!getSelectedFieldsList().equals(other.getSelectedFieldsList())) return false; + if (!getRowRestriction().equals(other.getRowRestriction())) return false; + if (!getOutputFormatSerializationOptionsCase() + .equals(other.getOutputFormatSerializationOptionsCase())) return false; switch (outputFormatSerializationOptionsCase_) { case 3: - if (!getArrowSerializationOptions() - .equals(other.getArrowSerializationOptions())) return false; + if (!getArrowSerializationOptions().equals(other.getArrowSerializationOptions())) + return false; break; case 4: - if (!getAvroSerializationOptions() - .equals(other.getAvroSerializationOptions())) return false; + if (!getAvroSerializationOptions().equals(other.getAvroSerializationOptions())) + return false; break; case 0: default: @@ -1569,87 +1786,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1659,39 +1884,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Options dictating how we read a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.class, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.class, + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1711,14 +1939,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions + .getDefaultInstance(); } @java.lang.Override @@ -1732,15 +1962,19 @@ public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions build() @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions buildPartial() { - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result = new com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions(this); + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result = + new com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { if (((bitField0_ & 0x00000001) != 0)) { selectedFields_ = selectedFields_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -1748,22 +1982,24 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.Rea result.selectedFields_ = selectedFields_; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.rowRestriction_ = rowRestriction_; } } - private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { + private void buildPartialOneofs( + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions result) { result.outputFormatSerializationOptionsCase_ = outputFormatSerializationOptionsCase_; result.outputFormatSerializationOptions_ = this.outputFormatSerializationOptions_; - if (outputFormatSerializationOptionsCase_ == 3 && - arrowSerializationOptionsBuilder_ != null) { + if (outputFormatSerializationOptionsCase_ == 3 + && arrowSerializationOptionsBuilder_ != null) { result.outputFormatSerializationOptions_ = arrowSerializationOptionsBuilder_.build(); } - if (outputFormatSerializationOptionsCase_ == 4 && - avroSerializationOptionsBuilder_ != null) { + if (outputFormatSerializationOptionsCase_ == 4 + && avroSerializationOptionsBuilder_ != null) { result.outputFormatSerializationOptions_ = avroSerializationOptionsBuilder_.build(); } } @@ -1772,46 +2008,53 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadSession public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions other) { - if (other == com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions other) { + if (other + == com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions + .getDefaultInstance()) return this; if (!other.selectedFields_.isEmpty()) { if (selectedFields_.isEmpty()) { selectedFields_ = other.selectedFields_; @@ -1828,17 +2071,20 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession.TableR onChanged(); } switch (other.getOutputFormatSerializationOptionsCase()) { - case ARROW_SERIALIZATION_OPTIONS: { - mergeArrowSerializationOptions(other.getArrowSerializationOptions()); - break; - } - case AVRO_SERIALIZATION_OPTIONS: { - mergeAvroSerializationOptions(other.getAvroSerializationOptions()); - break; - } - case OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET: { - break; - } + case ARROW_SERIALIZATION_OPTIONS: + { + mergeArrowSerializationOptions(other.getArrowSerializationOptions()); + break; + } + case AVRO_SERIALIZATION_OPTIONS: + { + mergeAvroSerializationOptions(other.getAvroSerializationOptions()); + break; + } + case OUTPUTFORMATSERIALIZATIONOPTIONS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1866,37 +2112,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSelectedFieldsIsMutable(); - selectedFields_.add(s); - break; - } // case 10 - case 18: { - rowRestriction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getArrowSerializationOptionsFieldBuilder().getBuilder(), - extensionRegistry); - outputFormatSerializationOptionsCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getAvroSerializationOptionsFieldBuilder().getBuilder(), - extensionRegistry); - outputFormatSerializationOptionsCase_ = 4; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSelectedFieldsIsMutable(); + selectedFields_.add(s); + break; + } // case 10 + case 18: + { + rowRestriction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getArrowSerializationOptionsFieldBuilder().getBuilder(), extensionRegistry); + outputFormatSerializationOptionsCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getAvroSerializationOptionsFieldBuilder().getBuilder(), extensionRegistry); + outputFormatSerializationOptionsCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1906,10 +2155,11 @@ public Builder mergeFrom( } // finally return this; } + private int outputFormatSerializationOptionsCase_ = 0; private java.lang.Object outputFormatSerializationOptions_; - public OutputFormatSerializationOptionsCase - getOutputFormatSerializationOptionsCase() { + + public OutputFormatSerializationOptionsCase getOutputFormatSerializationOptionsCase() { return OutputFormatSerializationOptionsCase.forNumber( outputFormatSerializationOptionsCase_); } @@ -1923,14 +2173,18 @@ public Builder clearOutputFormatSerializationOptions() { private int bitField0_; - private com.google.protobuf.LazyStringList selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList selectedFields_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSelectedFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { selectedFields_ = new com.google.protobuf.LazyStringArrayList(selectedFields_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -1974,13 +2228,15 @@ private void ensureSelectedFieldsIsMutable() {
        * 
* * repeated string selected_fields = 1; + * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList - getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { return selectedFields_.getUnmodifiableView(); } /** + * + * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2024,12 +2280,15 @@ private void ensureSelectedFieldsIsMutable() {
        * 
* * repeated string selected_fields = 1; + * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** + * + * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2073,6 +2332,7 @@ public int getSelectedFieldsCount() {
        * 
* * repeated string selected_fields = 1; + * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -2080,6 +2340,8 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** + * + * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2123,14 +2385,16 @@ public java.lang.String getSelectedFields(int index) {
        * 
* * repeated string selected_fields = 1; + * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString - getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } /** + * + * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2174,19 +2438,23 @@ public java.lang.String getSelectedFields(int index) {
        * 
* * repeated string selected_fields = 1; + * * @param index The index to set the value at. * @param value The selectedFields to set. * @return This builder for chaining. */ - public Builder setSelectedFields( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSelectedFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSelectedFieldsIsMutable(); selectedFields_.set(index, value); onChanged(); return this; } /** + * + * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2230,18 +2498,22 @@ public Builder setSelectedFields(
        * 
* * repeated string selected_fields = 1; + * * @param value The selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFields( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSelectedFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSelectedFieldsIsMutable(); selectedFields_.add(value); onChanged(); return this; } /** + * + * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2285,18 +2557,19 @@ public Builder addSelectedFields(
        * 
* * repeated string selected_fields = 1; + * * @param values The selectedFields to add. * @return This builder for chaining. */ - public Builder addAllSelectedFields( - java.lang.Iterable values) { + public Builder addAllSelectedFields(java.lang.Iterable values) { ensureSelectedFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, selectedFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectedFields_); onChanged(); return this; } /** + * + * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2340,6 +2613,7 @@ public Builder addAllSelectedFields(
        * 
* * repeated string selected_fields = 1; + * * @return This builder for chaining. */ public Builder clearSelectedFields() { @@ -2349,6 +2623,8 @@ public Builder clearSelectedFields() { return this; } /** + * + * *
        * Optional. The names of the fields in the table to be returned. If no
        * field names are specified, then all fields in the table are returned.
@@ -2392,12 +2668,14 @@ public Builder clearSelectedFields() {
        * 
* * repeated string selected_fields = 1; + * * @param value The bytes of the selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSelectedFieldsIsMutable(); selectedFields_.add(value); @@ -2407,6 +2685,8 @@ public Builder addSelectedFieldsBytes( private java.lang.Object rowRestriction_ = ""; /** + * + * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -2419,13 +2699,13 @@ public Builder addSelectedFieldsBytes(
        * 
* * string row_restriction = 2; + * * @return The rowRestriction. */ public java.lang.String getRowRestriction() { java.lang.Object ref = rowRestriction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; @@ -2434,6 +2714,8 @@ public java.lang.String getRowRestriction() { } } /** + * + * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -2446,15 +2728,14 @@ public java.lang.String getRowRestriction() {
        * 
* * string row_restriction = 2; + * * @return The bytes for rowRestriction. */ - public com.google.protobuf.ByteString - getRowRestrictionBytes() { + public com.google.protobuf.ByteString getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -2462,6 +2743,8 @@ public java.lang.String getRowRestriction() { } } /** + * + * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -2474,18 +2757,22 @@ public java.lang.String getRowRestriction() {
        * 
* * string row_restriction = 2; + * * @param value The rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestriction( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRowRestriction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } rowRestriction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -2498,6 +2785,7 @@ public Builder setRowRestriction(
        * 
* * string row_restriction = 2; + * * @return This builder for chaining. */ public Builder clearRowRestriction() { @@ -2507,6 +2795,8 @@ public Builder clearRowRestriction() { return this; } /** + * + * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -2519,12 +2809,14 @@ public Builder clearRowRestriction() {
        * 
* * string row_restriction = 2; + * * @param value The bytes for rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestrictionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRowRestrictionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); rowRestriction_ = value; bitField0_ |= 0x00000002; @@ -2533,13 +2825,21 @@ public Builder setRowRestrictionBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> arrowSerializationOptionsBuilder_; + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> + arrowSerializationOptionsBuilder_; /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrowSerializationOptions field is set. */ @java.lang.Override @@ -2547,35 +2847,49 @@ public boolean hasArrowSerializationOptions() { return outputFormatSerializationOptionsCase_ == 3; } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrowSerializationOptions. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions getArrowSerializationOptions() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + getArrowSerializationOptions() { if (arrowSerializationOptionsBuilder_ == null) { if (outputFormatSerializationOptionsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; } - return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + .getDefaultInstance(); } else { if (outputFormatSerializationOptionsCase_ == 3) { return arrowSerializationOptionsBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + .getDefaultInstance(); } } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setArrowSerializationOptions(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { + public Builder setArrowSerializationOptions( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { if (arrowSerializationOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2589,11 +2903,15 @@ public Builder setArrowSerializationOptions(com.google.cloud.bigquery.storage.v1 return this; } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setArrowSerializationOptions( com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder builderForValue) { @@ -2607,18 +2925,29 @@ public Builder setArrowSerializationOptions( return this; } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeArrowSerializationOptions(com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { + public Builder mergeArrowSerializationOptions( + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions value) { if (arrowSerializationOptionsBuilder_ == null) { - if (outputFormatSerializationOptionsCase_ == 3 && - outputFormatSerializationOptions_ != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance()) { - outputFormatSerializationOptions_ = com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.newBuilder((com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_) - .mergeFrom(value).buildPartial(); + if (outputFormatSerializationOptionsCase_ == 3 + && outputFormatSerializationOptions_ + != com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + .getDefaultInstance()) { + outputFormatSerializationOptions_ = + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.newBuilder( + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_) + .mergeFrom(value) + .buildPartial(); } else { outputFormatSerializationOptions_ = value; } @@ -2634,11 +2963,15 @@ public Builder mergeArrowSerializationOptions(com.google.cloud.bigquery.storage. return this; } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearArrowSerializationOptions() { if (arrowSerializationOptionsBuilder_ == null) { @@ -2657,50 +2990,74 @@ public Builder clearArrowSerializationOptions() { return this; } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder getArrowSerializationOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder + getArrowSerializationOptionsBuilder() { return getArrowSerializationOptionsFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder() { - if ((outputFormatSerializationOptionsCase_ == 3) && (arrowSerializationOptionsBuilder_ != null)) { + public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder() { + if ((outputFormatSerializationOptionsCase_ == 3) + && (arrowSerializationOptionsBuilder_ != null)) { return arrowSerializationOptionsBuilder_.getMessageOrBuilder(); } else { if (outputFormatSerializationOptionsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_; } - return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions + .getDefaultInstance(); } } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder> getArrowSerializationOptionsFieldBuilder() { if (arrowSerializationOptionsBuilder_ == null) { if (!(outputFormatSerializationOptionsCase_ == 3)) { - outputFormatSerializationOptions_ = com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); + outputFormatSerializationOptions_ = + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.getDefaultInstance(); } - arrowSerializationOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder>( - (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) outputFormatSerializationOptions_, + arrowSerializationOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder>( + (com.google.cloud.bigquery.storage.v1.ArrowSerializationOptions) + outputFormatSerializationOptions_, getParentForChildren(), isClean()); outputFormatSerializationOptions_ = null; @@ -2711,13 +3068,21 @@ public com.google.cloud.bigquery.storage.v1.ArrowSerializationOptionsOrBuilder g } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder> avroSerializationOptionsBuilder_; + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder> + avroSerializationOptionsBuilder_; /** + * + * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the avroSerializationOptions field is set. */ @java.lang.Override @@ -2725,18 +3090,25 @@ public boolean hasAvroSerializationOptions() { return outputFormatSerializationOptionsCase_ == 4; } /** + * + * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The avroSerializationOptions. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getAvroSerializationOptions() { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions + getAvroSerializationOptions() { if (avroSerializationOptionsBuilder_ == null) { if (outputFormatSerializationOptionsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) + outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } else { @@ -2747,13 +3119,18 @@ public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions getAvroSeri } } /** + * + * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAvroSerializationOptions(com.google.cloud.bigquery.storage.v1.AvroSerializationOptions value) { + public Builder setAvroSerializationOptions( + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions value) { if (avroSerializationOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2767,11 +3144,15 @@ public Builder setAvroSerializationOptions(com.google.cloud.bigquery.storage.v1. return this; } /** + * + * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAvroSerializationOptions( com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder builderForValue) { @@ -2785,18 +3166,29 @@ public Builder setAvroSerializationOptions( return this; } /** + * + * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAvroSerializationOptions(com.google.cloud.bigquery.storage.v1.AvroSerializationOptions value) { + public Builder mergeAvroSerializationOptions( + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions value) { if (avroSerializationOptionsBuilder_ == null) { - if (outputFormatSerializationOptionsCase_ == 4 && - outputFormatSerializationOptions_ != com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance()) { - outputFormatSerializationOptions_ = com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.newBuilder((com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_) - .mergeFrom(value).buildPartial(); + if (outputFormatSerializationOptionsCase_ == 4 + && outputFormatSerializationOptions_ + != com.google.cloud.bigquery.storage.v1.AvroSerializationOptions + .getDefaultInstance()) { + outputFormatSerializationOptions_ = + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.newBuilder( + (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) + outputFormatSerializationOptions_) + .mergeFrom(value) + .buildPartial(); } else { outputFormatSerializationOptions_ = value; } @@ -2812,11 +3204,15 @@ public Builder mergeAvroSerializationOptions(com.google.cloud.bigquery.storage.v return this; } /** + * + * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAvroSerializationOptions() { if (avroSerializationOptionsBuilder_ == null) { @@ -2835,50 +3231,73 @@ public Builder clearAvroSerializationOptions() { return this; } /** + * + * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder getAvroSerializationOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder + getAvroSerializationOptionsBuilder() { return getAvroSerializationOptionsFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder getAvroSerializationOptionsOrBuilder() { - if ((outputFormatSerializationOptionsCase_ == 4) && (avroSerializationOptionsBuilder_ != null)) { + public com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder + getAvroSerializationOptionsOrBuilder() { + if ((outputFormatSerializationOptionsCase_ == 4) + && (avroSerializationOptionsBuilder_ != null)) { return avroSerializationOptionsBuilder_.getMessageOrBuilder(); } else { if (outputFormatSerializationOptionsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_; + return (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) + outputFormatSerializationOptions_; } return com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } } /** + * + * *
        * Optional. Options specific to the Apache Avro output format
        * 
* - * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.AvroSerializationOptions avro_serialization_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder> getAvroSerializationOptionsFieldBuilder() { if (avroSerializationOptionsBuilder_ == null) { if (!(outputFormatSerializationOptionsCase_ == 4)) { - outputFormatSerializationOptions_ = com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); + outputFormatSerializationOptions_ = + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.getDefaultInstance(); } - avroSerializationOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder>( - (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) outputFormatSerializationOptions_, + avroSerializationOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions, + com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder>( + (com.google.cloud.bigquery.storage.v1.AvroSerializationOptions) + outputFormatSerializationOptions_, getParentForChildren(), isClean()); outputFormatSerializationOptions_ = null; @@ -2887,6 +3306,7 @@ public com.google.cloud.bigquery.storage.v1.AvroSerializationOptionsOrBuilder ge onChanged(); return avroSerializationOptionsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2899,41 +3319,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions) - private static final com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions(); } - public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableReadOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableReadOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2945,21 +3368,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int schemaCase_ = 0; private java.lang.Object schema_; + public enum SchemaCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AVRO_SCHEMA(4), ARROW_SCHEMA(5), SCHEMA_NOT_SET(0); private final int value; + private SchemaCase(int value) { this.value = value; } @@ -2975,33 +3401,40 @@ public static SchemaCase valueOf(int value) { public static SchemaCase forNumber(int value) { switch (value) { - case 4: return AVRO_SCHEMA; - case 5: return ARROW_SCHEMA; - case 0: return SCHEMA_NOT_SET; - default: return null; + case 4: + return AVRO_SCHEMA; + case 5: + return ARROW_SCHEMA; + case 0: + return SCHEMA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SchemaCase - getSchemaCase() { - return SchemaCase.forNumber( - schemaCase_); + public SchemaCase getSchemaCase() { + return SchemaCase.forNumber(schemaCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -3010,30 +3443,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3044,6 +3477,8 @@ public java.lang.String getName() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -3051,7 +3486,9 @@ public java.lang.String getName() {
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -3059,6 +3496,8 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -3066,7 +3505,9 @@ public boolean hasExpireTime() {
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -3074,6 +3515,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -3081,7 +3524,8 @@ public com.google.protobuf.Timestamp getExpireTime() {
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -3091,38 +3535,56 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int DATA_FORMAT_FIELD_NUMBER = 3; private int dataFormat_ = 0; /** + * + * *
    * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
    * supported.
    * 
* - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override public int getDataFormatValue() { + @java.lang.Override + public int getDataFormatValue() { return dataFormat_; } /** + * + * *
    * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
    * supported.
    * 
* - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The dataFormat. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1.DataFormat getDataFormat() { - com.google.cloud.bigquery.storage.v1.DataFormat result = com.google.cloud.bigquery.storage.v1.DataFormat.forNumber(dataFormat_); + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.DataFormat getDataFormat() { + com.google.cloud.bigquery.storage.v1.DataFormat result = + com.google.cloud.bigquery.storage.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.bigquery.storage.v1.DataFormat.UNRECOGNIZED : result; } public static final int AVRO_SCHEMA_FIELD_NUMBER = 4; /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -3130,42 +3592,56 @@ public boolean hasAvroSchema() { return schemaCase_ == 4; } /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema() { if (schemaCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { if (schemaCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } public static final int ARROW_SCHEMA_FIELD_NUMBER = 5; /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -3173,45 +3649,60 @@ public boolean hasArrowSchema() { return schemaCase_ == 5; } /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } public static final int TABLE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** + * + * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
    * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The table. */ @java.lang.Override @@ -3220,30 +3711,32 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
    * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -3254,12 +3747,17 @@ public java.lang.String getTable() { public static final int TABLE_MODIFIERS_FIELD_NUMBER = 7; private com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers tableModifiers_; /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tableModifiers field is set. */ @java.lang.Override @@ -3267,39 +3765,58 @@ public boolean hasTableModifiers() { return tableModifiers_ != null; } /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tableModifiers. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getTableModifiers() { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() + : tableModifiers_; } /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder() { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; + public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder + getTableModifiersOrBuilder() { + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() + : tableModifiers_; } public static final int READ_OPTIONS_FIELD_NUMBER = 8; private com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions readOptions_; /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readOptions field is set. */ @java.lang.Override @@ -3307,33 +3824,50 @@ public boolean hasReadOptions() { return readOptions_ != null; } /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readOptions. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getReadOptions() { - return readOptions_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() + : readOptions_; } /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { - return readOptions_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder + getReadOptionsOrBuilder() { + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() + : readOptions_; } public static final int STREAMS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List streams_; /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -3342,13 +3876,17 @@ public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilde
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getStreamsList() { return streams_; } /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -3357,14 +3895,18 @@ public java.util.List getStream
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getStreamsOrBuilderList() { return streams_; } /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -3373,13 +3915,17 @@ public java.util.List getStream
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getStreamsCount() { return streams_.size(); } /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -3388,13 +3934,17 @@ public int getStreamsCount() {
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index) { return streams_.get(index); } /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -3403,24 +3953,29 @@ public com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index) {
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder( - int index) { + public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder(int index) { return streams_.get(index); } public static final int ESTIMATED_TOTAL_BYTES_SCANNED_FIELD_NUMBER = 12; private long estimatedTotalBytesScanned_ = 0L; /** + * + * *
    * Output only. An estimate on the number of bytes this session will scan when
    * all streams are completely consumed. This estimate is based on
    * metadata from the table which might be incomplete or stale.
    * 
* - * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The estimatedTotalBytesScanned. */ @java.lang.Override @@ -3431,6 +3986,8 @@ public long getEstimatedTotalBytesScanned() { public static final int ESTIMATED_ROW_COUNT_FIELD_NUMBER = 14; private long estimatedRowCount_ = 0L; /** + * + * *
    * Output only. An estimate on the number of rows present in this session's
    * streams. This estimate is based on metadata from the table which might be
@@ -3438,6 +3995,7 @@ public long getEstimatedTotalBytesScanned() {
    * 
* * int64 estimated_row_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The estimatedRowCount. */ @java.lang.Override @@ -3446,9 +4004,12 @@ public long getEstimatedRowCount() { } public static final int TRACE_ID_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object traceId_ = ""; /** + * + * *
    * Optional. ID set by client to annotate a session identity.  This does not
    * need to be strictly unique, but instead the same ID should be used to group
@@ -3458,6 +4019,7 @@ public long getEstimatedRowCount() {
    * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The traceId. */ @java.lang.Override @@ -3466,14 +4028,15 @@ public java.lang.String getTraceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; } } /** + * + * *
    * Optional. ID set by client to annotate a session identity.  This does not
    * need to be strictly unique, but instead the same ID should be used to group
@@ -3483,16 +4046,15 @@ public java.lang.String getTraceId() {
    * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for traceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTraceIdBytes() { + public com.google.protobuf.ByteString getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); traceId_ = b; return b; } else { @@ -3501,6 +4063,7 @@ public java.lang.String getTraceId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3512,15 +4075,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (expireTime_ != null) { output.writeMessage(2, getExpireTime()); } - if (dataFormat_ != com.google.cloud.bigquery.storage.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + if (dataFormat_ + != com.google.cloud.bigquery.storage.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(3, dataFormat_); } if (schemaCase_ == 4) { @@ -3563,46 +4126,43 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } - if (dataFormat_ != com.google.cloud.bigquery.storage.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, dataFormat_); + if (dataFormat_ + != com.google.cloud.bigquery.storage.v1.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, dataFormat_); } if (schemaCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_); } if (schemaCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, table_); } if (tableModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTableModifiers()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTableModifiers()); } if (readOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getReadOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReadOptions()); } for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, streams_.get(i)); } if (estimatedTotalBytesScanned_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(12, estimatedTotalBytesScanned_); + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(12, estimatedTotalBytesScanned_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, traceId_); } if (estimatedRowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, estimatedRowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, estimatedRowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3612,50 +4172,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadSession)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadSession other = (com.google.cloud.bigquery.storage.v1.ReadSession) obj; + com.google.cloud.bigquery.storage.v1.ReadSession other = + (com.google.cloud.bigquery.storage.v1.ReadSession) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } if (dataFormat_ != other.dataFormat_) return false; - if (!getTable() - .equals(other.getTable())) return false; + if (!getTable().equals(other.getTable())) return false; if (hasTableModifiers() != other.hasTableModifiers()) return false; if (hasTableModifiers()) { - if (!getTableModifiers() - .equals(other.getTableModifiers())) return false; + if (!getTableModifiers().equals(other.getTableModifiers())) return false; } if (hasReadOptions() != other.hasReadOptions()) return false; if (hasReadOptions()) { - if (!getReadOptions() - .equals(other.getReadOptions())) return false; - } - if (!getStreamsList() - .equals(other.getStreamsList())) return false; - if (getEstimatedTotalBytesScanned() - != other.getEstimatedTotalBytesScanned()) return false; - if (getEstimatedRowCount() - != other.getEstimatedRowCount()) return false; - if (!getTraceId() - .equals(other.getTraceId())) return false; + if (!getReadOptions().equals(other.getReadOptions())) return false; + } + if (!getStreamsList().equals(other.getStreamsList())) return false; + if (getEstimatedTotalBytesScanned() != other.getEstimatedTotalBytesScanned()) return false; + if (getEstimatedRowCount() != other.getEstimatedRowCount()) return false; + if (!getTraceId().equals(other.getTraceId())) return false; if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 4: - if (!getAvroSchema() - .equals(other.getAvroSchema())) return false; + if (!getAvroSchema().equals(other.getAvroSchema())) return false; break; case 5: - if (!getArrowSchema() - .equals(other.getArrowSchema())) return false; + if (!getArrowSchema().equals(other.getArrowSchema())) return false; break; case 0: default: @@ -3694,11 +4244,9 @@ public int hashCode() { hash = (53 * hash) + getStreamsList().hashCode(); } hash = (37 * hash) + ESTIMATED_TOTAL_BYTES_SCANNED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEstimatedTotalBytesScanned()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedTotalBytesScanned()); hash = (37 * hash) + ESTIMATED_ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEstimatedRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedRowCount()); hash = (37 * hash) + TRACE_ID_FIELD_NUMBER; hash = (53 * hash) + getTraceId().hashCode(); switch (schemaCase_) { @@ -3718,130 +4266,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadSession parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadSession parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadSession parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadSession parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadSession prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about the ReadSession.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadSession} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadSession) com.google.cloud.bigquery.storage.v1.ReadSessionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ReadSession.class, com.google.cloud.bigquery.storage.v1.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1.ReadSession.class, + com.google.cloud.bigquery.storage.v1.ReadSession.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ReadSession.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3886,9 +4440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; } @java.lang.Override @@ -3907,15 +4461,19 @@ public com.google.cloud.bigquery.storage.v1.ReadSession build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadSession buildPartial() { - com.google.cloud.bigquery.storage.v1.ReadSession result = new com.google.cloud.bigquery.storage.v1.ReadSession(this); + com.google.cloud.bigquery.storage.v1.ReadSession result = + new com.google.cloud.bigquery.storage.v1.ReadSession(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.ReadSession result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1.ReadSession result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -3933,9 +4491,7 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession resu result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.dataFormat_ = dataFormat_; @@ -3944,14 +4500,12 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession resu result.table_ = table_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.tableModifiers_ = tableModifiersBuilder_ == null - ? tableModifiers_ - : tableModifiersBuilder_.build(); + result.tableModifiers_ = + tableModifiersBuilder_ == null ? tableModifiers_ : tableModifiersBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.readOptions_ = readOptionsBuilder_ == null - ? readOptions_ - : readOptionsBuilder_.build(); + result.readOptions_ = + readOptionsBuilder_ == null ? readOptions_ : readOptionsBuilder_.build(); } if (((from_bitField0_ & 0x00000200) != 0)) { result.estimatedTotalBytesScanned_ = estimatedTotalBytesScanned_; @@ -3967,12 +4521,10 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadSession resu private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadSession result) { result.schemaCase_ = schemaCase_; result.schema_ = this.schema_; - if (schemaCase_ == 4 && - avroSchemaBuilder_ != null) { + if (schemaCase_ == 4 && avroSchemaBuilder_ != null) { result.schema_ = avroSchemaBuilder_.build(); } - if (schemaCase_ == 5 && - arrowSchemaBuilder_ != null) { + if (schemaCase_ == 5 && arrowSchemaBuilder_ != null) { result.schema_ = arrowSchemaBuilder_.build(); } } @@ -3981,38 +4533,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1.ReadSession public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ReadSession) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadSession)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadSession) other); } else { super.mergeFrom(other); return this; @@ -4020,7 +4573,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession other) { - if (other == com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.ReadSession.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -4061,9 +4615,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession other) streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000100); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStreamsFieldBuilder() : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStreamsFieldBuilder() + : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -4081,17 +4636,20 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadSession other) onChanged(); } switch (other.getSchemaCase()) { - case AVRO_SCHEMA: { - mergeAvroSchema(other.getAvroSchema()); - break; - } - case ARROW_SCHEMA: { - mergeArrowSchema(other.getArrowSchema()); - break; - } - case SCHEMA_NOT_SET: { - break; - } + case AVRO_SCHEMA: + { + mergeAvroSchema(other.getAvroSchema()); + break; + } + case ARROW_SCHEMA: + { + mergeArrowSchema(other.getArrowSchema()); + break; + } + case SCHEMA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4119,90 +4677,93 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - dataFormat_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getAvroSchemaFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getArrowSchemaFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 5; - break; - } // case 42 - case 50: { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getTableModifiersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getReadOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: { - com.google.cloud.bigquery.storage.v1.ReadStream m = - input.readMessage( - com.google.cloud.bigquery.storage.v1.ReadStream.parser(), - extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 82 - case 96: { - estimatedTotalBytesScanned_ = input.readInt64(); - bitField0_ |= 0x00000200; - break; - } // case 96 - case 106: { - traceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 106 - case 112: { - estimatedRowCount_ = input.readInt64(); - bitField0_ |= 0x00000400; - break; - } // case 112 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + dataFormat_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getAvroSchemaFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getArrowSchemaFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 5; + break; + } // case 42 + case 50: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getTableModifiersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getReadOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: + { + com.google.cloud.bigquery.storage.v1.ReadStream m = + input.readMessage( + com.google.cloud.bigquery.storage.v1.ReadStream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 82 + case 96: + { + estimatedTotalBytesScanned_ = input.readInt64(); + bitField0_ |= 0x00000200; + break; + } // case 96 + case 106: + { + traceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 112: + { + estimatedRowCount_ = input.readInt64(); + bitField0_ |= 0x00000400; + break; + } // case 112 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -4212,12 +4773,12 @@ public Builder mergeFrom( } // finally return this; } + private int schemaCase_ = 0; private java.lang.Object schema_; - public SchemaCase - getSchemaCase() { - return SchemaCase.forNumber( - schemaCase_); + + public SchemaCase getSchemaCase() { + return SchemaCase.forNumber(schemaCase_); } public Builder clearSchema() { @@ -4231,19 +4792,21 @@ public Builder clearSchema() { private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -4252,21 +4815,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -4274,30 +4838,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -4307,18 +4878,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -4328,8 +4903,13 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4337,13 +4917,18 @@ public Builder setNameBytes(
      * updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4351,17 +4936,24 @@ public boolean hasExpireTime() {
      * updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4369,7 +4961,9 @@ public com.google.protobuf.Timestamp getExpireTime() {
      * updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -4385,6 +4979,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4392,10 +4988,11 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
      * updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -4406,6 +5003,8 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4413,13 +5012,15 @@ public Builder setExpireTime(
      * updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -4432,6 +5033,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4439,7 +5042,9 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
      * updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -4452,6 +5057,8 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4459,7 +5066,9 @@ public Builder clearExpireTime() {
      * updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000002; @@ -4467,6 +5076,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4474,17 +5085,22 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
      * updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time,
      * subsequent requests to read this Session will return errors. The
@@ -4492,17 +5108,22 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
      * updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -4510,24 +5131,35 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private int dataFormat_ = 0; /** + * + * *
      * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
      * supported.
      * 
* - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override public int getDataFormatValue() { + @java.lang.Override + public int getDataFormatValue() { return dataFormat_; } /** + * + * *
      * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
      * supported.
      * 
* - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for dataFormat to set. * @return This builder for chaining. */ @@ -4538,26 +5170,37 @@ public Builder setDataFormatValue(int value) { return this; } /** + * + * *
      * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
      * supported.
      * 
* - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The dataFormat. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.DataFormat getDataFormat() { - com.google.cloud.bigquery.storage.v1.DataFormat result = com.google.cloud.bigquery.storage.v1.DataFormat.forNumber(dataFormat_); + com.google.cloud.bigquery.storage.v1.DataFormat result = + com.google.cloud.bigquery.storage.v1.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.bigquery.storage.v1.DataFormat.UNRECOGNIZED : result; } /** + * + * *
      * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
      * supported.
      * 
* - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The dataFormat to set. * @return This builder for chaining. */ @@ -4571,12 +5214,17 @@ public Builder setDataFormat(com.google.cloud.bigquery.storage.v1.DataFormat val return this; } /** + * + * *
      * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
      * supported.
      * 
* - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearDataFormat() { @@ -4587,13 +5235,21 @@ public Builder clearDataFormat() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> avroSchemaBuilder_; + com.google.cloud.bigquery.storage.v1.AvroSchema, + com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> + avroSchemaBuilder_; /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -4601,11 +5257,16 @@ public boolean hasAvroSchema() { return schemaCase_ == 4; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ @java.lang.Override @@ -4623,11 +5284,15 @@ public com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema() { } } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema value) { if (avroSchemaBuilder_ == null) { @@ -4643,11 +5308,15 @@ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema val return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAvroSchema( com.google.cloud.bigquery.storage.v1.AvroSchema.Builder builderForValue) { @@ -4661,18 +5330,25 @@ public Builder setAvroSchema( return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema value) { if (avroSchemaBuilder_ == null) { - if (schemaCase_ == 4 && - schema_ != com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) { - schema_ = com.google.cloud.bigquery.storage.v1.AvroSchema.newBuilder((com.google.cloud.bigquery.storage.v1.AvroSchema) schema_) - .mergeFrom(value).buildPartial(); + if (schemaCase_ == 4 + && schema_ != com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance()) { + schema_ = + com.google.cloud.bigquery.storage.v1.AvroSchema.newBuilder( + (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -4688,11 +5364,15 @@ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1.AvroSchema v return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearAvroSchema() { if (avroSchemaBuilder_ == null) { @@ -4711,21 +5391,29 @@ public Builder clearAvroSchema() { return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1.AvroSchema.Builder getAvroSchemaBuilder() { return getAvroSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { @@ -4739,21 +5427,30 @@ public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrB } } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.AvroSchema, + com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder> getAvroSchemaFieldBuilder() { if (avroSchemaBuilder_ == null) { if (!(schemaCase_ == 4)) { schema_ = com.google.cloud.bigquery.storage.v1.AvroSchema.getDefaultInstance(); } - avroSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.AvroSchema, com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder>( + avroSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.AvroSchema, + com.google.cloud.bigquery.storage.v1.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1.AvroSchema) schema_, getParentForChildren(), isClean()); @@ -4765,13 +5462,21 @@ public com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> arrowSchemaBuilder_; + com.google.cloud.bigquery.storage.v1.ArrowSchema, + com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> + arrowSchemaBuilder_; /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -4779,11 +5484,16 @@ public boolean hasArrowSchema() { return schemaCase_ == 5; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ @java.lang.Override @@ -4801,11 +5511,15 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema() { } } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { @@ -4821,11 +5535,15 @@ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema v return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setArrowSchema( com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder builderForValue) { @@ -4839,18 +5557,25 @@ public Builder setArrowSchema( return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { - if (schemaCase_ == 5 && - schema_ != com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance()) { - schema_ = com.google.cloud.bigquery.storage.v1.ArrowSchema.newBuilder((com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_) - .mergeFrom(value).buildPartial(); + if (schemaCase_ == 5 + && schema_ != com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance()) { + schema_ = + com.google.cloud.bigquery.storage.v1.ArrowSchema.newBuilder( + (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -4866,11 +5591,15 @@ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1.ArrowSchema return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearArrowSchema() { if (arrowSchemaBuilder_ == null) { @@ -4889,21 +5618,29 @@ public Builder clearArrowSchema() { return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder getArrowSchemaBuilder() { return getArrowSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { @@ -4917,21 +5654,30 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaO } } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.ArrowSchema, + com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder> getArrowSchemaFieldBuilder() { if (arrowSchemaBuilder_ == null) { if (!(schemaCase_ == 5)) { schema_ = com.google.cloud.bigquery.storage.v1.ArrowSchema.getDefaultInstance(); } - arrowSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ArrowSchema, com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder>( + arrowSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ArrowSchema, + com.google.cloud.bigquery.storage.v1.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1.ArrowSchema) schema_, getParentForChildren(), isClean()); @@ -4944,19 +5690,23 @@ public com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaO private java.lang.Object table_ = ""; /** + * + * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
      * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -4965,21 +5715,24 @@ public java.lang.String getTable() { } } /** + * + * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
      * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -4987,30 +5740,41 @@ public java.lang.String getTable() { } } /** + * + * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
      * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } table_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
      * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTable() { @@ -5020,18 +5784,24 @@ public Builder clearTable() { return this; } /** + * + * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
      * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000020; @@ -5041,44 +5811,64 @@ public Builder setTableBytes( private com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers tableModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder> tableModifiersBuilder_; + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder> + tableModifiersBuilder_; /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tableModifiers field is set. */ public boolean hasTableModifiers() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tableModifiers. */ public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getTableModifiers() { if (tableModifiersBuilder_ == null) { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() + : tableModifiers_; } else { return tableModifiersBuilder_.getMessage(); } } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers value) { + public Builder setTableModifiers( + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers value) { if (tableModifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5092,12 +5882,16 @@ public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1.ReadSessio return this; } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTableModifiers( com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder builderForValue) { @@ -5111,18 +5905,25 @@ public Builder setTableModifiers( return this; } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers value) { + public Builder mergeTableModifiers( + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers value) { if (tableModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - tableModifiers_ != null && - tableModifiers_ != com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && tableModifiers_ != null + && tableModifiers_ + != com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers + .getDefaultInstance()) { getTableModifiersBuilder().mergeFrom(value); } else { tableModifiers_ = value; @@ -5135,12 +5936,16 @@ public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1.ReadSess return this; } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTableModifiers() { bitField0_ = (bitField0_ & ~0x00000040); @@ -5153,51 +5958,69 @@ public Builder clearTableModifiers() { return this; } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder getTableModifiersBuilder() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder + getTableModifiersBuilder() { bitField0_ |= 0x00000040; onChanged(); return getTableModifiersFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder + getTableModifiersOrBuilder() { if (tableModifiersBuilder_ != null) { return tableModifiersBuilder_.getMessageOrBuilder(); } else { - return tableModifiers_ == null ? - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.getDefaultInstance() + : tableModifiers_; } } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified
      * table.
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder> + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder> getTableModifiersFieldBuilder() { if (tableModifiersBuilder_ == null) { - tableModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder>( - getTableModifiers(), - getParentForChildren(), - isClean()); + tableModifiersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers, + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers.Builder, + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder>( + getTableModifiers(), getParentForChildren(), isClean()); tableModifiers_ = null; } return tableModifiersBuilder_; @@ -5205,41 +6028,61 @@ public com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder private com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions readOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder> readOptionsBuilder_; + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder> + readOptionsBuilder_; /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readOptions field is set. */ public boolean hasReadOptions() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readOptions. */ public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getReadOptions() { if (readOptionsBuilder_ == null) { - return readOptions_ == null ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() + : readOptions_; } else { return readOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadOptions(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions value) { + public Builder setReadOptions( + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions value) { if (readOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5253,11 +6096,15 @@ public Builder setReadOptions(com.google.cloud.bigquery.storage.v1.ReadSession.T return this; } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadOptions( com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder builderForValue) { @@ -5271,17 +6118,24 @@ public Builder setReadOptions( return this; } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeReadOptions(com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions value) { + public Builder mergeReadOptions( + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions value) { if (readOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - readOptions_ != null && - readOptions_ != com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && readOptions_ != null + && readOptions_ + != com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions + .getDefaultInstance()) { getReadOptionsBuilder().mergeFrom(value); } else { readOptions_ = value; @@ -5294,11 +6148,15 @@ public Builder mergeReadOptions(com.google.cloud.bigquery.storage.v1.ReadSession return this; } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadOptions() { bitField0_ = (bitField0_ & ~0x00000080); @@ -5311,66 +6169,91 @@ public Builder clearReadOptions() { return this; } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder getReadOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder + getReadOptionsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getReadOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder + getReadOptionsOrBuilder() { if (readOptionsBuilder_ != null) { return readOptionsBuilder_.getMessageOrBuilder(); } else { - return readOptions_ == null ? - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.getDefaultInstance() + : readOptions_; } } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder> getReadOptionsFieldBuilder() { if (readOptionsBuilder_ == null) { - readOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder>( - getReadOptions(), - getParentForChildren(), - isClean()); + readOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions, + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions.Builder, + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder>( + getReadOptions(), getParentForChildren(), isClean()); readOptions_ = null; } return readOptionsBuilder_; } private java.util.List streams_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - streams_ = new java.util.ArrayList(streams_); + streams_ = + new java.util.ArrayList(streams_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> streamsBuilder_; + com.google.cloud.bigquery.storage.v1.ReadStream, + com.google.cloud.bigquery.storage.v1.ReadStream.Builder, + com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> + streamsBuilder_; /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5379,7 +6262,9 @@ private void ensureStreamsIsMutable() {
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getStreamsList() { if (streamsBuilder_ == null) { @@ -5389,6 +6274,8 @@ public java.util.List getStream } } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5397,7 +6284,9 @@ public java.util.List getStream
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getStreamsCount() { if (streamsBuilder_ == null) { @@ -5407,6 +6296,8 @@ public int getStreamsCount() { } } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5415,7 +6306,9 @@ public int getStreamsCount() {
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index) { if (streamsBuilder_ == null) { @@ -5425,6 +6318,8 @@ public com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index) { } } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5433,10 +6328,11 @@ public com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index) {
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStreams( - int index, com.google.cloud.bigquery.storage.v1.ReadStream value) { + public Builder setStreams(int index, com.google.cloud.bigquery.storage.v1.ReadStream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5450,6 +6346,8 @@ public Builder setStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5458,7 +6356,9 @@ public Builder setStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStreams( int index, com.google.cloud.bigquery.storage.v1.ReadStream.Builder builderForValue) { @@ -5472,6 +6372,8 @@ public Builder setStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5480,7 +6382,9 @@ public Builder setStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStreams(com.google.cloud.bigquery.storage.v1.ReadStream value) { if (streamsBuilder_ == null) { @@ -5496,6 +6400,8 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1.ReadStream value) return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5504,10 +6410,11 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1.ReadStream value)
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addStreams( - int index, com.google.cloud.bigquery.storage.v1.ReadStream value) { + public Builder addStreams(int index, com.google.cloud.bigquery.storage.v1.ReadStream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5521,6 +6428,8 @@ public Builder addStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5529,7 +6438,9 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStreams( com.google.cloud.bigquery.storage.v1.ReadStream.Builder builderForValue) { @@ -5543,6 +6454,8 @@ public Builder addStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5551,7 +6464,9 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStreams( int index, com.google.cloud.bigquery.storage.v1.ReadStream.Builder builderForValue) { @@ -5565,6 +6480,8 @@ public Builder addStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5573,14 +6490,15 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllStreams( java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -5588,6 +6506,8 @@ public Builder addAllStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5596,7 +6516,9 @@ public Builder addAllStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStreams() { if (streamsBuilder_ == null) { @@ -5609,6 +6531,8 @@ public Builder clearStreams() { return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5617,7 +6541,9 @@ public Builder clearStreams() {
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeStreams(int index) { if (streamsBuilder_ == null) { @@ -5630,6 +6556,8 @@ public Builder removeStreams(int index) { return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5638,13 +6566,16 @@ public Builder removeStreams(int index) {
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.storage.v1.ReadStream.Builder getStreamsBuilder( - int index) { + public com.google.cloud.bigquery.storage.v1.ReadStream.Builder getStreamsBuilder(int index) { return getStreamsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5653,16 +6584,20 @@ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder getStreamsBuilder
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder( - int index) { + public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder(int index) { if (streamsBuilder_ == null) { - return streams_.get(index); } else { + return streams_.get(index); + } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5671,10 +6606,12 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuil
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -5682,6 +6619,8 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuil } } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5690,13 +6629,17 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuil
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder().addBuilder( - com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()); + return getStreamsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()); } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5705,14 +6648,17 @@ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder addStreamsBuilder
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.storage.v1.ReadStream.Builder addStreamsBuilder( - int index) { - return getStreamsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()); + public com.google.cloud.bigquery.storage.v1.ReadStream.Builder addStreamsBuilder(int index) { + return getStreamsFieldBuilder() + .addBuilder(index, com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()); } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -5721,36 +6667,45 @@ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder addStreamsBuilder
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> + com.google.cloud.bigquery.storage.v1.ReadStream, + com.google.cloud.bigquery.storage.v1.ReadStream.Builder, + com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>( - streams_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); + streamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.ReadStream, + com.google.cloud.bigquery.storage.v1.ReadStream.Builder, + com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>( + streams_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); streams_ = null; } return streamsBuilder_; } - private long estimatedTotalBytesScanned_ ; + private long estimatedTotalBytesScanned_; /** + * + * *
      * Output only. An estimate on the number of bytes this session will scan when
      * all streams are completely consumed. This estimate is based on
      * metadata from the table which might be incomplete or stale.
      * 
* - * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The estimatedTotalBytesScanned. */ @java.lang.Override @@ -5758,31 +6713,39 @@ public long getEstimatedTotalBytesScanned() { return estimatedTotalBytesScanned_; } /** + * + * *
      * Output only. An estimate on the number of bytes this session will scan when
      * all streams are completely consumed. This estimate is based on
      * metadata from the table which might be incomplete or stale.
      * 
* - * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The estimatedTotalBytesScanned to set. * @return This builder for chaining. */ public Builder setEstimatedTotalBytesScanned(long value) { - + estimatedTotalBytesScanned_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Output only. An estimate on the number of bytes this session will scan when
      * all streams are completely consumed. This estimate is based on
      * metadata from the table which might be incomplete or stale.
      * 
* - * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearEstimatedTotalBytesScanned() { @@ -5792,8 +6755,10 @@ public Builder clearEstimatedTotalBytesScanned() { return this; } - private long estimatedRowCount_ ; + private long estimatedRowCount_; /** + * + * *
      * Output only. An estimate on the number of rows present in this session's
      * streams. This estimate is based on metadata from the table which might be
@@ -5801,6 +6766,7 @@ public Builder clearEstimatedTotalBytesScanned() {
      * 
* * int64 estimated_row_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The estimatedRowCount. */ @java.lang.Override @@ -5808,6 +6774,8 @@ public long getEstimatedRowCount() { return estimatedRowCount_; } /** + * + * *
      * Output only. An estimate on the number of rows present in this session's
      * streams. This estimate is based on metadata from the table which might be
@@ -5815,17 +6783,20 @@ public long getEstimatedRowCount() {
      * 
* * int64 estimated_row_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The estimatedRowCount to set. * @return This builder for chaining. */ public Builder setEstimatedRowCount(long value) { - + estimatedRowCount_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Output only. An estimate on the number of rows present in this session's
      * streams. This estimate is based on metadata from the table which might be
@@ -5833,6 +6804,7 @@ public Builder setEstimatedRowCount(long value) {
      * 
* * int64 estimated_row_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEstimatedRowCount() { @@ -5844,6 +6816,8 @@ public Builder clearEstimatedRowCount() { private java.lang.Object traceId_ = ""; /** + * + * *
      * Optional. ID set by client to annotate a session identity.  This does not
      * need to be strictly unique, but instead the same ID should be used to group
@@ -5853,13 +6827,13 @@ public Builder clearEstimatedRowCount() {
      * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The traceId. */ public java.lang.String getTraceId() { java.lang.Object ref = traceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; @@ -5868,6 +6842,8 @@ public java.lang.String getTraceId() { } } /** + * + * *
      * Optional. ID set by client to annotate a session identity.  This does not
      * need to be strictly unique, but instead the same ID should be used to group
@@ -5877,15 +6853,14 @@ public java.lang.String getTraceId() {
      * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for traceId. */ - public com.google.protobuf.ByteString - getTraceIdBytes() { + public com.google.protobuf.ByteString getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); traceId_ = b; return b; } else { @@ -5893,6 +6868,8 @@ public java.lang.String getTraceId() { } } /** + * + * *
      * Optional. ID set by client to annotate a session identity.  This does not
      * need to be strictly unique, but instead the same ID should be used to group
@@ -5902,18 +6879,22 @@ public java.lang.String getTraceId() {
      * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The traceId to set. * @return This builder for chaining. */ - public Builder setTraceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTraceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } traceId_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Optional. ID set by client to annotate a session identity.  This does not
      * need to be strictly unique, but instead the same ID should be used to group
@@ -5923,6 +6904,7 @@ public Builder setTraceId(
      * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTraceId() { @@ -5932,6 +6914,8 @@ public Builder clearTraceId() { return this; } /** + * + * *
      * Optional. ID set by client to annotate a session identity.  This does not
      * need to be strictly unique, but instead the same ID should be used to group
@@ -5941,21 +6925,23 @@ public Builder clearTraceId() {
      * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for traceId to set. * @return This builder for chaining. */ - public Builder setTraceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); traceId_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5965,12 +6951,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadSession) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadSession) private static final com.google.cloud.bigquery.storage.v1.ReadSession DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadSession(); } @@ -5979,27 +6965,27 @@ public static com.google.cloud.bigquery.storage.v1.ReadSession getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadSession parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6014,6 +7000,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ReadSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java index f42578c2fe..dcc3148bb5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadSessionOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; -public interface ReadSessionOrBuilder extends +public interface ReadSessionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadSession) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -37,11 +60,15 @@ public interface ReadSessionOrBuilder extends
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -49,11 +76,15 @@ public interface ReadSessionOrBuilder extends
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time,
    * subsequent requests to read this Session will return errors. The
@@ -61,165 +92,245 @@ public interface ReadSessionOrBuilder extends
    * updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
    * supported.
    * 
* - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for dataFormat. */ int getDataFormatValue(); /** + * + * *
    * Immutable. Data format of the output data. DATA_FORMAT_UNSPECIFIED not
    * supported.
    * 
* - * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The dataFormat. */ com.google.cloud.bigquery.storage.v1.DataFormat getDataFormat(); /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ boolean hasAvroSchema(); /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ com.google.cloud.bigquery.storage.v1.AvroSchema getAvroSchema(); /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1.AvroSchemaOrBuilder getAvroSchemaOrBuilder(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ boolean hasArrowSchema(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ com.google.cloud.bigquery.storage.v1.ArrowSchema getArrowSchema(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1.ArrowSchemaOrBuilder getArrowSchemaOrBuilder(); /** + * + * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
    * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The table. */ java.lang.String getTable(); /** + * + * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}`
    * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tableModifiers field is set. */ boolean hasTableModifiers(); /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tableModifiers. */ com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiers getTableModifiers(); /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified
    * table.
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder(); + com.google.cloud.bigquery.storage.v1.ReadSession.TableModifiersOrBuilder + getTableModifiersOrBuilder(); /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readOptions field is set. */ boolean hasReadOptions(); /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readOptions. */ com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions getReadOptions(); /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1.ReadSession.TableReadOptionsOrBuilder + getReadOptionsOrBuilder(); /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -228,11 +339,14 @@ public interface ReadSessionOrBuilder extends
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getStreamsList(); + java.util.List getStreamsList(); /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -241,10 +355,14 @@ public interface ReadSessionOrBuilder extends
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1.ReadStream getStreams(int index); /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -253,10 +371,14 @@ public interface ReadSessionOrBuilder extends
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getStreamsCount(); /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -265,11 +387,15 @@ public interface ReadSessionOrBuilder extends
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -278,24 +404,31 @@ public interface ReadSessionOrBuilder extends
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder( - int index); + com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder(int index); /** + * + * *
    * Output only. An estimate on the number of bytes this session will scan when
    * all streams are completely consumed. This estimate is based on
    * metadata from the table which might be incomplete or stale.
    * 
* - * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int64 estimated_total_bytes_scanned = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The estimatedTotalBytesScanned. */ long getEstimatedTotalBytesScanned(); /** + * + * *
    * Output only. An estimate on the number of rows present in this session's
    * streams. This estimate is based on metadata from the table which might be
@@ -303,11 +436,14 @@ com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder(
    * 
* * int64 estimated_row_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The estimatedRowCount. */ long getEstimatedRowCount(); /** + * + * *
    * Optional. ID set by client to annotate a session identity.  This does not
    * need to be strictly unique, but instead the same ID should be used to group
@@ -317,10 +453,13 @@ com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder(
    * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The traceId. */ java.lang.String getTraceId(); /** + * + * *
    * Optional. ID set by client to annotate a session identity.  This does not
    * need to be strictly unique, but instead the same ID should be used to group
@@ -330,10 +469,10 @@ com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getStreamsOrBuilder(
    * 
* * string trace_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for traceId. */ - com.google.protobuf.ByteString - getTraceIdBytes(); + com.google.protobuf.ByteString getTraceIdBytes(); public com.google.cloud.bigquery.storage.v1.ReadSession.SchemaCase getSchemaCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java index fa2172e193..7e30032b1c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStream.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Information about a single stream that gets data out of the storage system.
  * Most of the information about `ReadStream` instances is aggregated, making
@@ -12,54 +29,60 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadStream}
  */
-public final class ReadStream extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReadStream extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ReadStream)
     ReadStreamOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReadStream.newBuilder() to construct.
   private ReadStream(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ReadStream() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReadStream();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.StreamProto
+        .internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.StreamProto
+        .internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.ReadStream.class, com.google.cloud.bigquery.storage.v1.ReadStream.Builder.class);
+            com.google.cloud.bigquery.storage.v1.ReadStream.class,
+            com.google.cloud.bigquery.storage.v1.ReadStream.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -68,30 +91,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -136,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ReadStream)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ReadStream other = (com.google.cloud.bigquery.storage.v1.ReadStream) obj; + com.google.cloud.bigquery.storage.v1.ReadStream other = + (com.google.cloud.bigquery.storage.v1.ReadStream) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -163,97 +186,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ReadStream parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ReadStream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadStream parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ReadStream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ReadStream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about a single stream that gets data out of the storage system.
    * Most of the information about `ReadStream` instances is aggregated, making
@@ -262,33 +292,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.ReadStream}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ReadStream)
       com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.StreamProto
+          .internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.StreamProto
+          .internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.ReadStream.class, com.google.cloud.bigquery.storage.v1.ReadStream.Builder.class);
+              com.google.cloud.bigquery.storage.v1.ReadStream.class,
+              com.google.cloud.bigquery.storage.v1.ReadStream.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.ReadStream.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -298,9 +327,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.StreamProto
+          .internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor;
     }
 
     @java.lang.Override
@@ -319,8 +348,11 @@ public com.google.cloud.bigquery.storage.v1.ReadStream build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.ReadStream buildPartial() {
-      com.google.cloud.bigquery.storage.v1.ReadStream result = new com.google.cloud.bigquery.storage.v1.ReadStream(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.storage.v1.ReadStream result =
+          new com.google.cloud.bigquery.storage.v1.ReadStream(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -336,38 +368,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ReadStream resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.ReadStream) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadStream)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.ReadStream) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -375,7 +408,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ReadStream other) {
-      if (other == com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -407,17 +441,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -427,23 +463,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -452,21 +491,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -474,30 +514,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -507,27 +554,31 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ReadStream) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ReadStream) private static final com.google.cloud.bigquery.storage.v1.ReadStream DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ReadStream(); } @@ -551,27 +602,27 @@ public static com.google.cloud.bigquery.storage.v1.ReadStream getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ReadStream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java index 7d23a8f1fe..ded71e14ee 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ReadStreamOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; -public interface ReadStreamOrBuilder extends +public interface ReadStreamOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ReadStream) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java index 3ee4cc9ae8..9157400c4c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowError.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * The message that presents row level error info in a request.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.RowError} */ -public final class RowError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RowError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.RowError) RowErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RowError.newBuilder() to construct. private RowError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RowError() { code_ = 0; message_ = ""; @@ -26,39 +44,43 @@ private RowError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RowError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.RowError.class, com.google.cloud.bigquery.storage.v1.RowError.Builder.class); + com.google.cloud.bigquery.storage.v1.RowError.class, + com.google.cloud.bigquery.storage.v1.RowError.Builder.class); } /** + * + * *
    * Error code for `RowError`.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1.RowError.RowErrorCode} */ - public enum RowErrorCode - implements com.google.protobuf.ProtocolMessageEnum { + public enum RowErrorCode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default error.
      * 
@@ -67,6 +89,8 @@ public enum RowErrorCode */ ROW_ERROR_CODE_UNSPECIFIED(0), /** + * + * *
      * One or more fields in the row has errors.
      * 
@@ -78,6 +102,8 @@ public enum RowErrorCode ; /** + * + * *
      * Default error.
      * 
@@ -86,6 +112,8 @@ public enum RowErrorCode */ public static final int ROW_ERROR_CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * One or more fields in the row has errors.
      * 
@@ -94,7 +122,6 @@ public enum RowErrorCode */ public static final int FIELDS_ERROR_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -119,48 +146,47 @@ public static RowErrorCode valueOf(int value) { */ public static RowErrorCode forNumber(int value) { switch (value) { - case 0: return ROW_ERROR_CODE_UNSPECIFIED; - case 1: return FIELDS_ERROR; - default: return null; + case 0: + return ROW_ERROR_CODE_UNSPECIFIED; + case 1: + return FIELDS_ERROR; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RowErrorCode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RowErrorCode findValueByNumber(int number) { - return RowErrorCode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RowErrorCode findValueByNumber(int number) { + return RowErrorCode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.bigquery.storage.v1.RowError.getDescriptor().getEnumTypes().get(0); } private static final RowErrorCode[] VALUES = values(); - public static RowErrorCode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RowErrorCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -180,11 +206,14 @@ private RowErrorCode(int value) { public static final int INDEX_FIELD_NUMBER = 1; private long index_ = 0L; /** + * + * *
    * Index of the malformed row in the request.
    * 
* * int64 index = 1; + * * @return The index. */ @java.lang.Override @@ -195,38 +224,53 @@ public long getIndex() { public static final int CODE_FIELD_NUMBER = 2; private int code_ = 0; /** + * + * *
    * Structured error reason for a row error.
    * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Structured error reason for a row error.
    * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; + * * @return The code. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode getCode() { - com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode result = com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.forNumber(code_); - return result == null ? com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode getCode() { + com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode result = + com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.forNumber(code_); + return result == null + ? com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.UNRECOGNIZED + : result; } public static final int MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** + * + * *
    * Description of the issue encountered when processing the row.
    * 
* * string message = 3; + * * @return The message. */ @java.lang.Override @@ -235,29 +279,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
    * Description of the issue encountered when processing the row.
    * 
* * string message = 3; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -266,6 +310,7 @@ public java.lang.String getMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,12 +322,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (index_ != 0L) { output.writeInt64(1, index_); } - if (code_ != com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.ROW_ERROR_CODE_UNSPECIFIED.getNumber()) { + if (code_ + != com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.ROW_ERROR_CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { @@ -298,12 +344,12 @@ public int getSerializedSize() { size = 0; if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, index_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, index_); } - if (code_ != com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.ROW_ERROR_CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, code_); + if (code_ + != com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.ROW_ERROR_CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); @@ -316,18 +362,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.RowError)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.RowError other = (com.google.cloud.bigquery.storage.v1.RowError) obj; + com.google.cloud.bigquery.storage.v1.RowError other = + (com.google.cloud.bigquery.storage.v1.RowError) obj; - if (getIndex() - != other.getIndex()) return false; + if (getIndex() != other.getIndex()) return false; if (code_ != other.code_) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -340,8 +385,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIndex()); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + code_; hash = (37 * hash) + MESSAGE_FIELD_NUMBER; @@ -351,130 +395,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.RowError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.RowError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.RowError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.RowError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.RowError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The message that presents row level error info in a request.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.RowError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.RowError) com.google.cloud.bigquery.storage.v1.RowErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.RowError.class, com.google.cloud.bigquery.storage.v1.RowError.Builder.class); + com.google.cloud.bigquery.storage.v1.RowError.class, + com.google.cloud.bigquery.storage.v1.RowError.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.RowError.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; } @java.lang.Override @@ -507,8 +557,11 @@ public com.google.cloud.bigquery.storage.v1.RowError build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.RowError buildPartial() { - com.google.cloud.bigquery.storage.v1.RowError result = new com.google.cloud.bigquery.storage.v1.RowError(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.RowError result = + new com.google.cloud.bigquery.storage.v1.RowError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -530,38 +583,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.RowError result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.RowError) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.RowError)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.RowError) other); } else { super.mergeFrom(other); return this; @@ -607,27 +661,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - index_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - code_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + index_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + code_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -637,15 +695,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long index_ ; + private long index_; /** + * + * *
      * Index of the malformed row in the request.
      * 
* * int64 index = 1; + * * @return The index. */ @java.lang.Override @@ -653,27 +715,33 @@ public long getIndex() { return index_; } /** + * + * *
      * Index of the malformed row in the request.
      * 
* * int64 index = 1; + * * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(long value) { - + index_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Index of the malformed row in the request.
      * 
* * int64 index = 1; + * * @return This builder for chaining. */ public Builder clearIndex() { @@ -685,22 +753,29 @@ public Builder clearIndex() { private int code_ = 0; /** + * + * *
      * Structured error reason for a row error.
      * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Structured error reason for a row error.
      * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -711,24 +786,33 @@ public Builder setCodeValue(int value) { return this; } /** + * + * *
      * Structured error reason for a row error.
      * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; + * * @return The code. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode getCode() { - com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode result = com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.forNumber(code_); - return result == null ? com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode result = + com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.forNumber(code_); + return result == null + ? com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode.UNRECOGNIZED + : result; } /** + * + * *
      * Structured error reason for a row error.
      * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; + * * @param value The code to set. * @return This builder for chaining. */ @@ -742,11 +826,14 @@ public Builder setCode(com.google.cloud.bigquery.storage.v1.RowError.RowErrorCod return this; } /** + * + * *
      * Structured error reason for a row error.
      * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -758,18 +845,20 @@ public Builder clearCode() { private java.lang.Object message_ = ""; /** + * + * *
      * Description of the issue encountered when processing the row.
      * 
* * string message = 3; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -778,20 +867,21 @@ public java.lang.String getMessage() { } } /** + * + * *
      * Description of the issue encountered when processing the row.
      * 
* * string message = 3; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -799,28 +889,35 @@ public java.lang.String getMessage() { } } /** + * + * *
      * Description of the issue encountered when processing the row.
      * 
* * string message = 3; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Description of the issue encountered when processing the row.
      * 
* * string message = 3; + * * @return This builder for chaining. */ public Builder clearMessage() { @@ -830,26 +927,30 @@ public Builder clearMessage() { return this; } /** + * + * *
      * Description of the issue encountered when processing the row.
      * 
* * string message = 3; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -859,12 +960,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.RowError) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.RowError) private static final com.google.cloud.bigquery.storage.v1.RowError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.RowError(); } @@ -873,27 +974,27 @@ public static com.google.cloud.bigquery.storage.v1.RowError getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RowError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RowError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -908,6 +1009,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.RowError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java index 6246b23c39..107ef08f15 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/RowErrorOrBuilder.java @@ -1,58 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface RowErrorOrBuilder extends +public interface RowErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.RowError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Index of the malformed row in the request.
    * 
* * int64 index = 1; + * * @return The index. */ long getIndex(); /** + * + * *
    * Structured error reason for a row error.
    * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Structured error reason for a row error.
    * 
* * .google.cloud.bigquery.storage.v1.RowError.RowErrorCode code = 2; + * * @return The code. */ com.google.cloud.bigquery.storage.v1.RowError.RowErrorCode getCode(); /** + * + * *
    * Description of the issue encountered when processing the row.
    * 
* * string message = 3; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
    * Description of the issue encountered when processing the row.
    * 
* * string message = 3; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java index e64b55be9a..9af974a7e1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Request message for `SplitReadStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.SplitReadStreamRequest} */ -public final class SplitReadStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SplitReadStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.SplitReadStreamRequest) SplitReadStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SplitReadStreamRequest.newBuilder() to construct. private SplitReadStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SplitReadStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SplitReadStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.class, + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the stream to split.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the stream to split.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +125,8 @@ public java.lang.String getName() { public static final int FRACTION_FIELD_NUMBER = 2; private double fraction_ = 0D; /** + * + * *
    * A value in the range (0.0, 1.0) that specifies the fractional point at
    * which the original stream should be split. The actual split point is
@@ -109,6 +138,7 @@ public java.lang.String getName() {
    * 
* * double fraction = 2; + * * @return The fraction. */ @java.lang.Override @@ -117,6 +147,7 @@ public double getFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,8 +159,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -149,8 +179,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (java.lang.Double.doubleToRawLongBits(fraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, fraction_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, fraction_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -160,18 +189,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest other = (com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) obj; + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest other = + (com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (java.lang.Double.doubleToLongBits(getFraction()) - != java.lang.Double.doubleToLongBits( - other.getFraction())) return false; + != java.lang.Double.doubleToLongBits(other.getFraction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,137 +214,146 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FRACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFraction())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFraction())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `SplitReadStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.SplitReadStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.SplitReadStreamRequest) com.google.cloud.bigquery.storage.v1.SplitReadStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.class, + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +364,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; } @java.lang.Override @@ -348,8 +385,11 @@ public com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest result = new com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest result = + new com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -368,38 +408,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.SplitReadStreamR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -407,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -442,22 +484,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: { - fraction_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: + { + fraction_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,22 +512,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the stream to split.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,20 +541,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to split.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -512,28 +565,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to split.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the stream to split.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -543,17 +607,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the stream to split.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -561,8 +631,10 @@ public Builder setNameBytes( return this; } - private double fraction_ ; + private double fraction_; /** + * + * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -574,6 +646,7 @@ public Builder setNameBytes(
      * 
* * double fraction = 2; + * * @return The fraction. */ @java.lang.Override @@ -581,6 +654,8 @@ public double getFraction() { return fraction_; } /** + * + * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -592,17 +667,20 @@ public double getFraction() {
      * 
* * double fraction = 2; + * * @param value The fraction to set. * @return This builder for chaining. */ public Builder setFraction(double value) { - + fraction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -614,6 +692,7 @@ public Builder setFraction(double value) {
      * 
* * double fraction = 2; + * * @return This builder for chaining. */ public Builder clearFraction() { @@ -622,9 +701,9 @@ public Builder clearFraction() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -634,12 +713,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.SplitReadStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.SplitReadStreamRequest) private static final com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest(); } @@ -648,27 +727,27 @@ public static com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SplitReadStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SplitReadStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,6 +762,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.SplitReadStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java index 66c1eb1354..9a7e2a7913 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface SplitReadStreamRequestOrBuilder extends +public interface SplitReadStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.SplitReadStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the stream to split.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the stream to split.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A value in the range (0.0, 1.0) that specifies the fractional point at
    * which the original stream should be split. The actual split point is
@@ -39,6 +66,7 @@ public interface SplitReadStreamRequestOrBuilder extends
    * 
* * double fraction = 2; + * * @return The fraction. */ double getFraction(); diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java index 4546ddbd6f..68c466fe8b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponse.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Response message for `SplitReadStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.SplitReadStreamResponse} */ -public final class SplitReadStreamResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SplitReadStreamResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.SplitReadStreamResponse) SplitReadStreamResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SplitReadStreamResponse.newBuilder() to construct. private SplitReadStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SplitReadStreamResponse() { - } + + private SplitReadStreamResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SplitReadStreamResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.class, + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.Builder.class); } public static final int PRIMARY_STREAM_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1.ReadStream primaryStream_; /** + * + * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -57,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; + * * @return Whether the primaryStream field is set. */ @java.lang.Override @@ -64,6 +85,8 @@ public boolean hasPrimaryStream() { return primaryStream_ != null; } /** + * + * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -71,13 +94,18 @@ public boolean hasPrimaryStream() {
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; + * * @return The primaryStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadStream getPrimaryStream() { - return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : primaryStream_; + return primaryStream_ == null + ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() + : primaryStream_; } /** + * + * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -88,18 +116,23 @@ public com.google.cloud.bigquery.storage.v1.ReadStream getPrimaryStream() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getPrimaryStreamOrBuilder() {
-    return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : primaryStream_;
+    return primaryStream_ == null
+        ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()
+        : primaryStream_;
   }
 
   public static final int REMAINDER_STREAM_FIELD_NUMBER = 2;
   private com.google.cloud.bigquery.storage.v1.ReadStream remainderStream_;
   /**
+   *
+   *
    * 
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; + * * @return Whether the remainderStream field is set. */ @java.lang.Override @@ -107,19 +140,26 @@ public boolean hasRemainderStream() { return remainderStream_ != null; } /** + * + * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; + * * @return The remainderStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.ReadStream getRemainderStream() { - return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : remainderStream_; + return remainderStream_ == null + ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() + : remainderStream_; } /** + * + * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
@@ -129,10 +169,13 @@ public com.google.cloud.bigquery.storage.v1.ReadStream getRemainderStream() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getRemainderStreamOrBuilder() {
-    return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : remainderStream_;
+    return remainderStream_ == null
+        ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()
+        : remainderStream_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -144,8 +187,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (primaryStream_ != null) {
       output.writeMessage(1, getPrimaryStream());
     }
@@ -162,12 +204,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (primaryStream_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getPrimaryStream());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrimaryStream());
     }
     if (remainderStream_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getRemainderStream());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRemainderStream());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -177,22 +217,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse other = (com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse) obj;
+    com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse other =
+        (com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse) obj;
 
     if (hasPrimaryStream() != other.hasPrimaryStream()) return false;
     if (hasPrimaryStream()) {
-      if (!getPrimaryStream()
-          .equals(other.getPrimaryStream())) return false;
+      if (!getPrimaryStream().equals(other.getPrimaryStream())) return false;
     }
     if (hasRemainderStream() != other.hasRemainderStream()) return false;
     if (hasRemainderStream()) {
-      if (!getRemainderStream()
-          .equals(other.getRemainderStream())) return false;
+      if (!getRemainderStream().equals(other.getRemainderStream())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -219,129 +258,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response message for `SplitReadStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.SplitReadStreamResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.SplitReadStreamResponse) com.google.cloud.bigquery.storage.v1.SplitReadStreamResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.class, + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,13 +406,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.getDefaultInstance(); } @@ -381,23 +428,25 @@ public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse buildPartial() { - com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse result = new com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse result = + new com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.primaryStream_ = primaryStreamBuilder_ == null - ? primaryStream_ - : primaryStreamBuilder_.build(); + result.primaryStream_ = + primaryStreamBuilder_ == null ? primaryStream_ : primaryStreamBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.remainderStream_ = remainderStreamBuilder_ == null - ? remainderStream_ - : remainderStreamBuilder_.build(); + result.remainderStream_ = + remainderStreamBuilder_ == null ? remainderStream_ : remainderStreamBuilder_.build(); } } @@ -405,38 +454,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.SplitReadStreamR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse) other); } else { super.mergeFrom(other); return this; @@ -444,7 +494,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse other) { - if (other == com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse.getDefaultInstance()) + return this; if (other.hasPrimaryStream()) { mergePrimaryStream(other.getPrimaryStream()); } @@ -477,26 +529,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPrimaryStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRemainderStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getPrimaryStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getRemainderStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -506,12 +557,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.storage.v1.ReadStream primaryStream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> primaryStreamBuilder_; + com.google.cloud.bigquery.storage.v1.ReadStream, + com.google.cloud.bigquery.storage.v1.ReadStream.Builder, + com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> + primaryStreamBuilder_; /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -519,12 +576,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; + * * @return Whether the primaryStream field is set. */ public boolean hasPrimaryStream() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -532,16 +592,21 @@ public boolean hasPrimaryStream() {
      * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; + * * @return The primaryStream. */ public com.google.cloud.bigquery.storage.v1.ReadStream getPrimaryStream() { if (primaryStreamBuilder_ == null) { - return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : primaryStream_; + return primaryStream_ == null + ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() + : primaryStream_; } else { return primaryStreamBuilder_.getMessage(); } } /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -564,6 +629,8 @@ public Builder setPrimaryStream(com.google.cloud.bigquery.storage.v1.ReadStream
       return this;
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -584,6 +651,8 @@ public Builder setPrimaryStream(
       return this;
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -594,9 +663,10 @@ public Builder setPrimaryStream(
      */
     public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1.ReadStream value) {
       if (primaryStreamBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          primaryStream_ != null &&
-          primaryStream_ != com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && primaryStream_ != null
+            && primaryStream_
+                != com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()) {
           getPrimaryStreamBuilder().mergeFrom(value);
         } else {
           primaryStream_ = value;
@@ -609,6 +679,8 @@ public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1.ReadStrea
       return this;
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -628,6 +700,8 @@ public Builder clearPrimaryStream() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -642,6 +716,8 @@ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder getPrimaryStreamB
       return getPrimaryStreamFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -654,11 +730,14 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getPrimaryStream
       if (primaryStreamBuilder_ != null) {
         return primaryStreamBuilder_.getMessageOrBuilder();
       } else {
-        return primaryStream_ == null ?
-            com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : primaryStream_;
+        return primaryStream_ == null
+            ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()
+            : primaryStream_;
       }
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -668,14 +747,17 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getPrimaryStream
      * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> 
+            com.google.cloud.bigquery.storage.v1.ReadStream,
+            com.google.cloud.bigquery.storage.v1.ReadStream.Builder,
+            com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>
         getPrimaryStreamFieldBuilder() {
       if (primaryStreamBuilder_ == null) {
-        primaryStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>(
-                getPrimaryStream(),
-                getParentForChildren(),
-                isClean());
+        primaryStreamBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1.ReadStream,
+                com.google.cloud.bigquery.storage.v1.ReadStream.Builder,
+                com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>(
+                getPrimaryStream(), getParentForChildren(), isClean());
         primaryStream_ = null;
       }
       return primaryStreamBuilder_;
@@ -683,36 +765,49 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getPrimaryStream
 
     private com.google.cloud.bigquery.storage.v1.ReadStream remainderStream_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> remainderStreamBuilder_;
+            com.google.cloud.bigquery.storage.v1.ReadStream,
+            com.google.cloud.bigquery.storage.v1.ReadStream.Builder,
+            com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>
+        remainderStreamBuilder_;
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; + * * @return Whether the remainderStream field is set. */ public boolean hasRemainderStream() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; + * * @return The remainderStream. */ public com.google.cloud.bigquery.storage.v1.ReadStream getRemainderStream() { if (remainderStreamBuilder_ == null) { - return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : remainderStream_; + return remainderStream_ == null + ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() + : remainderStream_; } else { return remainderStreamBuilder_.getMessage(); } } /** + * + * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -734,6 +829,8 @@ public Builder setRemainderStream(com.google.cloud.bigquery.storage.v1.ReadStrea
       return this;
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -753,6 +850,8 @@ public Builder setRemainderStream(
       return this;
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -762,9 +861,10 @@ public Builder setRemainderStream(
      */
     public Builder mergeRemainderStream(com.google.cloud.bigquery.storage.v1.ReadStream value) {
       if (remainderStreamBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          remainderStream_ != null &&
-          remainderStream_ != com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && remainderStream_ != null
+            && remainderStream_
+                != com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()) {
           getRemainderStreamBuilder().mergeFrom(value);
         } else {
           remainderStream_ = value;
@@ -777,6 +877,8 @@ public Builder mergeRemainderStream(com.google.cloud.bigquery.storage.v1.ReadStr
       return this;
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -795,6 +897,8 @@ public Builder clearRemainderStream() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -808,6 +912,8 @@ public com.google.cloud.bigquery.storage.v1.ReadStream.Builder getRemainderStrea
       return getRemainderStreamFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -819,11 +925,14 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getRemainderStre
       if (remainderStreamBuilder_ != null) {
         return remainderStreamBuilder_.getMessageOrBuilder();
       } else {
-        return remainderStream_ == null ?
-            com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance() : remainderStream_;
+        return remainderStream_ == null
+            ? com.google.cloud.bigquery.storage.v1.ReadStream.getDefaultInstance()
+            : remainderStream_;
       }
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -832,21 +941,24 @@ public com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getRemainderStre
      * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder> 
+            com.google.cloud.bigquery.storage.v1.ReadStream,
+            com.google.cloud.bigquery.storage.v1.ReadStream.Builder,
+            com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>
         getRemainderStreamFieldBuilder() {
       if (remainderStreamBuilder_ == null) {
-        remainderStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1.ReadStream, com.google.cloud.bigquery.storage.v1.ReadStream.Builder, com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>(
-                getRemainderStream(),
-                getParentForChildren(),
-                isClean());
+        remainderStreamBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1.ReadStream,
+                com.google.cloud.bigquery.storage.v1.ReadStream.Builder,
+                com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder>(
+                getRemainderStream(), getParentForChildren(), isClean());
         remainderStream_ = null;
       }
       return remainderStreamBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -856,12 +968,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.SplitReadStreamResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.SplitReadStreamResponse)
-  private static final com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse();
   }
@@ -870,27 +983,27 @@ public static com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SplitReadStreamResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SplitReadStreamResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -905,6 +1018,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1.SplitReadStreamResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java
similarity index 77%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java
rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java
index 4e152f4f5d..282ad5342c 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/SplitReadStreamResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
-public interface SplitReadStreamResponseOrBuilder extends
+public interface SplitReadStreamResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.SplitReadStreamResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -15,10 +33,13 @@ public interface SplitReadStreamResponseOrBuilder extends
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; + * * @return Whether the primaryStream field is set. */ boolean hasPrimaryStream(); /** + * + * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -26,10 +47,13 @@ public interface SplitReadStreamResponseOrBuilder extends
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream primary_stream = 1; + * * @return The primaryStream. */ com.google.cloud.bigquery.storage.v1.ReadStream getPrimaryStream(); /** + * + * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -41,26 +65,34 @@ public interface SplitReadStreamResponseOrBuilder extends
   com.google.cloud.bigquery.storage.v1.ReadStreamOrBuilder getPrimaryStreamOrBuilder();
 
   /**
+   *
+   *
    * 
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; + * * @return Whether the remainderStream field is set. */ boolean hasRemainderStream(); /** + * + * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1.ReadStream remainder_stream = 2; + * * @return The remainderStream. */ com.google.cloud.bigquery.storage.v1.ReadStream getRemainderStream(); /** + * + * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java
rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java
index ce5aebf1fe..5d5ebe5b04 100644
--- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java
+++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageError.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1/storage.proto
 
 package com.google.cloud.bigquery.storage.v1;
 
 /**
+ *
+ *
  * 
  * Structured custom BigQuery Storage error message. The error can be attached
  * as error details in the returned rpc Status. In particular, the use of error
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.StorageError}
  */
-public final class StorageError extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StorageError extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.StorageError)
     StorageErrorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StorageError.newBuilder() to construct.
   private StorageError(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StorageError() {
     code_ = 0;
     entity_ = "";
@@ -30,39 +48,43 @@ private StorageError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StorageError();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.StorageProto
+        .internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.StorageProto
+        .internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.StorageError.class, com.google.cloud.bigquery.storage.v1.StorageError.Builder.class);
+            com.google.cloud.bigquery.storage.v1.StorageError.class,
+            com.google.cloud.bigquery.storage.v1.StorageError.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Error code for `StorageError`.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode} */ - public enum StorageErrorCode - implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default error.
      * 
@@ -71,6 +93,8 @@ public enum StorageErrorCode */ STORAGE_ERROR_CODE_UNSPECIFIED(0), /** + * + * *
      * Table is not found in the system.
      * 
@@ -79,6 +103,8 @@ public enum StorageErrorCode */ TABLE_NOT_FOUND(1), /** + * + * *
      * Stream is already committed.
      * 
@@ -87,6 +113,8 @@ public enum StorageErrorCode */ STREAM_ALREADY_COMMITTED(2), /** + * + * *
      * Stream is not found.
      * 
@@ -95,6 +123,8 @@ public enum StorageErrorCode */ STREAM_NOT_FOUND(3), /** + * + * *
      * Invalid Stream type.
      * For example, you try to commit a stream that is not pending.
@@ -104,6 +134,8 @@ public enum StorageErrorCode
      */
     INVALID_STREAM_TYPE(4),
     /**
+     *
+     *
      * 
      * Invalid Stream state.
      * For example, you try to commit a stream that is not finalized or is
@@ -114,6 +146,8 @@ public enum StorageErrorCode
      */
     INVALID_STREAM_STATE(5),
     /**
+     *
+     *
      * 
      * Stream is finalized.
      * 
@@ -122,6 +156,8 @@ public enum StorageErrorCode */ STREAM_FINALIZED(6), /** + * + * *
      * There is a schema mismatch and it is caused by user schema has extra
      * field than bigquery schema.
@@ -131,6 +167,8 @@ public enum StorageErrorCode
      */
     SCHEMA_MISMATCH_EXTRA_FIELDS(7),
     /**
+     *
+     *
      * 
      * Offset already exists.
      * 
@@ -139,6 +177,8 @@ public enum StorageErrorCode */ OFFSET_ALREADY_EXISTS(8), /** + * + * *
      * Offset out of range.
      * 
@@ -150,6 +190,8 @@ public enum StorageErrorCode ; /** + * + * *
      * Default error.
      * 
@@ -158,6 +200,8 @@ public enum StorageErrorCode */ public static final int STORAGE_ERROR_CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Table is not found in the system.
      * 
@@ -166,6 +210,8 @@ public enum StorageErrorCode */ public static final int TABLE_NOT_FOUND_VALUE = 1; /** + * + * *
      * Stream is already committed.
      * 
@@ -174,6 +220,8 @@ public enum StorageErrorCode */ public static final int STREAM_ALREADY_COMMITTED_VALUE = 2; /** + * + * *
      * Stream is not found.
      * 
@@ -182,6 +230,8 @@ public enum StorageErrorCode */ public static final int STREAM_NOT_FOUND_VALUE = 3; /** + * + * *
      * Invalid Stream type.
      * For example, you try to commit a stream that is not pending.
@@ -191,6 +241,8 @@ public enum StorageErrorCode
      */
     public static final int INVALID_STREAM_TYPE_VALUE = 4;
     /**
+     *
+     *
      * 
      * Invalid Stream state.
      * For example, you try to commit a stream that is not finalized or is
@@ -201,6 +253,8 @@ public enum StorageErrorCode
      */
     public static final int INVALID_STREAM_STATE_VALUE = 5;
     /**
+     *
+     *
      * 
      * Stream is finalized.
      * 
@@ -209,6 +263,8 @@ public enum StorageErrorCode */ public static final int STREAM_FINALIZED_VALUE = 6; /** + * + * *
      * There is a schema mismatch and it is caused by user schema has extra
      * field than bigquery schema.
@@ -218,6 +274,8 @@ public enum StorageErrorCode
      */
     public static final int SCHEMA_MISMATCH_EXTRA_FIELDS_VALUE = 7;
     /**
+     *
+     *
      * 
      * Offset already exists.
      * 
@@ -226,6 +284,8 @@ public enum StorageErrorCode */ public static final int OFFSET_ALREADY_EXISTS_VALUE = 8; /** + * + * *
      * Offset out of range.
      * 
@@ -234,7 +294,6 @@ public enum StorageErrorCode */ public static final int OFFSET_OUT_OF_RANGE_VALUE = 9; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -259,47 +318,59 @@ public static StorageErrorCode valueOf(int value) { */ public static StorageErrorCode forNumber(int value) { switch (value) { - case 0: return STORAGE_ERROR_CODE_UNSPECIFIED; - case 1: return TABLE_NOT_FOUND; - case 2: return STREAM_ALREADY_COMMITTED; - case 3: return STREAM_NOT_FOUND; - case 4: return INVALID_STREAM_TYPE; - case 5: return INVALID_STREAM_STATE; - case 6: return STREAM_FINALIZED; - case 7: return SCHEMA_MISMATCH_EXTRA_FIELDS; - case 8: return OFFSET_ALREADY_EXISTS; - case 9: return OFFSET_OUT_OF_RANGE; - default: return null; + case 0: + return STORAGE_ERROR_CODE_UNSPECIFIED; + case 1: + return TABLE_NOT_FOUND; + case 2: + return STREAM_ALREADY_COMMITTED; + case 3: + return STREAM_NOT_FOUND; + case 4: + return INVALID_STREAM_TYPE; + case 5: + return INVALID_STREAM_STATE; + case 6: + return STREAM_FINALIZED; + case 7: + return SCHEMA_MISMATCH_EXTRA_FIELDS; + case 8: + return OFFSET_ALREADY_EXISTS; + case 9: + return OFFSET_OUT_OF_RANGE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - StorageErrorCode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageErrorCode findValueByNumber(int number) { - return StorageErrorCode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageErrorCode findValueByNumber(int number) { + return StorageErrorCode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageError.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageError.getDescriptor() + .getEnumTypes() + .get(0); } private static final StorageErrorCode[] VALUES = values(); @@ -307,8 +378,7 @@ public StorageErrorCode findValueByNumber(int number) { public static StorageErrorCode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -328,38 +398,53 @@ private StorageErrorCode(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_ = 0; /** + * + * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode getCode() { - com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode result = com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.forNumber(code_); - return result == null ? com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode getCode() { + com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode result = + com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.forNumber(code_); + return result == null + ? com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.UNRECOGNIZED + : result; } public static final int ENTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** + * + * *
    * Name of the failed entity.
    * 
* * string entity = 2; + * * @return The entity. */ @java.lang.Override @@ -368,29 +453,29 @@ public java.lang.String getEntity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; } } /** + * + * *
    * Name of the failed entity.
    * 
* * string entity = 2; + * * @return The bytes for entity. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntityBytes() { + public com.google.protobuf.ByteString getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entity_ = b; return b; } else { @@ -399,14 +484,18 @@ public java.lang.String getEntity() { } public static final int ERROR_MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** + * + * *
    * Message that describes the error.
    * 
* * string error_message = 3; + * * @return The errorMessage. */ @java.lang.Override @@ -415,29 +504,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * Message that describes the error.
    * 
* * string error_message = 3; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -446,6 +535,7 @@ public java.lang.String getErrorMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -457,9 +547,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.STORAGE_ERROR_CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode + .STORAGE_ERROR_CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { @@ -477,9 +569,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.STORAGE_ERROR_CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode + .STORAGE_ERROR_CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entity_); @@ -495,18 +589,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.StorageError)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.StorageError other = (com.google.cloud.bigquery.storage.v1.StorageError) obj; + com.google.cloud.bigquery.storage.v1.StorageError other = + (com.google.cloud.bigquery.storage.v1.StorageError) obj; if (code_ != other.code_) return false; - if (!getEntity() - .equals(other.getEntity())) return false; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; + if (!getEntity().equals(other.getEntity())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -530,96 +623,103 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StorageError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.StorageError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.StorageError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.StorageError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.StorageError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Structured custom BigQuery Storage error message. The error can be attached
    * as error details in the returned rpc Status. In particular, the use of error
@@ -629,33 +729,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.StorageError}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.StorageError)
       com.google.cloud.bigquery.storage.v1.StorageErrorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.StorageError.class, com.google.cloud.bigquery.storage.v1.StorageError.Builder.class);
+              com.google.cloud.bigquery.storage.v1.StorageError.class,
+              com.google.cloud.bigquery.storage.v1.StorageError.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.StorageError.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -667,9 +766,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor;
     }
 
     @java.lang.Override
@@ -688,8 +787,11 @@ public com.google.cloud.bigquery.storage.v1.StorageError build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.StorageError buildPartial() {
-      com.google.cloud.bigquery.storage.v1.StorageError result = new com.google.cloud.bigquery.storage.v1.StorageError(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.storage.v1.StorageError result =
+          new com.google.cloud.bigquery.storage.v1.StorageError(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -711,38 +813,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.StorageError res
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.StorageError) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.StorageError)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.StorageError) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -750,7 +853,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.StorageError other) {
-      if (other == com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.storage.v1.StorageError.getDefaultInstance())
+        return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -790,27 +894,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              code_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              entity_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              errorMessage_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                code_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                entity_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                errorMessage_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -820,26 +928,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -850,28 +966,38 @@ public Builder setCodeValue(int value) { return this; } /** + * + * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode getCode() { - com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode result = com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.forNumber(code_); - return result == null ? com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode result = + com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.forNumber(code_); + return result == null + ? com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode.UNRECOGNIZED + : result; } /** + * + * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode value) { + public Builder setCode( + com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode value) { if (value == null) { throw new NullPointerException(); } @@ -881,11 +1007,14 @@ public Builder setCode(com.google.cloud.bigquery.storage.v1.StorageError.Storage return this; } /** + * + * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -897,18 +1026,20 @@ public Builder clearCode() { private java.lang.Object entity_ = ""; /** + * + * *
      * Name of the failed entity.
      * 
* * string entity = 2; + * * @return The entity. */ public java.lang.String getEntity() { java.lang.Object ref = entity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; @@ -917,20 +1048,21 @@ public java.lang.String getEntity() { } } /** + * + * *
      * Name of the failed entity.
      * 
* * string entity = 2; + * * @return The bytes for entity. */ - public com.google.protobuf.ByteString - getEntityBytes() { + public com.google.protobuf.ByteString getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entity_ = b; return b; } else { @@ -938,28 +1070,35 @@ public java.lang.String getEntity() { } } /** + * + * *
      * Name of the failed entity.
      * 
* * string entity = 2; + * * @param value The entity to set. * @return This builder for chaining. */ - public Builder setEntity( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } entity_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Name of the failed entity.
      * 
* * string entity = 2; + * * @return This builder for chaining. */ public Builder clearEntity() { @@ -969,17 +1108,21 @@ public Builder clearEntity() { return this; } /** + * + * *
      * Name of the failed entity.
      * 
* * string entity = 2; + * * @param value The bytes for entity to set. * @return This builder for chaining. */ - public Builder setEntityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); entity_ = value; bitField0_ |= 0x00000002; @@ -989,18 +1132,20 @@ public Builder setEntityBytes( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * Message that describes the error.
      * 
* * string error_message = 3; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -1009,20 +1154,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * Message that describes the error.
      * 
* * string error_message = 3; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -1030,28 +1176,35 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * Message that describes the error.
      * 
* * string error_message = 3; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } errorMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Message that describes the error.
      * 
* * string error_message = 3; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -1061,26 +1214,30 @@ public Builder clearErrorMessage() { return this; } /** + * + * *
      * Message that describes the error.
      * 
* * string error_message = 3; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1090,12 +1247,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.StorageError) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.StorageError) private static final com.google.cloud.bigquery.storage.v1.StorageError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.StorageError(); } @@ -1104,27 +1261,27 @@ public static com.google.cloud.bigquery.storage.v1.StorageError getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,6 +1296,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.StorageError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java index fe2c703ae8..c483c0fda6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageErrorOrBuilder.java @@ -1,68 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface StorageErrorOrBuilder extends +public interface StorageErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.StorageError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode code = 1; + * * @return The code. */ com.google.cloud.bigquery.storage.v1.StorageError.StorageErrorCode getCode(); /** + * + * *
    * Name of the failed entity.
    * 
* * string entity = 2; + * * @return The entity. */ java.lang.String getEntity(); /** + * + * *
    * Name of the failed entity.
    * 
* * string entity = 2; + * * @return The bytes for entity. */ - com.google.protobuf.ByteString - getEntityBytes(); + com.google.protobuf.ByteString getEntityBytes(); /** + * + * *
    * Message that describes the error.
    * 
* * string error_message = 3; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * Message that describes the error.
    * 
* * string error_message = 3; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); } diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java new file mode 100644 index 0000000000..ffeebe47b4 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StorageProto.java @@ -0,0 +1,557 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class StorageProto { + private StorageProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/bigquery/storage/v1/stora" + + "ge.proto\022 google.cloud.bigquery.storage." + + "v1\032\034google/api/annotations.proto\032\027google" + + "/api/client.proto\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\032,g" + + "oogle/cloud/bigquery/storage/v1/arrow.pr" + + "oto\032+google/cloud/bigquery/storage/v1/av" + + "ro.proto\032/google/cloud/bigquery/storage/" + + "v1/protobuf.proto\032-google/cloud/bigquery" + + "/storage/v1/stream.proto\032,google/cloud/b" + + "igquery/storage/v1/table.proto\032\037google/p" + + "rotobuf/timestamp.proto\032\036google/protobuf" + + "/wrappers.proto\032\027google/rpc/status.proto" + + "\"\347\001\n\030CreateReadSessionRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.goog" + + "leapis.com/Project\022H\n\014read_session\030\002 \001(\013" + + "2-.google.cloud.bigquery.storage.v1.Read" + + "SessionB\003\340A\002\022\030\n\020max_stream_count\030\003 \001(\005\022\"" + + "\n\032preferred_min_stream_count\030\004 \001(\005\"i\n\017Re" + + "adRowsRequest\022F\n\013read_stream\030\001 \001(\tB1\340A\002\372" + + "A+\n)bigquerystorage.googleapis.com/ReadS" + + "tream\022\016\n\006offset\030\002 \001(\003\")\n\rThrottleState\022\030" + + "\n\020throttle_percent\030\001 \001(\005\"\227\001\n\013StreamStats" + + "\022H\n\010progress\030\002 \001(\01326.google.cloud.bigque" + + "ry.storage.v1.StreamStats.Progress\032>\n\010Pr" + + "ogress\022\031\n\021at_response_start\030\001 \001(\001\022\027\n\017at_" + + "response_end\030\002 \001(\001\"\347\003\n\020ReadRowsResponse\022" + + "?\n\tavro_rows\030\003 \001(\0132*.google.cloud.bigque" + + "ry.storage.v1.AvroRowsH\000\022P\n\022arrow_record" + + "_batch\030\004 \001(\01322.google.cloud.bigquery.sto" + + "rage.v1.ArrowRecordBatchH\000\022\021\n\trow_count\030" + + "\006 \001(\003\022<\n\005stats\030\002 \001(\0132-.google.cloud.bigq" + + "uery.storage.v1.StreamStats\022G\n\016throttle_" + + "state\030\005 \001(\0132/.google.cloud.bigquery.stor" + + "age.v1.ThrottleState\022H\n\013avro_schema\030\007 \001(" + + "\0132,.google.cloud.bigquery.storage.v1.Avr" + + "oSchemaB\003\340A\003H\001\022J\n\014arrow_schema\030\010 \001(\0132-.g" + + "oogle.cloud.bigquery.storage.v1.ArrowSch" + + "emaB\003\340A\003H\001B\006\n\004rowsB\010\n\006schema\"k\n\026SplitRea" + + "dStreamRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)bi" + + "gquerystorage.googleapis.com/ReadStream\022" + + "\020\n\010fraction\030\002 \001(\001\"\247\001\n\027SplitReadStreamRes" + + "ponse\022D\n\016primary_stream\030\001 \001(\0132,.google.c" + + "loud.bigquery.storage.v1.ReadStream\022F\n\020r" + + "emainder_stream\030\002 \001(\0132,.google.cloud.big" + + "query.storage.v1.ReadStream\"\233\001\n\030CreateWr" + + "iteStreamRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037" + + "\n\035bigquery.googleapis.com/Table\022H\n\014write" + + "_stream\030\002 \001(\0132-.google.cloud.bigquery.st" + + "orage.v1.WriteStreamB\003\340A\002\"\211\006\n\021AppendRows" + + "Request\022H\n\014write_stream\030\001 \001(\tB2\340A\002\372A,\n*b" + + "igquerystorage.googleapis.com/WriteStrea" + + "m\022+\n\006offset\030\002 \001(\0132\033.google.protobuf.Int6" + + "4Value\022S\n\nproto_rows\030\004 \001(\0132=.google.clou" + + "d.bigquery.storage.v1.AppendRowsRequest." + + "ProtoDataH\000\022\020\n\010trace_id\030\006 \001(\t\022{\n\035missing" + + "_value_interpretations\030\007 \003(\0132T.google.cl" + + "oud.bigquery.storage.v1.AppendRowsReques" + + "t.MissingValueInterpretationsEntry\032\214\001\n\tP" + + "rotoData\022D\n\rwriter_schema\030\001 \001(\0132-.google" + + ".cloud.bigquery.storage.v1.ProtoSchema\0229" + + "\n\004rows\030\002 \001(\0132+.google.cloud.bigquery.sto" + + "rage.v1.ProtoRows\032\222\001\n MissingValueInterp" + + "retationsEntry\022\013\n\003key\030\001 \001(\t\022]\n\005value\030\002 \001" + + "(\0162N.google.cloud.bigquery.storage.v1.Ap" + + "pendRowsRequest.MissingValueInterpretati" + + "on:\0028\001\"m\n\032MissingValueInterpretation\022,\n(" + + "MISSING_VALUE_INTERPRETATION_UNSPECIFIED" + + "\020\000\022\016\n\nNULL_VALUE\020\001\022\021\n\rDEFAULT_VALUE\020\002B\006\n" + + "\004rows\"\373\002\n\022AppendRowsResponse\022Z\n\rappend_r" + + "esult\030\001 \001(\0132A.google.cloud.bigquery.stor" + + "age.v1.AppendRowsResponse.AppendResultH\000" + + "\022#\n\005error\030\002 \001(\0132\022.google.rpc.StatusH\000\022E\n" + + "\016updated_schema\030\003 \001(\0132-.google.cloud.big" + + "query.storage.v1.TableSchema\022>\n\nrow_erro" + + "rs\030\004 \003(\0132*.google.cloud.bigquery.storage" + + ".v1.RowError\022\024\n\014write_stream\030\005 \001(\t\032;\n\014Ap" + + "pendResult\022+\n\006offset\030\001 \001(\0132\033.google.prot" + + "obuf.Int64ValueB\n\n\010response\"\232\001\n\025GetWrite" + + "StreamRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*big" + + "querystorage.googleapis.com/WriteStream\022" + + "?\n\004view\030\003 \001(\01621.google.cloud.bigquery.st" + + "orage.v1.WriteStreamView\"s\n\036BatchCommitW" + + "riteStreamsRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372" + + "A\037\n\035bigquery.googleapis.com/Table\022\032\n\rwri" + + "te_streams\030\002 \003(\tB\003\340A\002\"\231\001\n\037BatchCommitWri" + + "teStreamsResponse\022/\n\013commit_time\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022E\n\rstream_err" + + "ors\030\002 \003(\0132..google.cloud.bigquery.storag" + + "e.v1.StorageError\"^\n\032FinalizeWriteStream" + + "Request\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquerys" + + "torage.googleapis.com/WriteStream\"0\n\033Fin" + + "alizeWriteStreamResponse\022\021\n\trow_count\030\001 " + + "\001(\003\"\211\001\n\020FlushRowsRequest\022H\n\014write_stream" + + "\030\001 \001(\tB2\340A\002\372A,\n*bigquerystorage.googleap" + + "is.com/WriteStream\022+\n\006offset\030\002 \001(\0132\033.goo" + + "gle.protobuf.Int64Value\"#\n\021FlushRowsResp" + + "onse\022\016\n\006offset\030\001 \001(\003\"\245\003\n\014StorageError\022M\n" + + "\004code\030\001 \001(\0162?.google.cloud.bigquery.stor" + + "age.v1.StorageError.StorageErrorCode\022\016\n\006" + + "entity\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\"\236\002\n\020" + + "StorageErrorCode\022\"\n\036STORAGE_ERROR_CODE_U" + + "NSPECIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STR" + + "EAM_ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FO" + + "UND\020\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALI" + + "D_STREAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\006\022 " + + "\n\034SCHEMA_MISMATCH_EXTRA_FIELDS\020\007\022\031\n\025OFFS" + + "ET_ALREADY_EXISTS\020\010\022\027\n\023OFFSET_OUT_OF_RAN" + + "GE\020\t\"\263\001\n\010RowError\022\r\n\005index\030\001 \001(\003\022E\n\004code" + + "\030\002 \001(\01627.google.cloud.bigquery.storage.v" + + "1.RowError.RowErrorCode\022\017\n\007message\030\003 \001(\t" + + "\"@\n\014RowErrorCode\022\036\n\032ROW_ERROR_CODE_UNSPE" + + "CIFIED\020\000\022\020\n\014FIELDS_ERROR\020\0012\222\006\n\014BigQueryR" + + "ead\022\351\001\n\021CreateReadSession\022:.google.cloud" + + ".bigquery.storage.v1.CreateReadSessionRe" + + "quest\032-.google.cloud.bigquery.storage.v1" + + ".ReadSession\"i\202\323\344\223\002<\"7/v1/{read_session." + + "table=projects/*/datasets/*/tables/*}:\001*" + + "\332A$parent,read_session,max_stream_count\022" + + "\317\001\n\010ReadRows\0221.google.cloud.bigquery.sto" + + "rage.v1.ReadRowsRequest\0322.google.cloud.b" + + "igquery.storage.v1.ReadRowsResponse\"Z\202\323\344" + + "\223\002?\022=/v1/{read_stream=projects/*/locatio" + + "ns/*/sessions/*/streams/*}\332A\022read_stream" + + ",offset0\001\022\306\001\n\017SplitReadStream\0228.google.c" + + "loud.bigquery.storage.v1.SplitReadStream" + + "Request\0329.google.cloud.bigquery.storage." + + "v1.SplitReadStreamResponse\">\202\323\344\223\0028\0226/v1/" + + "{name=projects/*/locations/*/sessions/*/" + + "streams/*}\032{\312A\036bigquerystorage.googleapi" + + "s.com\322AWhttps://www.googleapis.com/auth/" + + "bigquery,https://www.googleapis.com/auth" + + "/cloud-platform2\274\013\n\rBigQueryWrite\022\327\001\n\021Cr" + + "eateWriteStream\022:.google.cloud.bigquery." + + "storage.v1.CreateWriteStreamRequest\032-.go" + + "ogle.cloud.bigquery.storage.v1.WriteStre" + + "am\"W\202\323\344\223\002;\"+/v1/{parent=projects/*/datas" + + "ets/*/tables/*}:\014write_stream\332A\023parent,w" + + "rite_stream\022\322\001\n\nAppendRows\0223.google.clou" + + "d.bigquery.storage.v1.AppendRowsRequest\032" + + "4.google.cloud.bigquery.storage.v1.Appen" + + "dRowsResponse\"U\202\323\344\223\002@\";/v1/{write_stream" + + "=projects/*/datasets/*/tables/*/streams/" + + "*}:\001*\332A\014write_stream(\0010\001\022\277\001\n\016GetWriteStr" + + "eam\0227.google.cloud.bigquery.storage.v1.G" + + "etWriteStreamRequest\032-.google.cloud.bigq" + + "uery.storage.v1.WriteStream\"E\202\323\344\223\0028\"3/v1" + + "/{name=projects/*/datasets/*/tables/*/st" + + "reams/*}:\001*\332A\004name\022\331\001\n\023FinalizeWriteStre" + + "am\022<.google.cloud.bigquery.storage.v1.Fi" + + "nalizeWriteStreamRequest\032=.google.cloud." + + "bigquery.storage.v1.FinalizeWriteStreamR" + + "esponse\"E\202\323\344\223\0028\"3/v1/{name=projects/*/da" + + "tasets/*/tables/*/streams/*}:\001*\332A\004name\022\334" + + "\001\n\027BatchCommitWriteStreams\022@.google.clou" + + "d.bigquery.storage.v1.BatchCommitWriteSt" + + "reamsRequest\032A.google.cloud.bigquery.sto" + + "rage.v1.BatchCommitWriteStreamsResponse\"" + + "<\202\323\344\223\002-\022+/v1/{parent=projects/*/datasets" + + "/*/tables/*}\332A\006parent\022\313\001\n\tFlushRows\0222.go" + + "ogle.cloud.bigquery.storage.v1.FlushRows" + + "Request\0323.google.cloud.bigquery.storage." + + "v1.FlushRowsResponse\"U\202\323\344\223\002@\";/v1/{write" + + "_stream=projects/*/datasets/*/tables/*/s" + + "treams/*}:\001*\332A\014write_stream\032\260\001\312A\036bigquer" + + "ystorage.googleapis.com\322A\213\001https://www.g" + + "oogleapis.com/auth/bigquery,https://www." + + "googleapis.com/auth/bigquery.insertdata," + + "https://www.googleapis.com/auth/cloud-pl" + + "atformB\224\002\n$com.google.cloud.bigquery.sto" + + "rage.v1B\014StorageProtoP\001Z>cloud.google.co" + + "m/go/bigquery/storage/apiv1/storagepb;st" + + "oragepb\252\002 Google.Cloud.BigQuery.Storage." + + "V1\312\002 Google\\Cloud\\BigQuery\\Storage\\V1\352AU" + + "\n\035bigquery.googleapis.com/Table\0224project" + + "s/{project}/datasets/{dataset}/tables/{t" + + "able}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.ProtoBufProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_CreateReadSessionRequest_descriptor, + new java.lang.String[] { + "Parent", "ReadSession", "MaxStreamCount", "PreferredMinStreamCount", + }); + internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadRowsRequest_descriptor, + new java.lang.String[] { + "ReadStream", "Offset", + }); + internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor, + new java.lang.String[] { + "ThrottlePercent", + }); + internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor, + new java.lang.String[] { + "Progress", + }); + internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor = + internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor, + new java.lang.String[] { + "AtResponseStart", "AtResponseEnd", + }); + internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadRowsResponse_descriptor, + new java.lang.String[] { + "AvroRows", + "ArrowRecordBatch", + "RowCount", + "Stats", + "ThrottleState", + "AvroSchema", + "ArrowSchema", + "Rows", + "Schema", + }); + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamRequest_descriptor, + new java.lang.String[] { + "Name", "Fraction", + }); + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_SplitReadStreamResponse_descriptor, + new java.lang.String[] { + "PrimaryStream", "RemainderStream", + }); + internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_CreateWriteStreamRequest_descriptor, + new java.lang.String[] { + "Parent", "WriteStream", + }); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor, + new java.lang.String[] { + "WriteStream", + "Offset", + "ProtoRows", + "TraceId", + "MissingValueInterpretations", + "Rows", + }); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor = + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_ProtoData_descriptor, + new java.lang.String[] { + "WriterSchema", "Rows", + }); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor = + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AppendRowsRequest_MissingValueInterpretationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor, + new java.lang.String[] { + "AppendResult", "Error", "UpdatedSchema", "RowErrors", "WriteStream", "Response", + }); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor = + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_AppendRowsResponse_AppendResult_descriptor, + new java.lang.String[] { + "Offset", + }); + internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_GetWriteStreamRequest_descriptor, + new java.lang.String[] { + "Name", "View", + }); + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsRequest_descriptor, + new java.lang.String[] { + "Parent", "WriteStreams", + }); + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_BatchCommitWriteStreamsResponse_descriptor, + new java.lang.String[] { + "CommitTime", "StreamErrors", + }); + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_FinalizeWriteStreamResponse_descriptor, + new java.lang.String[] { + "RowCount", + }); + internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_FlushRowsRequest_descriptor, + new java.lang.String[] { + "WriteStream", "Offset", + }); + internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_FlushRowsResponse_descriptor, + new java.lang.String[] { + "Offset", + }); + internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_storage_v1_StorageError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_StorageError_descriptor, + new java.lang.String[] { + "Code", "Entity", "ErrorMessage", + }); + internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_bigquery_storage_v1_RowError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_RowError_descriptor, + new java.lang.String[] { + "Index", "Code", "Message", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.ProtoBufProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java new file mode 100644 index 0000000000..e0c8734f3f --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamProto.java @@ -0,0 +1,214 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/stream.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class StreamProto { + private StreamProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/bigquery/storage/v1/strea" + + "m.proto\022 google.cloud.bigquery.storage.v" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032,google/cloud/bigq" + + "uery/storage/v1/arrow.proto\032+google/clou" + + "d/bigquery/storage/v1/avro.proto\032,google" + + "/cloud/bigquery/storage/v1/table.proto\032\037" + + "google/protobuf/timestamp.proto\"\304\t\n\013Read" + + "Session\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013expire_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\022F\n\013data_format\030\003 \001(\0162,.google.cloud.big" + + "query.storage.v1.DataFormatB\003\340A\005\022H\n\013avro" + + "_schema\030\004 \001(\0132,.google.cloud.bigquery.st" + + "orage.v1.AvroSchemaB\003\340A\003H\000\022J\n\014arrow_sche" + + "ma\030\005 \001(\0132-.google.cloud.bigquery.storage" + + ".v1.ArrowSchemaB\003\340A\003H\000\0224\n\005table\030\006 \001(\tB%\340" + + "A\005\372A\037\n\035bigquery.googleapis.com/Table\022Z\n\017" + + "table_modifiers\030\007 \001(\0132<.google.cloud.big" + + "query.storage.v1.ReadSession.TableModifi" + + "ersB\003\340A\001\022Y\n\014read_options\030\010 \001(\0132>.google." + + "cloud.bigquery.storage.v1.ReadSession.Ta" + + "bleReadOptionsB\003\340A\001\022B\n\007streams\030\n \003(\0132,.g" + + "oogle.cloud.bigquery.storage.v1.ReadStre" + + "amB\003\340A\003\022*\n\035estimated_total_bytes_scanned" + + "\030\014 \001(\003B\003\340A\003\022 \n\023estimated_row_count\030\016 \001(\003" + + "B\003\340A\003\022\025\n\010trace_id\030\r \001(\tB\003\340A\001\032C\n\016TableMod" + + "ifiers\0221\n\rsnapshot_time\030\001 \001(\0132\032.google.p" + + "rotobuf.Timestamp\032\273\002\n\020TableReadOptions\022\027" + + "\n\017selected_fields\030\001 \003(\t\022\027\n\017row_restricti" + + "on\030\002 \001(\t\022g\n\033arrow_serialization_options\030" + + "\003 \001(\0132;.google.cloud.bigquery.storage.v1" + + ".ArrowSerializationOptionsB\003\340A\001H\000\022e\n\032avr" + + "o_serialization_options\030\004 \001(\0132:.google.c" + + "loud.bigquery.storage.v1.AvroSerializati" + + "onOptionsB\003\340A\001H\000B%\n#output_format_serial" + + "ization_options:k\352Ah\n*bigquerystorage.go" + + "ogleapis.com/ReadSession\022:projects/{proj" + + "ect}/locations/{location}/sessions/{sess" + + "ion}B\010\n\006schema\"\234\001\n\nReadStream\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003:{\352Ax\n)bigquerystorage.googleapi" + + "s.com/ReadStream\022Kprojects/{project}/loc" + + "ations/{location}/sessions/{session}/str" + + "eams/{stream}\"\373\004\n\013WriteStream\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003\022E\n\004type\030\002 \001(\01622.google.cloud.bi" + + "gquery.storage.v1.WriteStream.TypeB\003\340A\005\022" + + "4\n\013create_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013commit_time\030\004 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022H\n\014table_sch" + + "ema\030\005 \001(\0132-.google.cloud.bigquery.storag" + + "e.v1.TableSchemaB\003\340A\003\022P\n\nwrite_mode\030\007 \001(" + + "\01627.google.cloud.bigquery.storage.v1.Wri" + + "teStream.WriteModeB\003\340A\005\022\025\n\010location\030\010 \001(" + + "\tB\003\340A\005\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\t" + + "COMMITTED\020\001\022\013\n\007PENDING\020\002\022\014\n\010BUFFERED\020\003\"3" + + "\n\tWriteMode\022\032\n\026WRITE_MODE_UNSPECIFIED\020\000\022" + + "\n\n\006INSERT\020\001:v\352As\n*bigquerystorage.google" + + "apis.com/WriteStream\022Eprojects/{project}" + + "/datasets/{dataset}/tables/{table}/strea" + + "ms/{stream}*>\n\nDataFormat\022\033\n\027DATA_FORMAT" + + "_UNSPECIFIED\020\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\002*I\n\017W" + + "riteStreamView\022!\n\035WRITE_STREAM_VIEW_UNSP" + + "ECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002B\273\001\n$com.g" + + "oogle.cloud.bigquery.storage.v1B\013StreamP" + + "rotoP\001Z>cloud.google.com/go/bigquery/sto" + + "rage/apiv1/storagepb;storagepb\252\002 Google." + + "Cloud.BigQuery.Storage.V1\312\002 Google\\Cloud" + + "\\BigQuery\\Storage\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor, + new java.lang.String[] { + "Name", + "ExpireTime", + "DataFormat", + "AvroSchema", + "ArrowSchema", + "Table", + "TableModifiers", + "ReadOptions", + "Streams", + "EstimatedTotalBytesScanned", + "EstimatedRowCount", + "TraceId", + "Schema", + }); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor = + internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableModifiers_descriptor, + new java.lang.String[] { + "SnapshotTime", + }); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor = + internal_static_google_cloud_bigquery_storage_v1_ReadSession_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadSession_TableReadOptions_descriptor, + new java.lang.String[] { + "SelectedFields", + "RowRestriction", + "ArrowSerializationOptions", + "AvroSerializationOptions", + "OutputFormatSerializationOptions", + }); + internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_ReadStream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_ReadStream_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor, + new java.lang.String[] { + "Name", "Type", "CreateTime", "CommitTime", "TableSchema", "WriteMode", "Location", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.ArrowProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.AvroProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1.TableProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java index 4dc9f1998a..7193f96a84 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStats.java @@ -1,57 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Estimated stream statistics for a given read Stream.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats} */ -public final class StreamStats extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamStats extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.StreamStats) StreamStatsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamStats.newBuilder() to construct. private StreamStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamStats() { - } + + private StreamStats() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.StreamStats.class, com.google.cloud.bigquery.storage.v1.StreamStats.Builder.class); + com.google.cloud.bigquery.storage.v1.StreamStats.class, + com.google.cloud.bigquery.storage.v1.StreamStats.Builder.class); } - public interface ProgressOrBuilder extends + public interface ProgressOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.StreamStats.Progress) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The fraction of rows assigned to the stream that have been processed by
      * the server so far, not including the rows in the current response
@@ -66,64 +87,69 @@ public interface ProgressOrBuilder extends
      * 
* * double at_response_start = 1; + * * @return The atResponseStart. */ double getAtResponseStart(); /** + * + * *
      * Similar to `at_response_start`, except that this value includes the
      * rows in the current response.
      * 
* * double at_response_end = 2; + * * @return The atResponseEnd. */ double getAtResponseEnd(); } - /** - * Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats.Progress} - */ - public static final class Progress extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats.Progress} */ + public static final class Progress extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.StreamStats.Progress) ProgressOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Progress.newBuilder() to construct. private Progress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Progress() { - } + + private Progress() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Progress(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.StreamStats.Progress.class, com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1.StreamStats.Progress.class, + com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder.class); } public static final int AT_RESPONSE_START_FIELD_NUMBER = 1; private double atResponseStart_ = 0D; /** + * + * *
      * The fraction of rows assigned to the stream that have been processed by
      * the server so far, not including the rows in the current response
@@ -138,6 +164,7 @@ protected java.lang.Object newInstance(
      * 
* * double at_response_start = 1; + * * @return The atResponseStart. */ @java.lang.Override @@ -148,12 +175,15 @@ public double getAtResponseStart() { public static final int AT_RESPONSE_END_FIELD_NUMBER = 2; private double atResponseEnd_ = 0D; /** + * + * *
      * Similar to `at_response_start`, except that this value includes the
      * rows in the current response.
      * 
* * double at_response_end = 2; + * * @return The atResponseEnd. */ @java.lang.Override @@ -162,6 +192,7 @@ public double getAtResponseEnd() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(atResponseStart_) != 0) { output.writeDouble(1, atResponseStart_); } @@ -191,12 +221,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(atResponseStart_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, atResponseStart_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, atResponseStart_); } if (java.lang.Double.doubleToRawLongBits(atResponseEnd_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, atResponseEnd_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, atResponseEnd_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -206,19 +234,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.StreamStats.Progress)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.StreamStats.Progress other = (com.google.cloud.bigquery.storage.v1.StreamStats.Progress) obj; + com.google.cloud.bigquery.storage.v1.StreamStats.Progress other = + (com.google.cloud.bigquery.storage.v1.StreamStats.Progress) obj; if (java.lang.Double.doubleToLongBits(getAtResponseStart()) - != java.lang.Double.doubleToLongBits( - other.getAtResponseStart())) return false; + != java.lang.Double.doubleToLongBits(other.getAtResponseStart())) return false; if (java.lang.Double.doubleToLongBits(getAtResponseEnd()) - != java.lang.Double.doubleToLongBits( - other.getAtResponseEnd())) return false; + != java.lang.Double.doubleToLongBits(other.getAtResponseEnd())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,98 +258,109 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AT_RESPONSE_START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getAtResponseStart())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAtResponseStart())); hash = (37 * hash) + AT_RESPONSE_END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getAtResponseEnd())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAtResponseEnd())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.StreamStats.Progress prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.StreamStats.Progress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -331,36 +369,34 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats.Progress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats.Progress} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.StreamStats.Progress) com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.StreamStats.Progress.class, com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1.StreamStats.Progress.class, + com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.StreamStats.Progress.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_StreamStats_Progress_descriptor; } @java.lang.Override @@ -392,8 +428,11 @@ public com.google.cloud.bigquery.storage.v1.StreamStats.Progress build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStats.Progress buildPartial() { - com.google.cloud.bigquery.storage.v1.StreamStats.Progress result = new com.google.cloud.bigquery.storage.v1.StreamStats.Progress(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.StreamStats.Progress result = + new com.google.cloud.bigquery.storage.v1.StreamStats.Progress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -412,38 +451,41 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.StreamStats.Prog public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.StreamStats.Progress) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.StreamStats.Progress)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.StreamStats.Progress) other); } else { super.mergeFrom(other); return this; @@ -451,7 +493,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.StreamStats.Progress other) { - if (other == com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance()) + return this; if (other.getAtResponseStart() != 0D) { setAtResponseStart(other.getAtResponseStart()); } @@ -484,22 +527,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: { - atResponseStart_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: { - atResponseEnd_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: + { + atResponseStart_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: + { + atResponseEnd_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -509,10 +555,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private double atResponseStart_ ; + private double atResponseStart_; /** + * + * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -527,6 +576,7 @@ public Builder mergeFrom(
        * 
* * double at_response_start = 1; + * * @return The atResponseStart. */ @java.lang.Override @@ -534,6 +584,8 @@ public double getAtResponseStart() { return atResponseStart_; } /** + * + * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -548,17 +600,20 @@ public double getAtResponseStart() {
        * 
* * double at_response_start = 1; + * * @param value The atResponseStart to set. * @return This builder for chaining. */ public Builder setAtResponseStart(double value) { - + atResponseStart_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -573,6 +628,7 @@ public Builder setAtResponseStart(double value) {
        * 
* * double at_response_start = 1; + * * @return This builder for chaining. */ public Builder clearAtResponseStart() { @@ -582,14 +638,17 @@ public Builder clearAtResponseStart() { return this; } - private double atResponseEnd_ ; + private double atResponseEnd_; /** + * + * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; + * * @return The atResponseEnd. */ @java.lang.Override @@ -597,29 +656,35 @@ public double getAtResponseEnd() { return atResponseEnd_; } /** + * + * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; + * * @param value The atResponseEnd to set. * @return This builder for chaining. */ public Builder setAtResponseEnd(double value) { - + atResponseEnd_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; + * * @return This builder for chaining. */ public Builder clearAtResponseEnd() { @@ -628,6 +693,7 @@ public Builder clearAtResponseEnd() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -640,12 +706,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.StreamStats.Progress) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.StreamStats.Progress) private static final com.google.cloud.bigquery.storage.v1.StreamStats.Progress DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.StreamStats.Progress(); } @@ -654,27 +720,28 @@ public static com.google.cloud.bigquery.storage.v1.StreamStats.Progress getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Progress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -689,17 +756,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.StreamStats.Progress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PROGRESS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1.StreamStats.Progress progress_; /** + * + * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; + * * @return Whether the progress field is set. */ @java.lang.Override @@ -707,18 +776,25 @@ public boolean hasProgress() { return progress_ != null; } /** + * + * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; + * * @return The progress. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStats.Progress getProgress() { - return progress_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() : progress_; + return progress_ == null + ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() + : progress_; } /** + * + * *
    * Represents the progress of the current stream.
    * 
@@ -727,10 +803,13 @@ public com.google.cloud.bigquery.storage.v1.StreamStats.Progress getProgress() { */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder getProgressOrBuilder() { - return progress_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() : progress_; + return progress_ == null + ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() + : progress_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -742,8 +821,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (progress_ != null) { output.writeMessage(2, getProgress()); } @@ -757,8 +835,7 @@ public int getSerializedSize() { size = 0; if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProgress()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -768,17 +845,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.StreamStats)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.StreamStats other = (com.google.cloud.bigquery.storage.v1.StreamStats) obj; + com.google.cloud.bigquery.storage.v1.StreamStats other = + (com.google.cloud.bigquery.storage.v1.StreamStats) obj; if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress() - .equals(other.getProgress())) return false; + if (!getProgress().equals(other.getProgress())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -800,130 +877,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.StreamStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.StreamStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.StreamStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.StreamStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.StreamStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Estimated stream statistics for a given read Stream.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.StreamStats} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.StreamStats) com.google.cloud.bigquery.storage.v1.StreamStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_StreamStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.StreamStats.class, com.google.cloud.bigquery.storage.v1.StreamStats.Builder.class); + com.google.cloud.bigquery.storage.v1.StreamStats.class, + com.google.cloud.bigquery.storage.v1.StreamStats.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.StreamStats.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -937,9 +1020,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_StreamStats_descriptor; } @java.lang.Override @@ -958,8 +1041,11 @@ public com.google.cloud.bigquery.storage.v1.StreamStats build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.StreamStats buildPartial() { - com.google.cloud.bigquery.storage.v1.StreamStats result = new com.google.cloud.bigquery.storage.v1.StreamStats(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.StreamStats result = + new com.google.cloud.bigquery.storage.v1.StreamStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -967,9 +1053,7 @@ public com.google.cloud.bigquery.storage.v1.StreamStats buildPartial() { private void buildPartial0(com.google.cloud.bigquery.storage.v1.StreamStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.progress_ = progressBuilder_ == null - ? progress_ - : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); } } @@ -977,38 +1061,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.StreamStats resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.StreamStats) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.StreamStats)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.StreamStats) other); } else { super.mergeFrom(other); return this; @@ -1016,7 +1101,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.StreamStats other) { - if (other == com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.StreamStats.getDefaultInstance()) + return this; if (other.hasProgress()) { mergeProgress(other.getProgress()); } @@ -1046,19 +1132,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getProgressFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1068,38 +1154,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.storage.v1.StreamStats.Progress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats.Progress, com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder> progressBuilder_; + com.google.cloud.bigquery.storage.v1.StreamStats.Progress, + com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, + com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder> + progressBuilder_; /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; + * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; + * * @return The progress. */ public com.google.cloud.bigquery.storage.v1.StreamStats.Progress getProgress() { if (progressBuilder_ == null) { - return progress_ == null ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() : progress_; + return progress_ == null + ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() + : progress_; } else { return progressBuilder_.getMessage(); } } /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -1120,6 +1220,8 @@ public Builder setProgress(com.google.cloud.bigquery.storage.v1.StreamStats.Prog return this; } /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -1138,6 +1240,8 @@ public Builder setProgress( return this; } /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -1146,9 +1250,10 @@ public Builder setProgress( */ public Builder mergeProgress(com.google.cloud.bigquery.storage.v1.StreamStats.Progress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - progress_ != null && - progress_ != com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && progress_ != null + && progress_ + != com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -1161,6 +1266,8 @@ public Builder mergeProgress(com.google.cloud.bigquery.storage.v1.StreamStats.Pr return this; } /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -1178,6 +1285,8 @@ public Builder clearProgress() { return this; } /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -1190,21 +1299,27 @@ public com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder getProg return getProgressFieldBuilder().getBuilder(); } /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; */ - public com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder getProgressOrBuilder() { + public com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder + getProgressOrBuilder() { if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null ? - com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() : progress_; + return progress_ == null + ? com.google.cloud.bigquery.storage.v1.StreamStats.Progress.getDefaultInstance() + : progress_; } } /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -1212,21 +1327,24 @@ public com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder getPro * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats.Progress, com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder> + com.google.cloud.bigquery.storage.v1.StreamStats.Progress, + com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, + com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.StreamStats.Progress, com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder>( - getProgress(), - getParentForChildren(), - isClean()); + progressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.StreamStats.Progress, + com.google.cloud.bigquery.storage.v1.StreamStats.Progress.Builder, + com.google.cloud.bigquery.storage.v1.StreamStats.ProgressOrBuilder>( + getProgress(), getParentForChildren(), isClean()); progress_ = null; } return progressBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1236,12 +1354,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.StreamStats) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.StreamStats) private static final com.google.cloud.bigquery.storage.v1.StreamStats DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.StreamStats(); } @@ -1250,27 +1368,27 @@ public static com.google.cloud.bigquery.storage.v1.StreamStats getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1285,6 +1403,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.StreamStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java index 04200f489f..aeaa0d4f33 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/StreamStatsOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; -public interface StreamStatsOrBuilder extends +public interface StreamStatsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.StreamStats) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; + * * @return Whether the progress field is set. */ boolean hasProgress(); /** + * + * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1.StreamStats.Progress progress = 2; + * * @return The progress. */ com.google.cloud.bigquery.storage.v1.StreamStats.Progress getProgress(); /** + * + * *
    * Represents the progress of the current stream.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java index f41c3d72cd..ce3a4143f4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchema.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * TableFieldSchema defines a single field/column within a table schema.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.TableFieldSchema} */ -public final class TableFieldSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TableFieldSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.TableFieldSchema) TableFieldSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableFieldSchema.newBuilder() to construct. private TableFieldSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableFieldSchema() { name_ = ""; type_ = 0; @@ -30,35 +48,35 @@ private TableFieldSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableFieldSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.TableProto + .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.TableProto + .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.TableFieldSchema.class, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.TableFieldSchema.class, + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder.class); } - /** - * Protobuf enum {@code google.cloud.bigquery.storage.v1.TableFieldSchema.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + /** Protobuf enum {@code google.cloud.bigquery.storage.v1.TableFieldSchema.Type} */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Illegal value
      * 
@@ -67,6 +85,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * 64K, UTF8
      * 
@@ -75,6 +95,8 @@ public enum Type */ STRING(1), /** + * + * *
      * 64-bit signed
      * 
@@ -83,6 +105,8 @@ public enum Type */ INT64(2), /** + * + * *
      * 64-bit IEEE floating point
      * 
@@ -91,6 +115,8 @@ public enum Type */ DOUBLE(3), /** + * + * *
      * Aggregate type
      * 
@@ -99,6 +125,8 @@ public enum Type */ STRUCT(4), /** + * + * *
      * 64K, Binary
      * 
@@ -107,6 +135,8 @@ public enum Type */ BYTES(5), /** + * + * *
      * 2-valued
      * 
@@ -115,6 +145,8 @@ public enum Type */ BOOL(6), /** + * + * *
      * 64-bit signed usec since UTC epoch
      * 
@@ -123,6 +155,8 @@ public enum Type */ TIMESTAMP(7), /** + * + * *
      * Civil date - Year, Month, Day
      * 
@@ -131,6 +165,8 @@ public enum Type */ DATE(8), /** + * + * *
      * Civil time - Hour, Minute, Second, Microseconds
      * 
@@ -139,6 +175,8 @@ public enum Type */ TIME(9), /** + * + * *
      * Combination of civil date and civil time
      * 
@@ -147,6 +185,8 @@ public enum Type */ DATETIME(10), /** + * + * *
      * Geography object
      * 
@@ -155,6 +195,8 @@ public enum Type */ GEOGRAPHY(11), /** + * + * *
      * Numeric value
      * 
@@ -163,6 +205,8 @@ public enum Type */ NUMERIC(12), /** + * + * *
      * BigNumeric value
      * 
@@ -171,6 +215,8 @@ public enum Type */ BIGNUMERIC(13), /** + * + * *
      * Interval
      * 
@@ -179,6 +225,8 @@ public enum Type */ INTERVAL(14), /** + * + * *
      * JSON, String
      * 
@@ -190,6 +238,8 @@ public enum Type ; /** + * + * *
      * Illegal value
      * 
@@ -198,6 +248,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * 64K, UTF8
      * 
@@ -206,6 +258,8 @@ public enum Type */ public static final int STRING_VALUE = 1; /** + * + * *
      * 64-bit signed
      * 
@@ -214,6 +268,8 @@ public enum Type */ public static final int INT64_VALUE = 2; /** + * + * *
      * 64-bit IEEE floating point
      * 
@@ -222,6 +278,8 @@ public enum Type */ public static final int DOUBLE_VALUE = 3; /** + * + * *
      * Aggregate type
      * 
@@ -230,6 +288,8 @@ public enum Type */ public static final int STRUCT_VALUE = 4; /** + * + * *
      * 64K, Binary
      * 
@@ -238,6 +298,8 @@ public enum Type */ public static final int BYTES_VALUE = 5; /** + * + * *
      * 2-valued
      * 
@@ -246,6 +308,8 @@ public enum Type */ public static final int BOOL_VALUE = 6; /** + * + * *
      * 64-bit signed usec since UTC epoch
      * 
@@ -254,6 +318,8 @@ public enum Type */ public static final int TIMESTAMP_VALUE = 7; /** + * + * *
      * Civil date - Year, Month, Day
      * 
@@ -262,6 +328,8 @@ public enum Type */ public static final int DATE_VALUE = 8; /** + * + * *
      * Civil time - Hour, Minute, Second, Microseconds
      * 
@@ -270,6 +338,8 @@ public enum Type */ public static final int TIME_VALUE = 9; /** + * + * *
      * Combination of civil date and civil time
      * 
@@ -278,6 +348,8 @@ public enum Type */ public static final int DATETIME_VALUE = 10; /** + * + * *
      * Geography object
      * 
@@ -286,6 +358,8 @@ public enum Type */ public static final int GEOGRAPHY_VALUE = 11; /** + * + * *
      * Numeric value
      * 
@@ -294,6 +368,8 @@ public enum Type */ public static final int NUMERIC_VALUE = 12; /** + * + * *
      * BigNumeric value
      * 
@@ -302,6 +378,8 @@ public enum Type */ public static final int BIGNUMERIC_VALUE = 13; /** + * + * *
      * Interval
      * 
@@ -310,6 +388,8 @@ public enum Type */ public static final int INTERVAL_VALUE = 14; /** + * + * *
      * JSON, String
      * 
@@ -318,7 +398,6 @@ public enum Type */ public static final int JSON_VALUE = 15; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -343,62 +422,77 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return STRING; - case 2: return INT64; - case 3: return DOUBLE; - case 4: return STRUCT; - case 5: return BYTES; - case 6: return BOOL; - case 7: return TIMESTAMP; - case 8: return DATE; - case 9: return TIME; - case 10: return DATETIME; - case 11: return GEOGRAPHY; - case 12: return NUMERIC; - case 13: return BIGNUMERIC; - case 14: return INTERVAL; - case 15: return JSON; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return STRING; + case 2: + return INT64; + case 3: + return DOUBLE; + case 4: + return STRUCT; + case 5: + return BYTES; + case 6: + return BOOL; + case 7: + return TIMESTAMP; + case 8: + return DATE; + case 9: + return TIME; + case 10: + return DATETIME; + case 11: + return GEOGRAPHY; + case 12: + return NUMERIC; + case 13: + return BIGNUMERIC; + case 14: + return INTERVAL; + case 15: + return JSON; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -415,12 +509,11 @@ private Type(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1.TableFieldSchema.Type) } - /** - * Protobuf enum {@code google.cloud.bigquery.storage.v1.TableFieldSchema.Mode} - */ - public enum Mode - implements com.google.protobuf.ProtocolMessageEnum { + /** Protobuf enum {@code google.cloud.bigquery.storage.v1.TableFieldSchema.Mode} */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Illegal value
      * 
@@ -428,22 +521,18 @@ public enum Mode * MODE_UNSPECIFIED = 0; */ MODE_UNSPECIFIED(0), - /** - * NULLABLE = 1; - */ + /** NULLABLE = 1; */ NULLABLE(1), - /** - * REQUIRED = 2; - */ + /** REQUIRED = 2; */ REQUIRED(2), - /** - * REPEATED = 3; - */ + /** REPEATED = 3; */ REPEATED(3), UNRECOGNIZED(-1), ; /** + * + * *
      * Illegal value
      * 
@@ -451,20 +540,13 @@ public enum Mode * MODE_UNSPECIFIED = 0; */ public static final int MODE_UNSPECIFIED_VALUE = 0; - /** - * NULLABLE = 1; - */ + /** NULLABLE = 1; */ public static final int NULLABLE_VALUE = 1; - /** - * REQUIRED = 2; - */ + /** REQUIRED = 2; */ public static final int REQUIRED_VALUE = 2; - /** - * REPEATED = 3; - */ + /** REPEATED = 3; */ public static final int REPEATED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -489,50 +571,53 @@ public static Mode valueOf(int value) { */ public static Mode forNumber(int value) { switch (value) { - case 0: return MODE_UNSPECIFIED; - case 1: return NULLABLE; - case 2: return REQUIRED; - case 3: return REPEATED; - default: return null; + case 0: + return MODE_UNSPECIFIED; + case 1: + return NULLABLE; + case 2: + return REQUIRED; + case 3: + return REPEATED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Mode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDescriptor() + .getEnumTypes() + .get(1); } private static final Mode[] VALUES = values(); - public static Mode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -550,9 +635,12 @@ private Mode(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -560,6 +648,7 @@ private Mode(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -568,14 +657,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -583,16 +673,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -603,114 +692,165 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** + * + * *
    * Required. The field data type.
    * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Required. The field data type.
    * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType() { - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type result = com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.forNumber(type_); - return result == null ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType() { + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type result = + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.forNumber(type_); + return result == null + ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.UNRECOGNIZED + : result; } public static final int MODE_FIELD_NUMBER = 3; private int mode_ = 0; /** + * + * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The mode. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode getMode() { - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode result = com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.forNumber(mode_); - return result == null ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode getMode() { + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode result = + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.UNRECOGNIZED + : result; } public static final int FIELDS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List fields_; /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getFieldsList() { return fields_; } /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getFieldsOrBuilderList() { return fields_; } /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index) { return fields_.get(index); } /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( @@ -719,14 +859,18 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsO } public static final int DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -735,29 +879,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -768,6 +912,8 @@ public java.lang.String getDescription() { public static final int MAX_LENGTH_FIELD_NUMBER = 7; private long maxLength_ = 0L; /** + * + * *
    * Optional. Maximum length of values of this field for STRINGS or BYTES.
    * If max_length is not specified, no maximum length constraint is imposed
@@ -780,6 +926,7 @@ public java.lang.String getDescription() {
    * 
* * int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxLength. */ @java.lang.Override @@ -790,6 +937,8 @@ public long getMaxLength() { public static final int PRECISION_FIELD_NUMBER = 8; private long precision_ = 0L; /** + * + * *
    * Optional. Precision (maximum number of total digits in base 10) and scale
    * (maximum number of digits in the fractional part in base 10) constraints
@@ -817,6 +966,7 @@ public long getMaxLength() {
    * 
* * int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The precision. */ @java.lang.Override @@ -827,11 +977,14 @@ public long getPrecision() { public static final int SCALE_FIELD_NUMBER = 9; private long scale_ = 0L; /** + * + * *
    * Optional. See documentation for precision.
    * 
* * int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scale. */ @java.lang.Override @@ -840,15 +993,19 @@ public long getScale() { } public static final int DEFAULT_VALUE_EXPRESSION_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object defaultValueExpression_ = ""; /** + * + * *
    * Optional. A SQL expression to specify the [default value]
    * (https://cloud.google.com/bigquery/docs/default-values) for this field.
    * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The defaultValueExpression. */ @java.lang.Override @@ -857,30 +1014,30 @@ public java.lang.String getDefaultValueExpression() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultValueExpression_ = s; return s; } } /** + * + * *
    * Optional. A SQL expression to specify the [default value]
    * (https://cloud.google.com/bigquery/docs/default-values) for this field.
    * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for defaultValueExpression. */ @java.lang.Override - public com.google.protobuf.ByteString - getDefaultValueExpressionBytes() { + public com.google.protobuf.ByteString getDefaultValueExpressionBytes() { java.lang.Object ref = defaultValueExpression_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultValueExpression_ = b; return b; } else { @@ -889,6 +1046,7 @@ public java.lang.String getDefaultValueExpression() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -900,15 +1058,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } - if (mode_ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.MODE_UNSPECIFIED.getNumber()) { + if (mode_ + != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, mode_); } for (int i = 0; i < fields_.size(); i++) { @@ -941,32 +1102,30 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } - if (mode_ != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, mode_); + if (mode_ + != com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, mode_); } for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, fields_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); } if (maxLength_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, maxLength_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxLength_); } if (precision_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, precision_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, precision_); } if (scale_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, scale_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultValueExpression_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, defaultValueExpression_); @@ -979,29 +1138,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.TableFieldSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.TableFieldSchema other = (com.google.cloud.bigquery.storage.v1.TableFieldSchema) obj; + com.google.cloud.bigquery.storage.v1.TableFieldSchema other = + (com.google.cloud.bigquery.storage.v1.TableFieldSchema) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; if (mode_ != other.mode_) return false; - if (!getFieldsList() - .equals(other.getFieldsList())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getMaxLength() - != other.getMaxLength()) return false; - if (getPrecision() - != other.getPrecision()) return false; - if (getScale() - != other.getScale()) return false; - if (!getDefaultValueExpression() - .equals(other.getDefaultValueExpression())) return false; + if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getMaxLength() != other.getMaxLength()) return false; + if (getPrecision() != other.getPrecision()) return false; + if (getScale() != other.getScale()) return false; + if (!getDefaultValueExpression().equals(other.getDefaultValueExpression())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1026,14 +1179,11 @@ public int hashCode() { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + MAX_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxLength()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxLength()); hash = (37 * hash) + PRECISION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getPrecision()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPrecision()); hash = (37 * hash) + SCALE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getScale()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getScale()); hash = (37 * hash) + DEFAULT_VALUE_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getDefaultValueExpression().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1042,129 +1192,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.TableFieldSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.TableFieldSchema prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1.TableFieldSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TableFieldSchema defines a single field/column within a table schema.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.TableFieldSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.TableFieldSchema) com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.TableProto + .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.TableProto + .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.TableFieldSchema.class, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder.class); + com.google.cloud.bigquery.storage.v1.TableFieldSchema.class, + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.TableFieldSchema.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1188,9 +1345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.TableProto + .internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; } @java.lang.Override @@ -1209,14 +1366,18 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema buildPartial() { - com.google.cloud.bigquery.storage.v1.TableFieldSchema result = new com.google.cloud.bigquery.storage.v1.TableFieldSchema(this); + com.google.cloud.bigquery.storage.v1.TableFieldSchema result = + new com.google.cloud.bigquery.storage.v1.TableFieldSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.TableFieldSchema result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1.TableFieldSchema result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); @@ -1260,38 +1421,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.TableFieldSchema public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.TableFieldSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.TableFieldSchema)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.TableFieldSchema) other); } else { super.mergeFrom(other); return this; @@ -1299,7 +1461,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.TableFieldSchema other) { - if (other == com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1329,9 +1492,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.TableFieldSchema o fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000008); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldsFieldBuilder() : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -1382,65 +1546,75 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - mode_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - com.google.cloud.bigquery.storage.v1.TableFieldSchema m = - input.readMessage( - com.google.cloud.bigquery.storage.v1.TableFieldSchema.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 34 - case 50: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 56: { - maxLength_ = input.readInt64(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 64: { - precision_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 72: { - scale_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 72 - case 82: { - defaultValueExpression_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.bigquery.storage.v1.TableFieldSchema m = + input.readMessage( + com.google.cloud.bigquery.storage.v1.TableFieldSchema.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 34 + case 50: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: + { + maxLength_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: + { + precision_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + scale_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 72 + case 82: + { + defaultValueExpression_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1450,10 +1624,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1461,13 +1638,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1476,6 +1653,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1483,15 +1662,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1499,6 +1677,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1506,18 +1686,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1525,6 +1709,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1534,6 +1719,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1541,12 +1728,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1556,22 +1745,33 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * Required. The field data type.
      * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Required. The field data type.
      * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1582,24 +1782,37 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * Required. The field data type.
      * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType() { - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type result = com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.forNumber(type_); - return result == null ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type result = + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.forNumber(type_); + return result == null + ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The field data type.
      * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -1613,11 +1826,16 @@ public Builder setType(com.google.cloud.bigquery.storage.v1.TableFieldSchema.Typ return this; } /** + * + * *
      * Required. The field data type.
      * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearType() { @@ -1629,22 +1847,33 @@ public Builder clearType() { private int mode_ = 0; /** + * + * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ @@ -1655,24 +1884,37 @@ public Builder setModeValue(int value) { return this; } /** + * + * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The mode. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode getMode() { - com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode result = com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.forNumber(mode_); - return result == null ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode result = + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The mode to set. * @return This builder for chaining. */ @@ -1686,11 +1928,16 @@ public Builder setMode(com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mod return this; } /** + * + * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMode() { @@ -1701,24 +1948,33 @@ public Builder clearMode() { } private java.util.List fields_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - fields_ = new java.util.ArrayList(fields_); + fields_ = + new java.util.ArrayList(fields_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> fieldsBuilder_; + com.google.cloud.bigquery.storage.v1.TableFieldSchema, + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> + fieldsBuilder_; /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getFieldsList() { if (fieldsBuilder_ == null) { @@ -1728,12 +1984,16 @@ public java.util.List get } } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getFieldsCount() { if (fieldsBuilder_ == null) { @@ -1743,12 +2003,16 @@ public int getFieldsCount() { } } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index) { if (fieldsBuilder_ == null) { @@ -1758,12 +2022,16 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index } } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFields( int index, com.google.cloud.bigquery.storage.v1.TableFieldSchema value) { @@ -1780,12 +2048,16 @@ public Builder setFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFields( int index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder builderForValue) { @@ -1799,12 +2071,16 @@ public Builder setFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addFields(com.google.cloud.bigquery.storage.v1.TableFieldSchema value) { if (fieldsBuilder_ == null) { @@ -1820,12 +2096,16 @@ public Builder addFields(com.google.cloud.bigquery.storage.v1.TableFieldSchema v return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addFields( int index, com.google.cloud.bigquery.storage.v1.TableFieldSchema value) { @@ -1842,12 +2122,16 @@ public Builder addFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addFields( com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder builderForValue) { @@ -1861,12 +2145,16 @@ public Builder addFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addFields( int index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder builderForValue) { @@ -1880,19 +2168,23 @@ public Builder addFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllFields( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -1900,12 +2192,16 @@ public Builder addAllFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearFields() { if (fieldsBuilder_ == null) { @@ -1918,12 +2214,16 @@ public Builder clearFields() { return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { @@ -1936,42 +2236,55 @@ public Builder removeFields(int index) { return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); } else { + return fields_.get(index); + } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getFieldsOrBuilderList() { + public java.util.List + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -1979,52 +2292,68 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsO } } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBuilder() { - return getFieldsFieldBuilder().addBuilder( - com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBuilder( int index) { - return getFieldsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to
      * STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.TableFieldSchema, + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>( - fields_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.TableFieldSchema, + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>( + fields_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; @@ -2032,18 +2361,20 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBu private java.lang.Object description_ = ""; /** + * + * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2052,20 +2383,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2073,28 +2405,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -2104,17 +2443,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; @@ -2122,8 +2465,10 @@ public Builder setDescriptionBytes( return this; } - private long maxLength_ ; + private long maxLength_; /** + * + * *
      * Optional. Maximum length of values of this field for STRINGS or BYTES.
      * If max_length is not specified, no maximum length constraint is imposed
@@ -2136,6 +2481,7 @@ public Builder setDescriptionBytes(
      * 
* * int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxLength. */ @java.lang.Override @@ -2143,6 +2489,8 @@ public long getMaxLength() { return maxLength_; } /** + * + * *
      * Optional. Maximum length of values of this field for STRINGS or BYTES.
      * If max_length is not specified, no maximum length constraint is imposed
@@ -2155,17 +2503,20 @@ public long getMaxLength() {
      * 
* * int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The maxLength to set. * @return This builder for chaining. */ public Builder setMaxLength(long value) { - + maxLength_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. Maximum length of values of this field for STRINGS or BYTES.
      * If max_length is not specified, no maximum length constraint is imposed
@@ -2178,6 +2529,7 @@ public Builder setMaxLength(long value) {
      * 
* * int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearMaxLength() { @@ -2187,8 +2539,10 @@ public Builder clearMaxLength() { return this; } - private long precision_ ; + private long precision_; /** + * + * *
      * Optional. Precision (maximum number of total digits in base 10) and scale
      * (maximum number of digits in the fractional part in base 10) constraints
@@ -2216,6 +2570,7 @@ public Builder clearMaxLength() {
      * 
* * int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The precision. */ @java.lang.Override @@ -2223,6 +2578,8 @@ public long getPrecision() { return precision_; } /** + * + * *
      * Optional. Precision (maximum number of total digits in base 10) and scale
      * (maximum number of digits in the fractional part in base 10) constraints
@@ -2250,17 +2607,20 @@ public long getPrecision() {
      * 
* * int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(long value) { - + precision_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Optional. Precision (maximum number of total digits in base 10) and scale
      * (maximum number of digits in the fractional part in base 10) constraints
@@ -2288,6 +2648,7 @@ public Builder setPrecision(long value) {
      * 
* * int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPrecision() { @@ -2297,13 +2658,16 @@ public Builder clearPrecision() { return this; } - private long scale_ ; + private long scale_; /** + * + * *
      * Optional. See documentation for precision.
      * 
* * int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scale. */ @java.lang.Override @@ -2311,27 +2675,33 @@ public long getScale() { return scale_; } /** + * + * *
      * Optional. See documentation for precision.
      * 
* * int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(long value) { - + scale_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Optional. See documentation for precision.
      * 
* * int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearScale() { @@ -2343,19 +2713,21 @@ public Builder clearScale() { private java.lang.Object defaultValueExpression_ = ""; /** + * + * *
      * Optional. A SQL expression to specify the [default value]
      * (https://cloud.google.com/bigquery/docs/default-values) for this field.
      * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The defaultValueExpression. */ public java.lang.String getDefaultValueExpression() { java.lang.Object ref = defaultValueExpression_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); defaultValueExpression_ = s; return s; @@ -2364,21 +2736,22 @@ public java.lang.String getDefaultValueExpression() { } } /** + * + * *
      * Optional. A SQL expression to specify the [default value]
      * (https://cloud.google.com/bigquery/docs/default-values) for this field.
      * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for defaultValueExpression. */ - public com.google.protobuf.ByteString - getDefaultValueExpressionBytes() { + public com.google.protobuf.ByteString getDefaultValueExpressionBytes() { java.lang.Object ref = defaultValueExpression_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); defaultValueExpression_ = b; return b; } else { @@ -2386,30 +2759,37 @@ public java.lang.String getDefaultValueExpression() { } } /** + * + * *
      * Optional. A SQL expression to specify the [default value]
      * (https://cloud.google.com/bigquery/docs/default-values) for this field.
      * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The defaultValueExpression to set. * @return This builder for chaining. */ - public Builder setDefaultValueExpression( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDefaultValueExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } defaultValueExpression_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * Optional. A SQL expression to specify the [default value]
      * (https://cloud.google.com/bigquery/docs/default-values) for this field.
      * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDefaultValueExpression() { @@ -2419,27 +2799,31 @@ public Builder clearDefaultValueExpression() { return this; } /** + * + * *
      * Optional. A SQL expression to specify the [default value]
      * (https://cloud.google.com/bigquery/docs/default-values) for this field.
      * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for defaultValueExpression to set. * @return This builder for chaining. */ - public Builder setDefaultValueExpressionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDefaultValueExpressionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); defaultValueExpression_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2449,12 +2833,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.TableFieldSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.TableFieldSchema) private static final com.google.cloud.bigquery.storage.v1.TableFieldSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.TableFieldSchema(); } @@ -2463,27 +2847,27 @@ public static com.google.cloud.bigquery.storage.v1.TableFieldSchema getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableFieldSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableFieldSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2498,6 +2882,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.TableFieldSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java index 3f7613add8..69a51f61a0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableFieldSchemaOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto package com.google.cloud.bigquery.storage.v1; -public interface TableFieldSchemaOrBuilder extends +public interface TableFieldSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.TableFieldSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -15,10 +33,13 @@ public interface TableFieldSchemaOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -26,119 +47,164 @@ public interface TableFieldSchemaOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The field data type.
    * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Required. The field data type.
    * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ com.google.cloud.bigquery.storage.v1.TableFieldSchema.Type getType(); /** + * + * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** + * + * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The mode. */ com.google.cloud.bigquery.storage.v1.TableFieldSchema.Mode getMode(); /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getFieldsList(); + java.util.List getFieldsList(); /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index); /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getFieldsCount(); /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to
    * STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( - int index); + com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index); /** + * + * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. Maximum length of values of this field for STRINGS or BYTES.
    * If max_length is not specified, no maximum length constraint is imposed
@@ -151,11 +217,14 @@ com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilde
    * 
* * int64 max_length = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The maxLength. */ long getMaxLength(); /** + * + * *
    * Optional. Precision (maximum number of total digits in base 10) and scale
    * (maximum number of digits in the fractional part in base 10) constraints
@@ -183,39 +252,48 @@ com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilde
    * 
* * int64 precision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The precision. */ long getPrecision(); /** + * + * *
    * Optional. See documentation for precision.
    * 
* * int64 scale = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The scale. */ long getScale(); /** + * + * *
    * Optional. A SQL expression to specify the [default value]
    * (https://cloud.google.com/bigquery/docs/default-values) for this field.
    * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The defaultValueExpression. */ java.lang.String getDefaultValueExpression(); /** + * + * *
    * Optional. A SQL expression to specify the [default value]
    * (https://cloud.google.com/bigquery/docs/default-values) for this field.
    * 
* * string default_value_expression = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for defaultValueExpression. */ - com.google.protobuf.ByteString - getDefaultValueExpressionBytes(); + com.google.protobuf.ByteString getDefaultValueExpressionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableName.java diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java new file mode 100644 index 0000000000..cae3e55f1b --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableProto.java @@ -0,0 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/table.proto + +package com.google.cloud.bigquery.storage.v1; + +public final class TableProto { + private TableProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/bigquery/storage/v1/table" + + ".proto\022 google.cloud.bigquery.storage.v1" + + "\032\037google/api/field_behavior.proto\"Q\n\013Tab" + + "leSchema\022B\n\006fields\030\001 \003(\01322.google.cloud." + + "bigquery.storage.v1.TableFieldSchema\"\254\005\n" + + "\020TableFieldSchema\022\021\n\004name\030\001 \001(\tB\003\340A\002\022J\n\004" + + "type\030\002 \001(\01627.google.cloud.bigquery.stora" + + "ge.v1.TableFieldSchema.TypeB\003\340A\002\022J\n\004mode" + + "\030\003 \001(\01627.google.cloud.bigquery.storage.v" + + "1.TableFieldSchema.ModeB\003\340A\001\022G\n\006fields\030\004" + + " \003(\01322.google.cloud.bigquery.storage.v1." + + "TableFieldSchemaB\003\340A\001\022\030\n\013description\030\006 \001" + + "(\tB\003\340A\001\022\027\n\nmax_length\030\007 \001(\003B\003\340A\001\022\026\n\tprec" + + "ision\030\010 \001(\003B\003\340A\001\022\022\n\005scale\030\t \001(\003B\003\340A\001\022%\n\030" + + "default_value_expression\030\n \001(\tB\003\340A\001\"\325\001\n\004" + + "Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001\022\t" + + "\n\005INT64\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRUCT\020\004\022\t\n\005BYT" + + "ES\020\005\022\010\n\004BOOL\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020\010\022" + + "\010\n\004TIME\020\t\022\014\n\010DATETIME\020\n\022\r\n\tGEOGRAPHY\020\013\022\013" + + "\n\007NUMERIC\020\014\022\016\n\nBIGNUMERIC\020\r\022\014\n\010INTERVAL\020" + + "\016\022\010\n\004JSON\020\017\"F\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" + + "\000\022\014\n\010NULLABLE\020\001\022\014\n\010REQUIRED\020\002\022\014\n\010REPEATE" + + "D\020\003B\272\001\n$com.google.cloud.bigquery.storag" + + "e.v1B\nTableProtoP\001Z>cloud.google.com/go/" + + "bigquery/storage/apiv1/storagepb;storage" + + "pb\252\002 Google.Cloud.BigQuery.Storage.V1\312\002 " + + "Google\\Cloud\\BigQuery\\Storage\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor, + new java.lang.String[] { + "Fields", + }); + internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1_TableFieldSchema_descriptor, + new java.lang.String[] { + "Name", + "Type", + "Mode", + "Fields", + "Description", + "MaxLength", + "Precision", + "Scale", + "DefaultValueExpression", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java index 01a4c8a7e9..46f703afbf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchema.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Schema of a table. This schema is a subset of
  * google.cloud.bigquery.v2.TableSchema containing information necessary to
@@ -12,48 +29,53 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1.TableSchema}
  */
-public final class TableSchema extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TableSchema extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.TableSchema)
     TableSchemaOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TableSchema.newBuilder() to construct.
   private TableSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TableSchema() {
     fields_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TableSchema();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1.TableProto
+        .internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1.TableProto
+        .internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1.TableSchema.class, com.google.cloud.bigquery.storage.v1.TableSchema.Builder.class);
+            com.google.cloud.bigquery.storage.v1.TableSchema.class,
+            com.google.cloud.bigquery.storage.v1.TableSchema.Builder.class);
   }
 
   public static final int FIELDS_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private java.util.List fields_;
   /**
+   *
+   *
    * 
    * Describes the fields in a table.
    * 
@@ -65,6 +87,8 @@ public java.util.List get return fields_; } /** + * + * *
    * Describes the fields in a table.
    * 
@@ -72,11 +96,13 @@ public java.util.List get * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ @java.lang.Override - public java.util.List + public java.util.List getFieldsOrBuilderList() { return fields_; } /** + * + * *
    * Describes the fields in a table.
    * 
@@ -88,6 +114,8 @@ public int getFieldsCount() { return fields_.size(); } /** + * + * *
    * Describes the fields in a table.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index return fields_.get(index); } /** + * + * *
    * Describes the fields in a table.
    * 
@@ -112,6 +142,7 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -123,8 +154,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } @@ -138,8 +168,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -149,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.TableSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.TableSchema other = (com.google.cloud.bigquery.storage.v1.TableSchema) obj; + com.google.cloud.bigquery.storage.v1.TableSchema other = + (com.google.cloud.bigquery.storage.v1.TableSchema) obj; - if (!getFieldsList() - .equals(other.getFieldsList())) return false; + if (!getFieldsList().equals(other.getFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -178,97 +207,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.TableSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.TableSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.TableSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.TableSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.TableSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Schema of a table. This schema is a subset of
    * google.cloud.bigquery.v2.TableSchema containing information necessary to
@@ -277,33 +313,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1.TableSchema}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.TableSchema)
       com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1.TableProto
+          .internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1.TableProto
+          .internal_static_google_cloud_bigquery_storage_v1_TableSchema_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1.TableSchema.class, com.google.cloud.bigquery.storage.v1.TableSchema.Builder.class);
+              com.google.cloud.bigquery.storage.v1.TableSchema.class,
+              com.google.cloud.bigquery.storage.v1.TableSchema.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1.TableSchema.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -319,9 +354,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1.TableProto.internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1.TableProto
+          .internal_static_google_cloud_bigquery_storage_v1_TableSchema_descriptor;
     }
 
     @java.lang.Override
@@ -340,14 +375,18 @@ public com.google.cloud.bigquery.storage.v1.TableSchema build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1.TableSchema buildPartial() {
-      com.google.cloud.bigquery.storage.v1.TableSchema result = new com.google.cloud.bigquery.storage.v1.TableSchema(this);
+      com.google.cloud.bigquery.storage.v1.TableSchema result =
+          new com.google.cloud.bigquery.storage.v1.TableSchema(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1.TableSchema result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.bigquery.storage.v1.TableSchema result) {
       if (fieldsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           fields_ = java.util.Collections.unmodifiableList(fields_);
@@ -367,38 +406,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.TableSchema resu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1.TableSchema) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1.TableSchema)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1.TableSchema) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -406,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.TableSchema other) {
-      if (other == com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance())
+        return this;
       if (fieldsBuilder_ == null) {
         if (!other.fields_.isEmpty()) {
           if (fields_.isEmpty()) {
@@ -425,9 +466,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.TableSchema other)
             fieldsBuilder_ = null;
             fields_ = other.fields_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            fieldsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getFieldsFieldBuilder() : null;
+            fieldsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getFieldsFieldBuilder()
+                    : null;
           } else {
             fieldsBuilder_.addAllMessages(other.fields_);
           }
@@ -459,25 +501,27 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.bigquery.storage.v1.TableFieldSchema m =
-                  input.readMessage(
-                      com.google.cloud.bigquery.storage.v1.TableFieldSchema.parser(),
-                      extensionRegistry);
-              if (fieldsBuilder_ == null) {
-                ensureFieldsIsMutable();
-                fields_.add(m);
-              } else {
-                fieldsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                com.google.cloud.bigquery.storage.v1.TableFieldSchema m =
+                    input.readMessage(
+                        com.google.cloud.bigquery.storage.v1.TableFieldSchema.parser(),
+                        extensionRegistry);
+                if (fieldsBuilder_ == null) {
+                  ensureFieldsIsMutable();
+                  fields_.add(m);
+                } else {
+                  fieldsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -487,21 +531,29 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List fields_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureFieldsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        fields_ = new java.util.ArrayList(fields_);
+        fields_ =
+            new java.util.ArrayList(fields_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> fieldsBuilder_;
+            com.google.cloud.bigquery.storage.v1.TableFieldSchema,
+            com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder,
+            com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>
+        fieldsBuilder_;
 
     /**
+     *
+     *
      * 
      * Describes the fields in a table.
      * 
@@ -516,6 +568,8 @@ public java.util.List get } } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -530,6 +584,8 @@ public int getFieldsCount() { } } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -544,6 +600,8 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index } } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -565,6 +623,8 @@ public Builder setFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -583,6 +643,8 @@ public Builder setFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -603,6 +665,8 @@ public Builder addFields(com.google.cloud.bigquery.storage.v1.TableFieldSchema v return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -624,6 +688,8 @@ public Builder addFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -642,6 +708,8 @@ public Builder addFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -660,6 +728,8 @@ public Builder addFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -667,11 +737,11 @@ public Builder addFields( * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ public Builder addAllFields( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -679,6 +749,8 @@ public Builder addAllFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -696,6 +768,8 @@ public Builder clearFields() { return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -713,6 +787,8 @@ public Builder removeFields(int index) { return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -724,6 +800,8 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder getFieldsBu return getFieldsFieldBuilder().getBuilder(index); } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -733,19 +811,22 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder getFieldsBu public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); } else { + return fields_.get(index); + } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Describes the fields in a table.
      * 
* * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsOrBuilderList() { + public java.util.List + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -753,6 +834,8 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsO } } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -760,10 +843,12 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsO * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBuilder() { - return getFieldsFieldBuilder().addBuilder( - com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -772,37 +857,43 @@ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBu */ public com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder addFieldsBuilder( int index) { - return getFieldsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.storage.v1.TableFieldSchema.getDefaultInstance()); } /** + * + * *
      * Describes the fields in a table.
      * 
* * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.TableFieldSchema, + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableFieldSchema, com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>( - fields_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.TableFieldSchema, + com.google.cloud.bigquery.storage.v1.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder>( + fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -812,12 +903,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.TableSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.TableSchema) private static final com.google.cloud.bigquery.storage.v1.TableSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.TableSchema(); } @@ -826,27 +917,27 @@ public static com.google.cloud.bigquery.storage.v1.TableSchema getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,6 +952,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.TableSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java index c709d5b562..fff23ddb63 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/TableSchemaOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/table.proto package com.google.cloud.bigquery.storage.v1; -public interface TableSchemaOrBuilder extends +public interface TableSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.TableSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ - java.util.List - getFieldsList(); + java.util.List getFieldsList(); /** + * + * *
    * Describes the fields in a table.
    * 
@@ -25,6 +44,8 @@ public interface TableSchemaOrBuilder extends */ com.google.cloud.bigquery.storage.v1.TableFieldSchema getFields(int index); /** + * + * *
    * Describes the fields in a table.
    * 
@@ -33,21 +54,24 @@ public interface TableSchemaOrBuilder extends */ int getFieldsCount(); /** + * + * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** + * + * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1.TableFieldSchema fields = 1; */ - com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder( - int index); + com.google.cloud.bigquery.storage.v1.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java index 8923664b46..4e10be31ab 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleState.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/storage.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Information on if the current connection is being throttled.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ThrottleState} */ -public final class ThrottleState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ThrottleState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.ThrottleState) ThrottleStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ThrottleState.newBuilder() to construct. private ThrottleState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ThrottleState() { - } + + private ThrottleState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ThrottleState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ThrottleState.class, com.google.cloud.bigquery.storage.v1.ThrottleState.Builder.class); + com.google.cloud.bigquery.storage.v1.ThrottleState.class, + com.google.cloud.bigquery.storage.v1.ThrottleState.Builder.class); } public static final int THROTTLE_PERCENT_FIELD_NUMBER = 1; private int throttlePercent_ = 0; /** + * + * *
    * How much this connection is being throttled. Zero means no throttling,
    * 100 means fully throttled.
    * 
* * int32 throttle_percent = 1; + * * @return The throttlePercent. */ @java.lang.Override @@ -64,6 +85,7 @@ public int getThrottlePercent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -75,8 +97,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (throttlePercent_ != 0) { output.writeInt32(1, throttlePercent_); } @@ -90,8 +111,7 @@ public int getSerializedSize() { size = 0; if (throttlePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, throttlePercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, throttlePercent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -101,15 +121,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.ThrottleState)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.ThrottleState other = (com.google.cloud.bigquery.storage.v1.ThrottleState) obj; + com.google.cloud.bigquery.storage.v1.ThrottleState other = + (com.google.cloud.bigquery.storage.v1.ThrottleState) obj; - if (getThrottlePercent() - != other.getThrottlePercent()) return false; + if (getThrottlePercent() != other.getThrottlePercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -129,129 +149,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.ThrottleState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.ThrottleState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.ThrottleState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information on if the current connection is being throttled.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.ThrottleState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.ThrottleState) com.google.cloud.bigquery.storage.v1.ThrottleStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ThrottleState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.ThrottleState.class, com.google.cloud.bigquery.storage.v1.ThrottleState.Builder.class); + com.google.cloud.bigquery.storage.v1.ThrottleState.class, + com.google.cloud.bigquery.storage.v1.ThrottleState.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.ThrottleState.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,9 +287,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StorageProto.internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StorageProto + .internal_static_google_cloud_bigquery_storage_v1_ThrottleState_descriptor; } @java.lang.Override @@ -282,8 +308,11 @@ public com.google.cloud.bigquery.storage.v1.ThrottleState build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.ThrottleState buildPartial() { - com.google.cloud.bigquery.storage.v1.ThrottleState result = new com.google.cloud.bigquery.storage.v1.ThrottleState(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.ThrottleState result = + new com.google.cloud.bigquery.storage.v1.ThrottleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -299,38 +328,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.ThrottleState re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.ThrottleState) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.ThrottleState)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.ThrottleState) other); } else { super.mergeFrom(other); return this; @@ -338,7 +368,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.ThrottleState other) { - if (other == com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.ThrottleState.getDefaultInstance()) + return this; if (other.getThrottlePercent() != 0) { setThrottlePercent(other.getThrottlePercent()); } @@ -368,17 +399,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - throttlePercent_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + throttlePercent_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -388,16 +421,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int throttlePercent_ ; + private int throttlePercent_; /** + * + * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; + * * @return The throttlePercent. */ @java.lang.Override @@ -405,29 +442,35 @@ public int getThrottlePercent() { return throttlePercent_; } /** + * + * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; + * * @param value The throttlePercent to set. * @return This builder for chaining. */ public Builder setThrottlePercent(int value) { - + throttlePercent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; + * * @return This builder for chaining. */ public Builder clearThrottlePercent() { @@ -436,9 +479,9 @@ public Builder clearThrottlePercent() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -448,12 +491,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.ThrottleState) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.ThrottleState) private static final com.google.cloud.bigquery.storage.v1.ThrottleState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.ThrottleState(); } @@ -462,27 +505,27 @@ public static com.google.cloud.bigquery.storage.v1.ThrottleState getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThrottleState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThrottleState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -497,6 +540,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.ThrottleState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java new file mode 100644 index 0000000000..2a6497bc37 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/ThrottleStateOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1/storage.proto + +package com.google.cloud.bigquery.storage.v1; + +public interface ThrottleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.ThrottleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * How much this connection is being throttled. Zero means no throttling,
+   * 100 means fully throttled.
+   * 
+ * + * int32 throttle_percent = 1; + * + * @return The throttlePercent. + */ + int getThrottlePercent(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java index 76f0e81612..f788332701 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStream.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * Information about a single stream that gets data inside the storage system.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.WriteStream} */ -public final class WriteStream extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WriteStream extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1.WriteStream) WriteStreamOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WriteStream.newBuilder() to construct. private WriteStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WriteStream() { name_ = ""; type_ = 0; @@ -28,39 +46,43 @@ private WriteStream() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteStream(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.WriteStream.class, com.google.cloud.bigquery.storage.v1.WriteStream.Builder.class); + com.google.cloud.bigquery.storage.v1.WriteStream.class, + com.google.cloud.bigquery.storage.v1.WriteStream.Builder.class); } /** + * + * *
    * Type enum of the stream.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1.WriteStream.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown type.
      * 
@@ -69,6 +91,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Data will commit automatically and appear as soon as the write is
      * acknowledged.
@@ -78,6 +102,8 @@ public enum Type
      */
     COMMITTED(1),
     /**
+     *
+     *
      * 
      * Data is invisible until the stream is committed.
      * 
@@ -86,6 +112,8 @@ public enum Type */ PENDING(2), /** + * + * *
      * Data is only visible up to the offset to which it was flushed.
      * 
@@ -97,6 +125,8 @@ public enum Type ; /** + * + * *
      * Unknown type.
      * 
@@ -105,6 +135,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Data will commit automatically and appear as soon as the write is
      * acknowledged.
@@ -114,6 +146,8 @@ public enum Type
      */
     public static final int COMMITTED_VALUE = 1;
     /**
+     *
+     *
      * 
      * Data is invisible until the stream is committed.
      * 
@@ -122,6 +156,8 @@ public enum Type */ public static final int PENDING_VALUE = 2; /** + * + * *
      * Data is only visible up to the offset to which it was flushed.
      * 
@@ -130,7 +166,6 @@ public enum Type */ public static final int BUFFERED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -155,50 +190,51 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return COMMITTED; - case 2: return PENDING; - case 3: return BUFFERED; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return COMMITTED; + case 2: + return PENDING; + case 3: + return BUFFERED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.bigquery.storage.v1.WriteStream.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -216,15 +252,18 @@ private Type(int value) { } /** + * + * *
    * Mode enum of the stream.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1.WriteStream.WriteMode} */ - public enum WriteMode - implements com.google.protobuf.ProtocolMessageEnum { + public enum WriteMode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown type.
      * 
@@ -233,6 +272,8 @@ public enum WriteMode */ WRITE_MODE_UNSPECIFIED(0), /** + * + * *
      * Insert new records into the table.
      * It is the default value if customers do not specify it.
@@ -245,6 +286,8 @@ public enum WriteMode
     ;
 
     /**
+     *
+     *
      * 
      * Unknown type.
      * 
@@ -253,6 +296,8 @@ public enum WriteMode */ public static final int WRITE_MODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Insert new records into the table.
      * It is the default value if customers do not specify it.
@@ -262,7 +307,6 @@ public enum WriteMode
      */
     public static final int INSERT_VALUE = 1;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -287,48 +331,47 @@ public static WriteMode valueOf(int value) {
      */
     public static WriteMode forNumber(int value) {
       switch (value) {
-        case 0: return WRITE_MODE_UNSPECIFIED;
-        case 1: return INSERT;
-        default: return null;
+        case 0:
+          return WRITE_MODE_UNSPECIFIED;
+        case 1:
+          return INSERT;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        WriteMode> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public WriteMode findValueByNumber(int number) {
-              return WriteMode.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public WriteMode findValueByNumber(int number) {
+            return WriteMode.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.bigquery.storage.v1.WriteStream.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final WriteMode[] VALUES = values();
 
-    public static WriteMode valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static WriteMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -346,15 +389,19 @@ private WriteMode(int value) {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -363,30 +410,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -397,38 +444,57 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** + * + * *
    * Immutable. Type of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Immutable. Type of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream.Type getType() { - com.google.cloud.bigquery.storage.v1.WriteStream.Type result = com.google.cloud.bigquery.storage.v1.WriteStream.Type.forNumber(type_); - return result == null ? com.google.cloud.bigquery.storage.v1.WriteStream.Type.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.WriteStream.Type getType() { + com.google.cloud.bigquery.storage.v1.WriteStream.Type result = + com.google.cloud.bigquery.storage.v1.WriteStream.Type.forNumber(type_); + return result == null + ? com.google.cloud.bigquery.storage.v1.WriteStream.Type.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -436,12 +502,16 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -449,12 +519,15 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -464,6 +537,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int COMMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp commitTime_; /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -471,7 +546,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the commitTime field is set. */ @java.lang.Override @@ -479,6 +556,8 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -486,7 +565,9 @@ public boolean hasCommitTime() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The commitTime. */ @java.lang.Override @@ -494,6 +575,8 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -501,7 +584,8 @@ public com.google.protobuf.Timestamp getCommitTime() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { @@ -511,6 +595,8 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { public static final int TABLE_SCHEMA_FIELD_NUMBER = 5; private com.google.cloud.bigquery.storage.v1.TableSchema tableSchema_; /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -518,7 +604,10 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tableSchema field is set. */ @java.lang.Override @@ -526,6 +615,8 @@ public boolean hasTableSchema() { return tableSchema_ != null; } /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -533,14 +624,21 @@ public boolean hasTableSchema() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tableSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableSchema getTableSchema() { - return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : tableSchema_; + return tableSchema_ == null + ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() + : tableSchema_; } /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -548,43 +646,65 @@ public com.google.cloud.bigquery.storage.v1.TableSchema getTableSchema() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaOrBuilder() { - return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : tableSchema_; + return tableSchema_ == null + ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() + : tableSchema_; } public static final int WRITE_MODE_FIELD_NUMBER = 7; private int writeMode_ = 0; /** + * + * *
    * Immutable. Mode of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for writeMode. */ - @java.lang.Override public int getWriteModeValue() { + @java.lang.Override + public int getWriteModeValue() { return writeMode_; } /** + * + * *
    * Immutable. Mode of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The writeMode. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode getWriteMode() { - com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode result = com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.forNumber(writeMode_); - return result == null ? com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode getWriteMode() { + com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode result = + com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.forNumber(writeMode_); + return result == null + ? com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.UNRECOGNIZED + : result; } public static final int LOCATION_FIELD_NUMBER = 8; + @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** + * + * *
    * Immutable. The geographic location where the stream's dataset resides. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -592,6 +712,7 @@ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaO
    * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The location. */ @java.lang.Override @@ -600,14 +721,15 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
    * Immutable. The geographic location where the stream's dataset resides. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -615,16 +737,15 @@ public java.lang.String getLocation() {
    * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -633,6 +754,7 @@ public java.lang.String getLocation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -644,12 +766,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != com.google.cloud.bigquery.storage.v1.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.bigquery.storage.v1.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } if (createTime_ != null) { @@ -661,7 +783,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (tableSchema_ != null) { output.writeMessage(5, getTableSchema()); } - if (writeMode_ != com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.WRITE_MODE_UNSPECIFIED.getNumber()) { + if (writeMode_ + != com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.WRITE_MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(7, writeMode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { @@ -679,25 +803,23 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.bigquery.storage.v1.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.bigquery.storage.v1.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (commitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCommitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCommitTime()); } if (tableSchema_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTableSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTableSchema()); } - if (writeMode_ != com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.WRITE_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, writeMode_); + if (writeMode_ + != com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.WRITE_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, writeMode_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, location_); @@ -710,34 +832,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1.WriteStream)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1.WriteStream other = (com.google.cloud.bigquery.storage.v1.WriteStream) obj; + com.google.cloud.bigquery.storage.v1.WriteStream other = + (com.google.cloud.bigquery.storage.v1.WriteStream) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasCommitTime() != other.hasCommitTime()) return false; if (hasCommitTime()) { - if (!getCommitTime() - .equals(other.getCommitTime())) return false; + if (!getCommitTime().equals(other.getCommitTime())) return false; } if (hasTableSchema() != other.hasTableSchema()) return false; if (hasTableSchema()) { - if (!getTableSchema() - .equals(other.getTableSchema())) return false; + if (!getTableSchema().equals(other.getTableSchema())) return false; } if (writeMode_ != other.writeMode_) return false; - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -774,130 +892,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1.WriteStream parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1.WriteStream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.WriteStream parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1.WriteStream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1.WriteStream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about a single stream that gets data inside the storage system.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1.WriteStream} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1.WriteStream) com.google.cloud.bigquery.storage.v1.WriteStreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_WriteStream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1.WriteStream.class, com.google.cloud.bigquery.storage.v1.WriteStream.Builder.class); + com.google.cloud.bigquery.storage.v1.WriteStream.class, + com.google.cloud.bigquery.storage.v1.WriteStream.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1.WriteStream.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -925,9 +1049,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1.StreamProto.internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1.StreamProto + .internal_static_google_cloud_bigquery_storage_v1_WriteStream_descriptor; } @java.lang.Override @@ -946,8 +1070,11 @@ public com.google.cloud.bigquery.storage.v1.WriteStream build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream buildPartial() { - com.google.cloud.bigquery.storage.v1.WriteStream result = new com.google.cloud.bigquery.storage.v1.WriteStream(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1.WriteStream result = + new com.google.cloud.bigquery.storage.v1.WriteStream(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -961,19 +1088,14 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.WriteStream resu result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.commitTime_ = commitTimeBuilder_ == null - ? commitTime_ - : commitTimeBuilder_.build(); + result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.tableSchema_ = tableSchemaBuilder_ == null - ? tableSchema_ - : tableSchemaBuilder_.build(); + result.tableSchema_ = + tableSchemaBuilder_ == null ? tableSchema_ : tableSchemaBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.writeMode_ = writeMode_; @@ -987,38 +1109,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1.WriteStream resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1.WriteStream) { - return mergeFrom((com.google.cloud.bigquery.storage.v1.WriteStream)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1.WriteStream) other); } else { super.mergeFrom(other); return this; @@ -1026,7 +1149,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1.WriteStream other) { - if (other == com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1.WriteStream.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1078,53 +1202,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getCommitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getTableSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 56: { - writeMode_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 66: { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getTableSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 56: + { + writeMode_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1134,23 +1260,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1159,21 +1288,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1181,30 +1311,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1214,18 +1351,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1235,22 +1376,33 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * Immutable. Type of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Immutable. Type of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1261,24 +1413,37 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * Immutable. Type of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream.Type getType() { - com.google.cloud.bigquery.storage.v1.WriteStream.Type result = com.google.cloud.bigquery.storage.v1.WriteStream.Type.forNumber(type_); - return result == null ? com.google.cloud.bigquery.storage.v1.WriteStream.Type.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1.WriteStream.Type result = + com.google.cloud.bigquery.storage.v1.WriteStream.Type.forNumber(type_); + return result == null + ? com.google.cloud.bigquery.storage.v1.WriteStream.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Immutable. Type of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -1292,11 +1457,16 @@ public Builder setType(com.google.cloud.bigquery.storage.v1.WriteStream.Type val return this; } /** + * + * *
      * Immutable. Type of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearType() { @@ -1308,42 +1478,61 @@ public Builder clearType() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1359,15 +1548,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1378,18 +1570,22 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1402,12 +1598,16 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1420,12 +1620,16 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1433,38 +1637,50 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is
      * the creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1472,8 +1688,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + commitTimeBuilder_; /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1481,13 +1702,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1495,17 +1721,24 @@ public boolean hasCommitTime() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1513,7 +1746,9 @@ public com.google.protobuf.Timestamp getCommitTime() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { @@ -1529,6 +1764,8 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1536,10 +1773,11 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCommitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimeBuilder_ == null) { commitTime_ = builderForValue.build(); } else { @@ -1550,6 +1788,8 @@ public Builder setCommitTime( return this; } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1557,13 +1797,15 @@ public Builder setCommitTime(
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - commitTime_ != null && - commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && commitTime_ != null + && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCommitTimeBuilder().mergeFrom(value); } else { commitTime_ = value; @@ -1576,6 +1818,8 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1583,7 +1827,9 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCommitTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1596,6 +1842,8 @@ public Builder clearCommitTime() { return this; } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1603,7 +1851,9 @@ public Builder clearCommitTime() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { bitField0_ |= 0x00000008; @@ -1611,6 +1861,8 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { return getCommitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1618,17 +1870,22 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { if (commitTimeBuilder_ != null) { return commitTimeBuilder_.getMessageOrBuilder(); } else { - return commitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; } } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1636,17 +1893,22 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCommitTimeFieldBuilder() { if (commitTimeBuilder_ == null) { - commitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCommitTime(), - getParentForChildren(), - isClean()); + commitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCommitTime(), getParentForChildren(), isClean()); commitTime_ = null; } return commitTimeBuilder_; @@ -1654,8 +1916,13 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { private com.google.cloud.bigquery.storage.v1.TableSchema tableSchema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> tableSchemaBuilder_; + com.google.cloud.bigquery.storage.v1.TableSchema, + com.google.cloud.bigquery.storage.v1.TableSchema.Builder, + com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> + tableSchemaBuilder_; /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1663,13 +1930,18 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tableSchema field is set. */ public boolean hasTableSchema() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1677,17 +1949,24 @@ public boolean hasTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tableSchema. */ public com.google.cloud.bigquery.storage.v1.TableSchema getTableSchema() { if (tableSchemaBuilder_ == null) { - return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : tableSchema_; + return tableSchema_ == null + ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() + : tableSchema_; } else { return tableSchemaBuilder_.getMessage(); } } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1695,7 +1974,9 @@ public com.google.cloud.bigquery.storage.v1.TableSchema getTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema value) { if (tableSchemaBuilder_ == null) { @@ -1711,6 +1992,8 @@ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema v return this; } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1718,7 +2001,9 @@ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema v
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTableSchema( com.google.cloud.bigquery.storage.v1.TableSchema.Builder builderForValue) { @@ -1732,6 +2017,8 @@ public Builder setTableSchema( return this; } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1739,13 +2026,16 @@ public Builder setTableSchema(
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema value) { if (tableSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - tableSchema_ != null && - tableSchema_ != com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && tableSchema_ != null + && tableSchema_ + != com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance()) { getTableSchemaBuilder().mergeFrom(value); } else { tableSchema_ = value; @@ -1758,6 +2048,8 @@ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema return this; } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1765,7 +2057,9 @@ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1.TableSchema
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTableSchema() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1778,6 +2072,8 @@ public Builder clearTableSchema() { return this; } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1785,7 +2081,9 @@ public Builder clearTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1.TableSchema.Builder getTableSchemaBuilder() { bitField0_ |= 0x00000010; @@ -1793,6 +2091,8 @@ public com.google.cloud.bigquery.storage.v1.TableSchema.Builder getTableSchemaBu return getTableSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1800,17 +2100,22 @@ public com.google.cloud.bigquery.storage.v1.TableSchema.Builder getTableSchemaBu
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaOrBuilder() { if (tableSchemaBuilder_ != null) { return tableSchemaBuilder_.getMessageOrBuilder(); } else { - return tableSchema_ == null ? - com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() : tableSchema_; + return tableSchema_ == null + ? com.google.cloud.bigquery.storage.v1.TableSchema.getDefaultInstance() + : tableSchema_; } } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1818,17 +2123,22 @@ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaO
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1.TableSchema, + com.google.cloud.bigquery.storage.v1.TableSchema.Builder, + com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder> getTableSchemaFieldBuilder() { if (tableSchemaBuilder_ == null) { - tableSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1.TableSchema, com.google.cloud.bigquery.storage.v1.TableSchema.Builder, com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>( - getTableSchema(), - getParentForChildren(), - isClean()); + tableSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1.TableSchema, + com.google.cloud.bigquery.storage.v1.TableSchema.Builder, + com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder>( + getTableSchema(), getParentForChildren(), isClean()); tableSchema_ = null; } return tableSchemaBuilder_; @@ -1836,22 +2146,33 @@ public com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaO private int writeMode_ = 0; /** + * + * *
      * Immutable. Mode of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for writeMode. */ - @java.lang.Override public int getWriteModeValue() { + @java.lang.Override + public int getWriteModeValue() { return writeMode_; } /** + * + * *
      * Immutable. Mode of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for writeMode to set. * @return This builder for chaining. */ @@ -1862,24 +2183,37 @@ public Builder setWriteModeValue(int value) { return this; } /** + * + * *
      * Immutable. Mode of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The writeMode. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode getWriteMode() { - com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode result = com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.forNumber(writeMode_); - return result == null ? com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode result = + com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.forNumber(writeMode_); + return result == null + ? com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode.UNRECOGNIZED + : result; } /** + * + * *
      * Immutable. Mode of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The writeMode to set. * @return This builder for chaining. */ @@ -1893,11 +2227,16 @@ public Builder setWriteMode(com.google.cloud.bigquery.storage.v1.WriteStream.Wri return this; } /** + * + * *
      * Immutable. Mode of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearWriteMode() { @@ -1909,6 +2248,8 @@ public Builder clearWriteMode() { private java.lang.Object location_ = ""; /** + * + * *
      * Immutable. The geographic location where the stream's dataset resides. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1916,13 +2257,13 @@ public Builder clearWriteMode() {
      * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -1931,6 +2272,8 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Immutable. The geographic location where the stream's dataset resides. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1938,15 +2281,14 @@ public java.lang.String getLocation() {
      * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -1954,6 +2296,8 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Immutable. The geographic location where the stream's dataset resides. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1961,18 +2305,22 @@ public java.lang.String getLocation() {
      * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } location_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Immutable. The geographic location where the stream's dataset resides. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1980,6 +2328,7 @@ public Builder setLocation(
      * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearLocation() { @@ -1989,6 +2338,8 @@ public Builder clearLocation() { return this; } /** + * + * *
      * Immutable. The geographic location where the stream's dataset resides. See
      * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1996,21 +2347,23 @@ public Builder clearLocation() {
      * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2020,12 +2373,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1.WriteStream) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1.WriteStream) private static final com.google.cloud.bigquery.storage.v1.WriteStream DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1.WriteStream(); } @@ -2034,27 +2387,27 @@ public static com.google.cloud.bigquery.storage.v1.WriteStream getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2069,6 +2422,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1.WriteStream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java index e9255cbb96..dcffa68a6f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamOrBuilder.java @@ -1,84 +1,128 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; -public interface WriteStreamOrBuilder extends +public interface WriteStreamOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1.WriteStream) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Immutable. Type of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Immutable. Type of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ com.google.cloud.bigquery.storage.v1.WriteStream.Type getType(); /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is
    * the creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -86,11 +130,15 @@ public interface WriteStreamOrBuilder extends
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -98,11 +146,15 @@ public interface WriteStreamOrBuilder extends
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -110,11 +162,14 @@ public interface WriteStreamOrBuilder extends
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder(); /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -122,11 +177,16 @@ public interface WriteStreamOrBuilder extends
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tableSchema field is set. */ boolean hasTableSchema(); /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -134,11 +194,16 @@ public interface WriteStreamOrBuilder extends
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tableSchema. */ com.google.cloud.bigquery.storage.v1.TableSchema getTableSchema(); /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -146,30 +211,44 @@ public interface WriteStreamOrBuilder extends
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1.TableSchemaOrBuilder getTableSchemaOrBuilder(); /** + * + * *
    * Immutable. Mode of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for writeMode. */ int getWriteModeValue(); /** + * + * *
    * Immutable. Mode of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1.WriteStream.WriteMode write_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The writeMode. */ com.google.cloud.bigquery.storage.v1.WriteStream.WriteMode getWriteMode(); /** + * + * *
    * Immutable. The geographic location where the stream's dataset resides. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -177,10 +256,13 @@ public interface WriteStreamOrBuilder extends
    * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
    * Immutable. The geographic location where the stream's dataset resides. See
    * https://cloud.google.com/bigquery/docs/locations for supported
@@ -188,8 +270,8 @@ public interface WriteStreamOrBuilder extends
    * 
* * string location = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java rename to proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java index ff4682ff27..7382e19730 100644 --- a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java +++ b/proto-google-cloud-bigquerystorage-v1/src/main/java/com/google/cloud/bigquery/storage/v1/WriteStreamView.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1/stream.proto package com.google.cloud.bigquery.storage.v1; /** + * + * *
  * WriteStreamView is a view enum that controls what details about a write
  * stream should be returned.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.bigquery.storage.v1.WriteStreamView}
  */
-public enum WriteStreamView
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum WriteStreamView implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * The default / unset value.
    * 
@@ -22,6 +40,8 @@ public enum WriteStreamView */ WRITE_STREAM_VIEW_UNSPECIFIED(0), /** + * + * *
    * The BASIC projection returns basic metadata about a write stream.  The
    * basic view does not include schema information.  This is the default view
@@ -32,6 +52,8 @@ public enum WriteStreamView
    */
   BASIC(1),
   /**
+   *
+   *
    * 
    * The FULL projection returns all available write stream metadata, including
    * the schema.  CreateWriteStream returns the full projection of write stream
@@ -45,6 +67,8 @@ public enum WriteStreamView
   ;
 
   /**
+   *
+   *
    * 
    * The default / unset value.
    * 
@@ -53,6 +77,8 @@ public enum WriteStreamView */ public static final int WRITE_STREAM_VIEW_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The BASIC projection returns basic metadata about a write stream.  The
    * basic view does not include schema information.  This is the default view
@@ -63,6 +89,8 @@ public enum WriteStreamView
    */
   public static final int BASIC_VALUE = 1;
   /**
+   *
+   *
    * 
    * The FULL projection returns all available write stream metadata, including
    * the schema.  CreateWriteStream returns the full projection of write stream
@@ -73,7 +101,6 @@ public enum WriteStreamView
    */
   public static final int FULL_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -98,49 +125,49 @@ public static WriteStreamView valueOf(int value) {
    */
   public static WriteStreamView forNumber(int value) {
     switch (value) {
-      case 0: return WRITE_STREAM_VIEW_UNSPECIFIED;
-      case 1: return BASIC;
-      case 2: return FULL;
-      default: return null;
+      case 0:
+        return WRITE_STREAM_VIEW_UNSPECIFIED;
+      case 1:
+        return BASIC;
+      case 2:
+        return FULL;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      WriteStreamView> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public WriteStreamView findValueByNumber(int number) {
-            return WriteStreamView.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public WriteStreamView findValueByNumber(int number) {
+          return WriteStreamView.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.cloud.bigquery.storage.v1.StreamProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final WriteStreamView[] VALUES = values();
 
-  public static WriteStreamView valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static WriteStreamView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -156,4 +183,3 @@ private WriteStreamView(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1.WriteStreamView)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto b/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto
rename to proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/annotations.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto b/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto
rename to proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/arrow.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto b/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto
rename to proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/avro.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto b/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto
rename to proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/protobuf.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto b/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto
rename to proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/storage.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto b/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto
rename to proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/stream.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto b/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto
rename to proto-google-cloud-bigquerystorage-v1/src/main/proto/google/cloud/bigquery/storage/v1/table.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java
similarity index 62%
rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java
rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java
index a90d4fb998..a66c26f895 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java
+++ b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ArrowProto.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta1/arrow.proto
 
@@ -5,82 +20,91 @@
 
 public final class ArrowProto {
   private ArrowProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
   }
-  public interface ArrowSchemaOrBuilder extends
+
+  public interface ArrowSchemaOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ArrowSchema)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; + * * @return The serializedSchema. */ com.google.protobuf.ByteString getSerializedSchema(); } /** + * + * *
    * Arrow schema.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ArrowSchema} */ - public static final class ArrowSchema extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ArrowSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ArrowSchema) ArrowSchemaOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ArrowSchema.newBuilder() to construct. private ArrowSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ArrowSchema() { serializedSchema_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ArrowSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.class, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.class, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder.class); } public static final int SERIALIZED_SCHEMA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; + * * @return The serializedSchema. */ @java.lang.Override @@ -89,6 +113,7 @@ public com.google.protobuf.ByteString getSerializedSchema() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -100,8 +125,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!serializedSchema_.isEmpty()) { output.writeBytes(1, serializedSchema_); } @@ -115,8 +139,7 @@ public int getSerializedSize() { size = 0; if (!serializedSchema_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, serializedSchema_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedSchema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -126,15 +149,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema other = (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) obj; + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema other = + (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) obj; - if (!getSerializedSchema() - .equals(other.getSerializedSchema())) return false; + if (!getSerializedSchema().equals(other.getSerializedSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,87 +177,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -244,39 +275,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Arrow schema.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ArrowSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ArrowSchema) com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.class, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.class, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -286,14 +320,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + .getDefaultInstance(); } @java.lang.Override @@ -307,13 +343,17 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema build() @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema result = new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema result = + new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.serializedSchema_ = serializedSchema_; @@ -324,46 +364,53 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.ArrowProto. public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + .getDefaultInstance()) return this; if (other.getSerializedSchema() != com.google.protobuf.ByteString.EMPTY) { setSerializedSchema(other.getSerializedSchema()); } @@ -393,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - serializedSchema_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + serializedSchema_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -413,15 +462,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedSchema_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * IPC serialized Arrow schema.
        * 
* * bytes serialized_schema = 1; + * * @return The serializedSchema. */ @java.lang.Override @@ -429,27 +483,35 @@ public com.google.protobuf.ByteString getSerializedSchema() { return serializedSchema_; } /** + * + * *
        * IPC serialized Arrow schema.
        * 
* * bytes serialized_schema = 1; + * * @param value The serializedSchema to set. * @return This builder for chaining. */ public Builder setSerializedSchema(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } serializedSchema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * IPC serialized Arrow schema.
        * 
* * bytes serialized_schema = 1; + * * @return This builder for chaining. */ public Builder clearSerializedSchema() { @@ -458,6 +520,7 @@ public Builder clearSerializedSchema() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -470,41 +533,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ArrowSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ArrowSchema) - private static final com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema(); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -516,89 +582,104 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ArrowRecordBatchOrBuilder extends + public interface ArrowRecordBatchOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * IPC serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; + * * @return The serializedRecordBatch. */ com.google.protobuf.ByteString getSerializedRecordBatch(); /** + * + * *
      * The count of rows in the returning block.
      * 
* * int64 row_count = 2; + * * @return The rowCount. */ long getRowCount(); } /** + * + * *
    * Arrow RecordBatch.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch} */ - public static final class ArrowRecordBatch extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ArrowRecordBatch extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch) ArrowRecordBatchOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ArrowRecordBatch.newBuilder() to construct. private ArrowRecordBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ArrowRecordBatch() { serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ArrowRecordBatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.class, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder.class); } public static final int SERIALIZED_RECORD_BATCH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * IPC serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; + * * @return The serializedRecordBatch. */ @java.lang.Override @@ -609,11 +690,14 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { public static final int ROW_COUNT_FIELD_NUMBER = 2; private long rowCount_ = 0L; /** + * + * *
      * The count of rows in the returning block.
      * 
* * int64 row_count = 2; + * * @return The rowCount. */ @java.lang.Override @@ -622,6 +706,7 @@ public long getRowCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -633,8 +718,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!serializedRecordBatch_.isEmpty()) { output.writeBytes(1, serializedRecordBatch_); } @@ -651,12 +735,10 @@ public int getSerializedSize() { size = 0; if (!serializedRecordBatch_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, serializedRecordBatch_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedRecordBatch_); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, rowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -666,17 +748,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch other = (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) obj; + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch other = + (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) obj; - if (!getSerializedRecordBatch() - .equals(other.getSerializedRecordBatch())) return false; - if (getRowCount() - != other.getRowCount()) return false; + if (!getSerializedRecordBatch().equals(other.getSerializedRecordBatch())) return false; + if (getRowCount() != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -691,95 +772,102 @@ public int hashCode() { hash = (37 * hash) + SERIALIZED_RECORD_BATCH_FIELD_NUMBER; hash = (53 * hash) + getSerializedRecordBatch().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -789,39 +877,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Arrow RecordBatch.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch) com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.class, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -832,19 +924,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch build() { - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -853,13 +948,17 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch bui @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result = new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result = + new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.serializedRecordBatch_ = serializedRecordBatch_; @@ -873,46 +972,54 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.ArrowProto. public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch)other); + if (other + instanceof com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + .getDefaultInstance()) return this; if (other.getSerializedRecordBatch() != com.google.protobuf.ByteString.EMPTY) { setSerializedRecordBatch(other.getSerializedRecordBatch()); } @@ -945,22 +1052,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - serializedRecordBatch_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + serializedRecordBatch_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -970,15 +1080,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * IPC serialized Arrow RecordBatch.
        * 
* * bytes serialized_record_batch = 1; + * * @return The serializedRecordBatch. */ @java.lang.Override @@ -986,27 +1101,35 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { return serializedRecordBatch_; } /** + * + * *
        * IPC serialized Arrow RecordBatch.
        * 
* * bytes serialized_record_batch = 1; + * * @param value The serializedRecordBatch to set. * @return This builder for chaining. */ public Builder setSerializedRecordBatch(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } serializedRecordBatch_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * IPC serialized Arrow RecordBatch.
        * 
* * bytes serialized_record_batch = 1; + * * @return This builder for chaining. */ public Builder clearSerializedRecordBatch() { @@ -1016,13 +1139,16 @@ public Builder clearSerializedRecordBatch() { return this; } - private long rowCount_ ; + private long rowCount_; /** + * + * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; + * * @return The rowCount. */ @java.lang.Override @@ -1030,27 +1156,33 @@ public long getRowCount() { return rowCount_; } /** + * + * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; + * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; + * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -1059,6 +1191,7 @@ public Builder clearRowCount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1071,41 +1204,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch) - private static final com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch(); } - public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowRecordBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowRecordBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1117,57 +1254,58 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { java.lang.String[] descriptorData = { - "\n1google/cloud/bigquery/storage/v1beta1/" + - "arrow.proto\022%google.cloud.bigquery.stora" + - "ge.v1beta1\"(\n\013ArrowSchema\022\031\n\021serialized_" + - "schema\030\001 \001(\014\"F\n\020ArrowRecordBatch\022\037\n\027seri" + - "alized_record_batch\030\001 \001(\014\022\021\n\trow_count\030\002" + - " \001(\003B|\n)com.google.cloud.bigquery.storag" + - "e.v1beta1B\nArrowProtoZCcloud.google.com/" + - "go/bigquery/storage/apiv1beta1/storagepb" + - ";storagepbb\006proto3" + "\n1google/cloud/bigquery/storage/v1beta1/" + + "arrow.proto\022%google.cloud.bigquery.stora" + + "ge.v1beta1\"(\n\013ArrowSchema\022\031\n\021serialized_" + + "schema\030\001 \001(\014\"F\n\020ArrowRecordBatch\022\037\n\027seri" + + "alized_record_batch\030\001 \001(\014\022\021\n\trow_count\030\002" + + " \001(\003B|\n)com.google.cloud.bigquery.storag" + + "e.v1beta1B\nArrowProtoZCcloud.google.com/" + + "go/bigquery/storage/apiv1beta1/storagepb" + + ";storagepbb\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor, - new java.lang.String[] { "SerializedSchema", }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowSchema_descriptor, + new java.lang.String[] { + "SerializedSchema", + }); internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor, - new java.lang.String[] { "SerializedRecordBatch", "RowCount", }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_ArrowRecordBatch_descriptor, + new java.lang.String[] { + "SerializedRecordBatch", "RowCount", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java index 5133827534..30181038ab 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java +++ b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/AvroProto.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/avro.proto @@ -5,96 +20,108 @@ public final class AvroProto { private AvroProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public interface AvroSchemaOrBuilder extends + + public interface AvroSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.AvroSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html
      * 
* * string schema = 1; + * * @return The schema. */ java.lang.String getSchema(); /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html
      * 
* * string schema = 1; + * * @return The bytes for schema. */ - com.google.protobuf.ByteString - getSchemaBytes(); + com.google.protobuf.ByteString getSchemaBytes(); } /** + * + * *
    * Avro schema.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.AvroSchema} */ - public static final class AvroSchema extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AvroSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.AvroSchema) AvroSchemaOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroSchema.newBuilder() to construct. private AvroSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AvroSchema() { schema_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AvroSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.class, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.class, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html
      * 
* * string schema = 1; + * * @return The schema. */ @java.lang.Override @@ -103,30 +130,30 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html
      * 
* * string schema = 1; + * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -135,6 +162,7 @@ public java.lang.String getSchema() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +174,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -171,15 +198,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema other = (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) obj; + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema other = + (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) obj; - if (!getSchema() - .equals(other.getSchema())) return false; + if (!getSchema().equals(other.getSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -199,87 +226,94 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -289,39 +323,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Avro schema.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.AvroSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.AvroSchema) com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.class, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.class, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -331,13 +367,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } @@ -352,13 +389,17 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema result = new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema result = + new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.schema_ = schema_; @@ -369,46 +410,52 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.AvroProto.A public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance()) + return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -440,17 +487,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,23 +509,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object schema_ = ""; /** + * + * *
        * Json serialized schema, as described at
        * https://avro.apache.org/docs/1.8.1/spec.html
        * 
* * string schema = 1; + * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -485,21 +537,22 @@ public java.lang.String getSchema() { } } /** + * + * *
        * Json serialized schema, as described at
        * https://avro.apache.org/docs/1.8.1/spec.html
        * 
* * string schema = 1; + * * @return The bytes for schema. */ - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -507,30 +560,37 @@ public java.lang.String getSchema() { } } /** + * + * *
        * Json serialized schema, as described at
        * https://avro.apache.org/docs/1.8.1/spec.html
        * 
* * string schema = 1; + * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Json serialized schema, as described at
        * https://avro.apache.org/docs/1.8.1/spec.html
        * 
* * string schema = 1; + * * @return This builder for chaining. */ public Builder clearSchema() { @@ -540,24 +600,29 @@ public Builder clearSchema() { return this; } /** + * + * *
        * Json serialized schema, as described at
        * https://avro.apache.org/docs/1.8.1/spec.html
        * 
* * string schema = 1; + * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -570,41 +635,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.AvroSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.AvroSchema) - private static final com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema(); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -616,89 +684,104 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface AvroRowsOrBuilder extends + public interface AvroRowsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.AvroRows) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; + * * @return The serializedBinaryRows. */ com.google.protobuf.ByteString getSerializedBinaryRows(); /** + * + * *
      * The count of rows in the returning block.
      * 
* * int64 row_count = 2; + * * @return The rowCount. */ long getRowCount(); } /** + * + * *
    * Avro rows.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.AvroRows} */ - public static final class AvroRows extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AvroRows extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.AvroRows) AvroRowsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroRows.newBuilder() to construct. private AvroRows(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AvroRows() { serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AvroRows(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.class, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.class, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder.class); } public static final int SERIALIZED_BINARY_ROWS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; + * * @return The serializedBinaryRows. */ @java.lang.Override @@ -709,11 +792,14 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { public static final int ROW_COUNT_FIELD_NUMBER = 2; private long rowCount_ = 0L; /** + * + * *
      * The count of rows in the returning block.
      * 
* * int64 row_count = 2; + * * @return The rowCount. */ @java.lang.Override @@ -722,6 +808,7 @@ public long getRowCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -733,8 +820,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!serializedBinaryRows_.isEmpty()) { output.writeBytes(1, serializedBinaryRows_); } @@ -751,12 +837,10 @@ public int getSerializedSize() { size = 0; if (!serializedBinaryRows_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, serializedBinaryRows_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedBinaryRows_); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, rowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -766,17 +850,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows other = (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) obj; + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows other = + (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) obj; - if (!getSerializedBinaryRows() - .equals(other.getSerializedBinaryRows())) return false; - if (getRowCount() - != other.getRowCount()) return false; + if (!getSerializedBinaryRows().equals(other.getSerializedBinaryRows())) return false; + if (getRowCount() != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -791,95 +874,101 @@ public int hashCode() { hash = (37 * hash) + SERIALIZED_BINARY_ROWS_FIELD_NUMBER; hash = (53 * hash) + getSerializedBinaryRows().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -889,39 +978,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Avro rows.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.AvroRows} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.AvroRows) com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.class, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.class, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -932,13 +1023,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance(); } @@ -953,13 +1045,17 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows result = new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows result = + new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.serializedBinaryRows_ = serializedBinaryRows_; @@ -973,38 +1069,41 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.AvroProto.A public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) other); } else { super.mergeFrom(other); return this; @@ -1012,7 +1111,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance()) + return this; if (other.getSerializedBinaryRows() != com.google.protobuf.ByteString.EMPTY) { setSerializedBinaryRows(other.getSerializedBinaryRows()); } @@ -1045,22 +1146,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - serializedBinaryRows_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + serializedBinaryRows_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1070,15 +1174,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
        * Binary serialized rows in a block.
        * 
* * bytes serialized_binary_rows = 1; + * * @return The serializedBinaryRows. */ @java.lang.Override @@ -1086,27 +1195,35 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { return serializedBinaryRows_; } /** + * + * *
        * Binary serialized rows in a block.
        * 
* * bytes serialized_binary_rows = 1; + * * @param value The serializedBinaryRows to set. * @return This builder for chaining. */ public Builder setSerializedBinaryRows(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } serializedBinaryRows_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Binary serialized rows in a block.
        * 
* * bytes serialized_binary_rows = 1; + * * @return This builder for chaining. */ public Builder clearSerializedBinaryRows() { @@ -1116,13 +1233,16 @@ public Builder clearSerializedBinaryRows() { return this; } - private long rowCount_ ; + private long rowCount_; /** + * + * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; + * * @return The rowCount. */ @java.lang.Override @@ -1130,27 +1250,33 @@ public long getRowCount() { return rowCount_; } /** + * + * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; + * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The count of rows in the returning block.
        * 
* * int64 row_count = 2; + * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -1159,6 +1285,7 @@ public Builder clearRowCount() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1171,41 +1298,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.AvroRows) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.AvroRows) - private static final com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows(); } - public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroRows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroRows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1217,56 +1347,57 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { java.lang.String[] descriptorData = { - "\n0google/cloud/bigquery/storage/v1beta1/" + - "avro.proto\022%google.cloud.bigquery.storag" + - "e.v1beta1\"\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"" + - "=\n\010AvroRows\022\036\n\026serialized_binary_rows\030\001 " + - "\001(\014\022\021\n\trow_count\030\002 \001(\003B{\n)com.google.clo" + - "ud.bigquery.storage.v1beta1B\tAvroProtoZC" + - "cloud.google.com/go/bigquery/storage/api" + - "v1beta1/storagepb;storagepbb\006proto3" + "\n0google/cloud/bigquery/storage/v1beta1/" + + "avro.proto\022%google.cloud.bigquery.storag" + + "e.v1beta1\"\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"" + + "=\n\010AvroRows\022\036\n\026serialized_binary_rows\030\001 " + + "\001(\014\022\021\n\trow_count\030\002 \001(\003B{\n)com.google.clo" + + "ud.bigquery.storage.v1beta1B\tAvroProtoZC" + + "cloud.google.com/go/bigquery/storage/api" + + "v1beta1/storagepb;storagepbb\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor, - new java.lang.String[] { "Schema", }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_AvroSchema_descriptor, + new java.lang.String[] { + "Schema", + }); internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor, - new java.lang.String[] { "SerializedBinaryRows", "RowCount", }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_AvroRows_descriptor, + new java.lang.String[] { + "SerializedBinaryRows", "RowCount", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ProjectName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java index c616d22a9e..b091d922be 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java +++ b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/ReadOptions.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/read_options.proto @@ -5,20 +20,21 @@ public final class ReadOptions { private ReadOptions() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } - public interface TableReadOptionsOrBuilder extends + + public interface TableReadOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.TableReadOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -27,11 +43,13 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @return A list containing the selectedFields. */ - java.util.List - getSelectedFieldsList(); + java.util.List getSelectedFieldsList(); /** + * + * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -40,10 +58,13 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @return The count of selectedFields. */ int getSelectedFieldsCount(); /** + * + * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -52,11 +73,14 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the element to return. * @return The selectedFields at the given index. */ java.lang.String getSelectedFields(int index); /** + * + * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -65,13 +89,15 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - com.google.protobuf.ByteString - getSelectedFieldsBytes(int index); + com.google.protobuf.ByteString getSelectedFieldsBytes(int index); /** + * + * *
      * Optional. SQL text filtering statement, similar to a WHERE clause in
      * a query. Aggregates are not supported.
@@ -83,10 +109,13 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * string row_restriction = 2; + * * @return The rowRestriction. */ java.lang.String getRowRestriction(); /** + * + * *
      * Optional. SQL text filtering statement, similar to a WHERE clause in
      * a query. Aggregates are not supported.
@@ -98,27 +127,30 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * string row_restriction = 2; + * * @return The bytes for rowRestriction. */ - com.google.protobuf.ByteString - getRowRestrictionBytes(); + com.google.protobuf.ByteString getRowRestrictionBytes(); } /** + * + * *
    * Options dictating how we read a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableReadOptions} */ - public static final class TableReadOptions extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TableReadOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.TableReadOptions) TableReadOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableReadOptions.newBuilder() to construct. private TableReadOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableReadOptions() { selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; rowRestriction_ = ""; @@ -126,33 +158,37 @@ private TableReadOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableReadOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions + .internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions + .internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.class, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.class, + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder.class); } public static final int SELECTED_FIELDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList selectedFields_; /** + * + * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -161,13 +197,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string selected_fields = 1; + * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList - getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { return selectedFields_; } /** + * + * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -176,12 +214,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string selected_fields = 1; + * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** + * + * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -190,6 +231,7 @@ public int getSelectedFieldsCount() {
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -197,6 +239,8 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** + * + * *
      * Optional. Names of the fields in the table that should be read. If empty,
      * all fields will be read. If the specified field is a nested field, all the
@@ -205,18 +249,21 @@ public java.lang.String getSelectedFields(int index) {
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString - getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } public static final int ROW_RESTRICTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object rowRestriction_ = ""; /** + * + * *
      * Optional. SQL text filtering statement, similar to a WHERE clause in
      * a query. Aggregates are not supported.
@@ -228,6 +275,7 @@ public java.lang.String getSelectedFields(int index) {
      * 
* * string row_restriction = 2; + * * @return The rowRestriction. */ @java.lang.Override @@ -236,14 +284,15 @@ public java.lang.String getRowRestriction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; } } /** + * + * *
      * Optional. SQL text filtering statement, similar to a WHERE clause in
      * a query. Aggregates are not supported.
@@ -255,16 +304,15 @@ public java.lang.String getRowRestriction() {
      * 
* * string row_restriction = 2; + * * @return The bytes for rowRestriction. */ @java.lang.Override - public com.google.protobuf.ByteString - getRowRestrictionBytes() { + public com.google.protobuf.ByteString getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -273,6 +321,7 @@ public java.lang.String getRowRestriction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,8 +333,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < selectedFields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectedFields_.getRaw(i)); } @@ -320,17 +368,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions)) { + if (!(obj + instanceof com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions other = (com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions) obj; + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions other = + (com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions) obj; - if (!getSelectedFieldsList() - .equals(other.getSelectedFieldsList())) return false; - if (!getRowRestriction() - .equals(other.getRowRestriction())) return false; + if (!getSelectedFieldsList().equals(other.getSelectedFieldsList())) return false; + if (!getRowRestriction().equals(other.getRowRestriction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,87 +402,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -444,39 +500,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Options dictating how we read a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableReadOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.TableReadOptions) com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions + .internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions + .internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.class, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.class, + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -488,19 +548,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions + .internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions build() { - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -509,14 +572,18 @@ public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions bu @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result = new com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions(this); + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result = + new com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result) { if (((bitField0_ & 0x00000001) != 0)) { selectedFields_ = selectedFields_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -524,7 +591,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta result.selectedFields_ = selectedFields_; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.rowRestriction_ = rowRestriction_; @@ -535,46 +603,54 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.ReadOptions public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions)other); + if (other + instanceof com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + .getDefaultInstance()) return this; if (!other.selectedFields_.isEmpty()) { if (selectedFields_.isEmpty()) { selectedFields_ = other.selectedFields_; @@ -616,23 +692,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSelectedFieldsIsMutable(); - selectedFields_.add(s); - break; - } // case 10 - case 18: { - rowRestriction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSelectedFieldsIsMutable(); + selectedFields_.add(s); + break; + } // case 10 + case 18: + { + rowRestriction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,16 +721,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList selectedFields_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSelectedFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { selectedFields_ = new com.google.protobuf.LazyStringArrayList(selectedFields_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -660,13 +744,15 @@ private void ensureSelectedFieldsIsMutable() {
        * 
* * repeated string selected_fields = 1; + * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList - getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { return selectedFields_.getUnmodifiableView(); } /** + * + * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -675,12 +761,15 @@ private void ensureSelectedFieldsIsMutable() {
        * 
* * repeated string selected_fields = 1; + * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** + * + * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -689,6 +778,7 @@ public int getSelectedFieldsCount() {
        * 
* * repeated string selected_fields = 1; + * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -696,6 +786,8 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** + * + * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -704,14 +796,16 @@ public java.lang.String getSelectedFields(int index) {
        * 
* * repeated string selected_fields = 1; + * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString - getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } /** + * + * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -720,19 +814,23 @@ public java.lang.String getSelectedFields(int index) {
        * 
* * repeated string selected_fields = 1; + * * @param index The index to set the value at. * @param value The selectedFields to set. * @return This builder for chaining. */ - public Builder setSelectedFields( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSelectedFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSelectedFieldsIsMutable(); selectedFields_.set(index, value); onChanged(); return this; } /** + * + * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -741,18 +839,22 @@ public Builder setSelectedFields(
        * 
* * repeated string selected_fields = 1; + * * @param value The selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFields( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSelectedFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSelectedFieldsIsMutable(); selectedFields_.add(value); onChanged(); return this; } /** + * + * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -761,18 +863,19 @@ public Builder addSelectedFields(
        * 
* * repeated string selected_fields = 1; + * * @param values The selectedFields to add. * @return This builder for chaining. */ - public Builder addAllSelectedFields( - java.lang.Iterable values) { + public Builder addAllSelectedFields(java.lang.Iterable values) { ensureSelectedFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, selectedFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectedFields_); onChanged(); return this; } /** + * + * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -781,6 +884,7 @@ public Builder addAllSelectedFields(
        * 
* * repeated string selected_fields = 1; + * * @return This builder for chaining. */ public Builder clearSelectedFields() { @@ -790,6 +894,8 @@ public Builder clearSelectedFields() { return this; } /** + * + * *
        * Optional. Names of the fields in the table that should be read. If empty,
        * all fields will be read. If the specified field is a nested field, all the
@@ -798,12 +904,14 @@ public Builder clearSelectedFields() {
        * 
* * repeated string selected_fields = 1; + * * @param value The bytes of the selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSelectedFieldsIsMutable(); selectedFields_.add(value); @@ -813,6 +921,8 @@ public Builder addSelectedFieldsBytes( private java.lang.Object rowRestriction_ = ""; /** + * + * *
        * Optional. SQL text filtering statement, similar to a WHERE clause in
        * a query. Aggregates are not supported.
@@ -824,13 +934,13 @@ public Builder addSelectedFieldsBytes(
        * 
* * string row_restriction = 2; + * * @return The rowRestriction. */ public java.lang.String getRowRestriction() { java.lang.Object ref = rowRestriction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; @@ -839,6 +949,8 @@ public java.lang.String getRowRestriction() { } } /** + * + * *
        * Optional. SQL text filtering statement, similar to a WHERE clause in
        * a query. Aggregates are not supported.
@@ -850,15 +962,14 @@ public java.lang.String getRowRestriction() {
        * 
* * string row_restriction = 2; + * * @return The bytes for rowRestriction. */ - public com.google.protobuf.ByteString - getRowRestrictionBytes() { + public com.google.protobuf.ByteString getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -866,6 +977,8 @@ public java.lang.String getRowRestriction() { } } /** + * + * *
        * Optional. SQL text filtering statement, similar to a WHERE clause in
        * a query. Aggregates are not supported.
@@ -877,18 +990,22 @@ public java.lang.String getRowRestriction() {
        * 
* * string row_restriction = 2; + * * @param value The rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestriction( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRowRestriction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } rowRestriction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Optional. SQL text filtering statement, similar to a WHERE clause in
        * a query. Aggregates are not supported.
@@ -900,6 +1017,7 @@ public Builder setRowRestriction(
        * 
* * string row_restriction = 2; + * * @return This builder for chaining. */ public Builder clearRowRestriction() { @@ -909,6 +1027,8 @@ public Builder clearRowRestriction() { return this; } /** + * + * *
        * Optional. SQL text filtering statement, similar to a WHERE clause in
        * a query. Aggregates are not supported.
@@ -920,18 +1040,21 @@ public Builder clearRowRestriction() {
        * 
* * string row_restriction = 2; + * * @param value The bytes for rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestrictionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRowRestrictionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); rowRestriction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -944,41 +1067,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.TableReadOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableReadOptions) - private static final com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions(); } - public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableReadOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableReadOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -990,45 +1117,45 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { java.lang.String[] descriptorData = { - "\n8google/cloud/bigquery/storage/v1beta1/" + - "read_options.proto\022%google.cloud.bigquer" + - "y.storage.v1beta1\"D\n\020TableReadOptions\022\027\n" + - "\017selected_fields\030\001 \003(\t\022\027\n\017row_restrictio" + - "n\030\002 \001(\tBp\n)com.google.cloud.bigquery.sto" + - "rage.v1beta1ZCcloud.google.com/go/bigque" + - "ry/storage/apiv1beta1/storagepb;storagep" + - "bb\006proto3" + "\n8google/cloud/bigquery/storage/v1beta1/" + + "read_options.proto\022%google.cloud.bigquer" + + "y.storage.v1beta1\"D\n\020TableReadOptions\022\027\n" + + "\017selected_fields\030\001 \003(\t\022\027\n\017row_restrictio" + + "n\030\002 \001(\tBp\n)com.google.cloud.bigquery.sto" + + "rage.v1beta1ZCcloud.google.com/go/bigque" + + "ry/storage/apiv1beta1/storagepb;storagep" + + "bb\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor, - new java.lang.String[] { "SelectedFields", "RowRestriction", }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_TableReadOptions_descriptor, + new java.lang.String[] { + "SelectedFields", "RowRestriction", + }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java index 0a00b49a0a..456f8108d7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java +++ b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/Storage.java @@ -1,3 +1,18 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta1/storage.proto @@ -5,25 +20,25 @@ public final class Storage { private Storage() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } /** + * + * *
    * Data format for input or output data.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta1.DataFormat} */ - public enum DataFormat - implements com.google.protobuf.ProtocolMessageEnum { + public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Data format is unspecified.
      * 
@@ -32,6 +47,8 @@ public enum DataFormat */ DATA_FORMAT_UNSPECIFIED(0), /** + * + * *
      * Avro is a standard open source row based file format.
      * See https://avro.apache.org/ for more details.
@@ -40,14 +57,14 @@ public enum DataFormat
      * AVRO = 1;
      */
     AVRO(1),
-    /**
-     * ARROW = 3;
-     */
+    /** ARROW = 3; */
     ARROW(3),
     UNRECOGNIZED(-1),
     ;
 
     /**
+     *
+     *
      * 
      * Data format is unspecified.
      * 
@@ -56,6 +73,8 @@ public enum DataFormat */ public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Avro is a standard open source row based file format.
      * See https://avro.apache.org/ for more details.
@@ -64,12 +83,9 @@ public enum DataFormat
      * AVRO = 1;
      */
     public static final int AVRO_VALUE = 1;
-    /**
-     * ARROW = 3;
-     */
+    /** ARROW = 3; */
     public static final int ARROW_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -94,49 +110,51 @@ public static DataFormat valueOf(int value) {
      */
     public static DataFormat forNumber(int value) {
       switch (value) {
-        case 0: return DATA_FORMAT_UNSPECIFIED;
-        case 1: return AVRO;
-        case 3: return ARROW;
-        default: return null;
+        case 0:
+          return DATA_FORMAT_UNSPECIFIED;
+        case 1:
+          return AVRO;
+        case 3:
+          return ARROW;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        DataFormat> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public DataFormat findValueByNumber(int number) {
-              return DataFormat.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public DataFormat findValueByNumber(int number) {
+            return DataFormat.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta1.Storage.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final DataFormat[] VALUES = values();
 
-    public static DataFormat valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static DataFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -154,15 +172,18 @@ private DataFormat(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Strategy for distributing data among multiple streams in a read session.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta1.ShardingStrategy} */ - public enum ShardingStrategy - implements com.google.protobuf.ProtocolMessageEnum { + public enum ShardingStrategy implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Same as LIQUID.
      * 
@@ -171,6 +192,8 @@ public enum ShardingStrategy */ SHARDING_STRATEGY_UNSPECIFIED(0), /** + * + * *
      * Assigns data to each stream based on the client's read rate. The faster the
      * client reads from a stream, the more data is assigned to the stream. In
@@ -182,6 +205,8 @@ public enum ShardingStrategy
      */
     LIQUID(1),
     /**
+     *
+     *
      * 
      * Assigns data to each stream such that roughly the same number of rows can
      * be read from each stream. Because the server-side unit for assigning data
@@ -198,6 +223,8 @@ public enum ShardingStrategy
     ;
 
     /**
+     *
+     *
      * 
      * Same as LIQUID.
      * 
@@ -206,6 +233,8 @@ public enum ShardingStrategy */ public static final int SHARDING_STRATEGY_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Assigns data to each stream based on the client's read rate. The faster the
      * client reads from a stream, the more data is assigned to the stream. In
@@ -217,6 +246,8 @@ public enum ShardingStrategy
      */
     public static final int LIQUID_VALUE = 1;
     /**
+     *
+     *
      * 
      * Assigns data to each stream such that roughly the same number of rows can
      * be read from each stream. Because the server-side unit for assigning data
@@ -230,7 +261,6 @@ public enum ShardingStrategy
      */
     public static final int BALANCED_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -255,40 +285,45 @@ public static ShardingStrategy valueOf(int value) {
      */
     public static ShardingStrategy forNumber(int value) {
       switch (value) {
-        case 0: return SHARDING_STRATEGY_UNSPECIFIED;
-        case 1: return LIQUID;
-        case 2: return BALANCED;
-        default: return null;
+        case 0:
+          return SHARDING_STRATEGY_UNSPECIFIED;
+        case 1:
+          return LIQUID;
+        case 2:
+          return BALANCED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        ShardingStrategy> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ShardingStrategy findValueByNumber(int number) {
-              return ShardingStrategy.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public ShardingStrategy findValueByNumber(int number) {
+                return ShardingStrategy.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage.getDescriptor().getEnumTypes().get(1);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta1.Storage.getDescriptor()
+          .getEnumTypes()
+          .get(1);
     }
 
     private static final ShardingStrategy[] VALUES = values();
@@ -296,8 +331,7 @@ public ShardingStrategy findValueByNumber(int number) {
     public static ShardingStrategy valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -314,87 +348,101 @@ private ShardingStrategy(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1beta1.ShardingStrategy)
   }
 
-  public interface StreamOrBuilder extends
+  public interface StreamOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.Stream)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } /** + * + * *
    * Information about a single data stream within a read session.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Stream} */ - public static final class Stream extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Stream extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.Stream) StreamOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Stream.newBuilder() to construct. private Stream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Stream() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Stream(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.class, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -403,30 +451,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
      * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -435,6 +483,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -446,8 +495,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -471,15 +519,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.Stream)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream other = (com.google.cloud.bigquery.storage.v1beta1.Storage.Stream) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.Stream) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -499,87 +547,94 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -589,39 +644,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information about a single data stream within a read session.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Stream} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.Stream) com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.class, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -631,9 +688,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor; } @java.lang.Override @@ -652,8 +709,11 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream result = new com.google.cloud.bigquery.storage.v1beta1.Storage.Stream(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream result = + new com.google.cloud.bigquery.storage.v1beta1.Storage.Stream(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -669,38 +729,41 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Str public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.Stream) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.Stream)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.Stream) other); } else { super.mergeFrom(other); return this; @@ -708,7 +771,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -740,17 +804,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -760,23 +826,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
        * Name of the stream, in the form
        * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
        * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -785,21 +854,22 @@ public java.lang.String getName() { } } /** + * + * *
        * Name of the stream, in the form
        * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
        * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -807,30 +877,37 @@ public java.lang.String getName() { } } /** + * + * *
        * Name of the stream, in the form
        * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
        * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Name of the stream, in the form
        * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -840,24 +917,29 @@ public Builder clearName() { return this; } /** + * + * *
        * Name of the stream, in the form
        * `projects/{project_id}/locations/{location}/streams/{stream_id}`.
        * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -870,12 +952,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.Stream) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.Stream) private static final com.google.cloud.bigquery.storage.v1beta1.Storage.Stream DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.Stream(); } @@ -884,27 +966,28 @@ public static com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -919,32 +1002,40 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface StreamPositionOrBuilder extends + public interface StreamPositionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.StreamPosition) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Identifier for a given Stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; + * * @return Whether the stream field is set. */ boolean hasStream(); /** + * + * *
      * Identifier for a given Stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; + * * @return The stream. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream(); /** + * + * *
      * Identifier for a given Stream.
      * 
@@ -954,67 +1045,76 @@ public interface StreamPositionOrBuilder extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder(); /** + * + * *
      * Position in the stream.
      * 
* * int64 offset = 2; + * * @return The offset. */ long getOffset(); } /** + * + * *
    * Expresses a point within a given stream using an offset position.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.StreamPosition} */ - public static final class StreamPosition extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StreamPosition extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.StreamPosition) StreamPositionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamPosition.newBuilder() to construct. private StreamPosition(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamPosition() { - } + + private StreamPosition() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamPosition(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.class, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder.class); } public static final int STREAM_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream stream_; /** + * + * *
      * Identifier for a given Stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; + * * @return Whether the stream field is set. */ @java.lang.Override @@ -1022,18 +1122,25 @@ public boolean hasStream() { return stream_ != null; } /** + * + * *
      * Identifier for a given Stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; + * * @return The stream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream() { - return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : stream_; } /** + * + * *
      * Identifier for a given Stream.
      * 
@@ -1042,17 +1149,22 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream() { */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder() { - return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : stream_; } public static final int OFFSET_FIELD_NUMBER = 2; private long offset_ = 0L; /** + * + * *
      * Position in the stream.
      * 
* * int64 offset = 2; + * * @return The offset. */ @java.lang.Override @@ -1061,6 +1173,7 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1072,8 +1185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (stream_ != null) { output.writeMessage(1, getStream()); } @@ -1090,12 +1202,10 @@ public int getSerializedSize() { size = 0; if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStream()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStream()); } if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, offset_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1105,20 +1215,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition other = (com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition) obj; if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream() - .equals(other.getStream())) return false; + if (!getStream().equals(other.getStream())) return false; } - if (getOffset() - != other.getOffset()) return false; + if (getOffset() != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1135,95 +1244,102 @@ public int hashCode() { hash = (53 * hash) + getStream().hashCode(); } hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1233,39 +1349,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Expresses a point within a given stream using an offset position.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.StreamPosition} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.StreamPosition) com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.class, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1280,14 +1399,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + .getDefaultInstance(); } @java.lang.Override @@ -1301,18 +1422,20 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition build() @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition result = new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition result = + new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.stream_ = streamBuilder_ == null - ? stream_ - : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.offset_ = offset_; @@ -1323,46 +1446,53 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Str public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + .getDefaultInstance()) return this; if (other.hasStream()) { mergeStream(other.getStream()); } @@ -1395,24 +1525,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - offset_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1422,38 +1553,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> streamBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + streamBuilder_; /** + * + * *
        * Identifier for a given Stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; + * * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Identifier for a given Stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; + * * @return The stream. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : stream_; } else { return streamBuilder_.getMessage(); } } /** + * + * *
        * Identifier for a given Stream.
        * 
@@ -1474,6 +1619,8 @@ public Builder setStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Strea return this; } /** + * + * *
        * Identifier for a given Stream.
        * 
@@ -1492,6 +1639,8 @@ public Builder setStream( return this; } /** + * + * *
        * Identifier for a given Stream.
        * 
@@ -1500,9 +1649,11 @@ public Builder setStream( */ public Builder mergeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - stream_ != null && - stream_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && stream_ != null + && stream_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream + .getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -1515,6 +1666,8 @@ public Builder mergeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Str return this; } /** + * + * *
        * Identifier for a given Stream.
        * 
@@ -1532,6 +1685,8 @@ public Builder clearStream() { return this; } /** + * + * *
        * Identifier for a given Stream.
        * 
@@ -1544,21 +1699,27 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea return getStreamFieldBuilder().getBuilder(); } /** + * + * *
        * Identifier for a given Stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder + getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null ? - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : stream_; } } /** + * + * *
        * Identifier for a given Stream.
        * 
@@ -1566,26 +1727,32 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre * .google.cloud.bigquery.storage.v1beta1.Stream stream = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( - getStream(), - getParentForChildren(), - isClean()); + streamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( + getStream(), getParentForChildren(), isClean()); stream_ = null; } return streamBuilder_; } - private long offset_ ; + private long offset_; /** + * + * *
        * Position in the stream.
        * 
* * int64 offset = 2; + * * @return The offset. */ @java.lang.Override @@ -1593,27 +1760,33 @@ public long getOffset() { return offset_; } /** + * + * *
        * Position in the stream.
        * 
* * int64 offset = 2; + * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Position in the stream.
        * 
* * int64 offset = 2; + * * @return This builder for chaining. */ public Builder clearOffset() { @@ -1622,6 +1795,7 @@ public Builder clearOffset() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1634,41 +1808,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.StreamPosition) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.StreamPosition) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamPosition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamPosition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1680,59 +1857,73 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ReadSessionOrBuilder extends + public interface ReadSessionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ReadSession) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
      * Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
@@ -1743,69 +1934,90 @@ public interface ReadSessionOrBuilder extends
     com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
 
     /**
+     *
+     *
      * 
      * Avro schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; + * * @return Whether the avroSchema field is set. */ boolean hasAvroSchema(); /** + * + * *
      * Avro schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; + * * @return The avroSchema. */ com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getAvroSchema(); /** + * + * *
      * Avro schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder getAvroSchemaOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder + getAvroSchemaOrBuilder(); /** + * + * *
      * Arrow schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; + * * @return Whether the arrowSchema field is set. */ boolean hasArrowSchema(); /** + * + * *
      * Arrow schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; + * * @return The arrowSchema. */ com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getArrowSchema(); /** + * + * *
      * Arrow schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder getArrowSchemaOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder + getArrowSchemaOrBuilder(); /** + * + * *
      * Streams associated with this session.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ - java.util.List - getStreamsList(); + java.util.List getStreamsList(); /** + * + * *
      * Streams associated with this session.
      * 
@@ -1814,6 +2026,8 @@ public interface ReadSessionOrBuilder extends */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int index); /** + * + * *
      * Streams associated with this session.
      * 
@@ -1822,15 +2036,19 @@ public interface ReadSessionOrBuilder extends */ int getStreamsCount(); /** + * + * *
      * Streams associated with this session.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** + * + * *
      * Streams associated with this session.
      * 
@@ -1841,74 +2059,100 @@ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamsOrBu int index); /** + * + * *
      * Table that this ReadSession is reading from.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; + * * @return Whether the tableReference field is set. */ boolean hasTableReference(); /** + * + * *
      * Table that this ReadSession is reading from.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; + * * @return The tableReference. */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + getTableReference(); /** + * + * *
      * Table that this ReadSession is reading from.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder + getTableReferenceOrBuilder(); /** + * + * *
      * Any modifiers which are applied when reading from the specified table.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; + * * @return Whether the tableModifiers field is set. */ boolean hasTableModifiers(); /** + * + * *
      * Any modifiers which are applied when reading from the specified table.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; + * * @return The tableModifiers. */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + getTableModifiers(); /** + * + * *
      * Any modifiers which are applied when reading from the specified table.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder + getTableModifiersOrBuilder(); /** + * + * *
      * The strategy to use for distributing data among the streams.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; + * * @return The enum numeric value on the wire for shardingStrategy. */ int getShardingStrategyValue(); /** + * + * *
      * The strategy to use for distributing data among the streams.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; + * * @return The shardingStrategy. */ com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy(); @@ -1916,21 +2160,24 @@ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamsOrBu public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.SchemaCase getSchemaCase(); } /** + * + * *
    * Information returned from a `CreateReadSession` request.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadSession} */ - public static final class ReadSession extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ReadSession extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ReadSession) ReadSessionOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadSession.newBuilder() to construct. private ReadSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReadSession() { name_ = ""; streams_ = java.util.Collections.emptyList(); @@ -1939,38 +2186,42 @@ private ReadSession() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadSession(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder.class); } private int schemaCase_ = 0; private java.lang.Object schema_; + public enum SchemaCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AVRO_SCHEMA(5), ARROW_SCHEMA(6), SCHEMA_NOT_SET(0); private final int value; + private SchemaCase(int value) { this.value = value; } @@ -1986,33 +2237,40 @@ public static SchemaCase valueOf(int value) { public static SchemaCase forNumber(int value) { switch (value) { - case 5: return AVRO_SCHEMA; - case 6: return ARROW_SCHEMA; - case 0: return SCHEMA_NOT_SET; - default: return null; + case 5: + return AVRO_SCHEMA; + case 6: + return ARROW_SCHEMA; + case 0: + return SCHEMA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SchemaCase - getSchemaCase() { - return SchemaCase.forNumber( - schemaCase_); + public SchemaCase getSchemaCase() { + return SchemaCase.forNumber(schemaCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
      * Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -2021,30 +2279,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
      * Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2055,12 +2313,15 @@ public java.lang.String getName() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -2068,12 +2329,15 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
      * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ @java.lang.Override @@ -2081,6 +2345,8 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
      * Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors.
@@ -2095,11 +2361,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
 
     public static final int AVRO_SCHEMA_FIELD_NUMBER = 5;
     /**
+     *
+     *
      * 
      * Avro schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; + * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -2107,21 +2376,26 @@ public boolean hasAvroSchema() { return schemaCase_ == 5; } /** + * + * *
      * Avro schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; + * * @return The avroSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getAvroSchema() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } /** + * + * *
      * Avro schema.
      * 
@@ -2129,20 +2403,24 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getAvroSch * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder + getAvroSchemaOrBuilder() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } public static final int ARROW_SCHEMA_FIELD_NUMBER = 6; /** + * + * *
      * Arrow schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; + * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -2150,21 +2428,26 @@ public boolean hasArrowSchema() { return schemaCase_ == 6; } /** + * + * *
      * Arrow schema.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; + * * @return The arrowSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getArrowSchema() { if (schemaCase_ == 6) { - return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); } /** + * + * *
      * Arrow schema.
      * 
@@ -2172,17 +2455,21 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getArrow * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder + getArrowSchemaOrBuilder() { if (schemaCase_ == 6) { - return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); } public static final int STREAMS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List streams_; /** + * + * *
      * Streams associated with this session.
      * 
@@ -2190,10 +2477,13 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ @java.lang.Override - public java.util.List getStreamsList() { + public java.util.List + getStreamsList() { return streams_; } /** + * + * *
      * Streams associated with this session.
      * 
@@ -2201,11 +2491,14 @@ public java.util.List * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getStreamsOrBuilderList() { return streams_; } /** + * + * *
      * Streams associated with this session.
      * 
@@ -2217,6 +2510,8 @@ public int getStreamsCount() { return streams_.size(); } /** + * + * *
      * Streams associated with this session.
      * 
@@ -2228,6 +2523,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int i return streams_.get(index); } /** + * + * *
      * Streams associated with this session.
      * 
@@ -2241,13 +2538,17 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre } public static final int TABLE_REFERENCE_FIELD_NUMBER = 7; - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference tableReference_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + tableReference_; /** + * + * *
      * Table that this ReadSession is reading from.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; + * * @return Whether the tableReference field is set. */ @java.lang.Override @@ -2255,18 +2556,27 @@ public boolean hasTableReference() { return tableReference_ != null; } /** + * + * *
      * Table that this ReadSession is reading from.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; + * * @return The tableReference. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference() { - return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + getTableReference() { + return tableReference_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance() + : tableReference_; } /** + * + * *
      * Table that this ReadSession is reading from.
      * 
@@ -2274,18 +2584,26 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableRefere * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder() { - return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder + getTableReferenceOrBuilder() { + return tableReference_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance() + : tableReference_; } public static final int TABLE_MODIFIERS_FIELD_NUMBER = 8; - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers tableModifiers_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + tableModifiers_; /** + * + * *
      * Any modifiers which are applied when reading from the specified table.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; + * * @return Whether the tableModifiers field is set. */ @java.lang.Override @@ -2293,18 +2611,27 @@ public boolean hasTableModifiers() { return tableModifiers_ != null; } /** + * + * *
      * Any modifiers which are applied when reading from the specified table.
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; + * * @return The tableModifiers. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers() { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + getTableModifiers() { + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance() + : tableModifiers_; } /** + * + * *
      * Any modifiers which are applied when reading from the specified table.
      * 
@@ -2312,37 +2639,55 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifi * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder() { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder + getTableModifiersOrBuilder() { + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance() + : tableModifiers_; } public static final int SHARDING_STRATEGY_FIELD_NUMBER = 9; private int shardingStrategy_ = 0; /** + * + * *
      * The strategy to use for distributing data among the streams.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; + * * @return The enum numeric value on the wire for shardingStrategy. */ - @java.lang.Override public int getShardingStrategyValue() { + @java.lang.Override + public int getShardingStrategyValue() { return shardingStrategy_; } /** + * + * *
      * The strategy to use for distributing data among the streams.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; + * * @return The shardingStrategy. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber(shardingStrategy_); - return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy + getShardingStrategy() { + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber( + shardingStrategy_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2354,8 +2699,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2366,10 +2710,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(4, streams_.get(i)); } if (schemaCase_ == 5) { - output.writeMessage(5, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_); + output.writeMessage( + 5, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_); } if (schemaCase_ == 6) { - output.writeMessage(6, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_); + output.writeMessage( + 6, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_); } if (tableReference_ != null) { output.writeMessage(7, getTableReference()); @@ -2377,7 +2723,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (tableModifiers_ != null) { output.writeMessage(8, getTableModifiers()); } - if (shardingStrategy_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.SHARDING_STRATEGY_UNSPECIFIED.getNumber()) { + if (shardingStrategy_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy + .SHARDING_STRATEGY_UNSPECIFIED + .getNumber()) { output.writeEnum(9, shardingStrategy_); } getUnknownFields().writeTo(output); @@ -2393,32 +2742,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, streams_.get(i)); } if (schemaCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_); } if (schemaCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_); } if (tableReference_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTableReference()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTableReference()); } if (tableModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getTableModifiers()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTableModifiers()); } - if (shardingStrategy_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.SHARDING_STRATEGY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, shardingStrategy_); + if (shardingStrategy_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy + .SHARDING_STRATEGY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, shardingStrategy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2428,42 +2777,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession other = (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } - if (!getStreamsList() - .equals(other.getStreamsList())) return false; + if (!getStreamsList().equals(other.getStreamsList())) return false; if (hasTableReference() != other.hasTableReference()) return false; if (hasTableReference()) { - if (!getTableReference() - .equals(other.getTableReference())) return false; + if (!getTableReference().equals(other.getTableReference())) return false; } if (hasTableModifiers() != other.hasTableModifiers()) return false; if (hasTableModifiers()) { - if (!getTableModifiers() - .equals(other.getTableModifiers())) return false; + if (!getTableModifiers().equals(other.getTableModifiers())) return false; } if (shardingStrategy_ != other.shardingStrategy_) return false; if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 5: - if (!getAvroSchema() - .equals(other.getAvroSchema())) return false; + if (!getAvroSchema().equals(other.getAvroSchema())) return false; break; case 6: - if (!getArrowSchema() - .equals(other.getArrowSchema())) return false; + if (!getArrowSchema().equals(other.getArrowSchema())) return false; break; case 0: default: @@ -2517,87 +2860,94 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2607,39 +2957,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information returned from a `CreateReadSession` request.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadSession} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ReadSession) com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2680,13 +3032,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance(); } @@ -2701,15 +3054,19 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession(this); + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result = + new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -2721,40 +3078,37 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta } } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = + expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.tableReference_ = tableReferenceBuilder_ == null - ? tableReference_ - : tableReferenceBuilder_.build(); + result.tableReference_ = + tableReferenceBuilder_ == null ? tableReference_ : tableReferenceBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.tableModifiers_ = tableModifiersBuilder_ == null - ? tableModifiers_ - : tableModifiersBuilder_.build(); + result.tableModifiers_ = + tableModifiersBuilder_ == null ? tableModifiers_ : tableModifiersBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.shardingStrategy_ = shardingStrategy_; } } - private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { + private void buildPartialOneofs( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession result) { result.schemaCase_ = schemaCase_; result.schema_ = this.schema_; - if (schemaCase_ == 5 && - avroSchemaBuilder_ != null) { + if (schemaCase_ == 5 && avroSchemaBuilder_ != null) { result.schema_ = avroSchemaBuilder_.build(); } - if (schemaCase_ == 6 && - arrowSchemaBuilder_ != null) { + if (schemaCase_ == 6 && arrowSchemaBuilder_ != null) { result.schema_ = arrowSchemaBuilder_.build(); } } @@ -2763,46 +3117,52 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta1.Storag public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -2829,9 +3189,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadS streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000010); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStreamsFieldBuilder() : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStreamsFieldBuilder() + : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -2847,17 +3208,20 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadS setShardingStrategyValue(other.getShardingStrategyValue()); } switch (other.getSchemaCase()) { - case AVRO_SCHEMA: { - mergeAvroSchema(other.getAvroSchema()); - break; - } - case ARROW_SCHEMA: { - mergeArrowSchema(other.getArrowSchema()); - break; - } - case SCHEMA_NOT_SET: { - break; - } + case AVRO_SCHEMA: + { + mergeAvroSchema(other.getAvroSchema()); + break; + } + case ARROW_SCHEMA: + { + mergeArrowSchema(other.getArrowSchema()); + break; + } + case SCHEMA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2885,70 +3249,71 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: { - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.parser(), - extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - input.readMessage( - getAvroSchemaFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 5; - break; - } // case 42 - case 50: { - input.readMessage( - getArrowSchemaFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getTableReferenceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - input.readMessage( - getTableModifiersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - case 72: { - shardingStrategy_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 72 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage(getAvroSchemaFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getArrowSchemaFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getTableReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + getTableModifiersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 72: + { + shardingStrategy_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2958,12 +3323,12 @@ public Builder mergeFrom( } // finally return this; } + private int schemaCase_ = 0; private java.lang.Object schema_; - public SchemaCase - getSchemaCase() { - return SchemaCase.forNumber( - schemaCase_); + + public SchemaCase getSchemaCase() { + return SchemaCase.forNumber(schemaCase_); } public Builder clearSchema() { @@ -2977,19 +3342,21 @@ public Builder clearSchema() { private java.lang.Object name_ = ""; /** + * + * *
        * Unique identifier for the session, in the form
        * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
        * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -2998,21 +3365,22 @@ public java.lang.String getName() { } } /** + * + * *
        * Unique identifier for the session, in the form
        * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
        * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3020,30 +3388,37 @@ public java.lang.String getName() { } } /** + * + * *
        * Unique identifier for the session, in the form
        * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
        * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Unique identifier for the session, in the form
        * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
        * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3053,18 +3428,22 @@ public Builder clearName() { return this; } /** + * + * *
        * Unique identifier for the session, in the form
        * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
        * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3074,36 +3453,49 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
        * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
        * 
* * .google.protobuf.Timestamp expire_time = 2; + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3125,6 +3517,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3132,8 +3526,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
        *
        * .google.protobuf.Timestamp expire_time = 2;
        */
-      public Builder setExpireTime(
-          com.google.protobuf.Timestamp.Builder builderForValue) {
+      public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
         if (expireTimeBuilder_ == null) {
           expireTime_ = builderForValue.build();
         } else {
@@ -3144,6 +3537,8 @@ public Builder setExpireTime(
         return this;
       }
       /**
+       *
+       *
        * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3153,9 +3548,9 @@ public Builder setExpireTime(
        */
       public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
         if (expireTimeBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            expireTime_ != null &&
-            expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && expireTime_ != null
+              && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
             getExpireTimeBuilder().mergeFrom(value);
           } else {
             expireTime_ = value;
@@ -3168,6 +3563,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3186,7 +3583,9 @@ public Builder clearExpireTime() {
         return this;
       }
       /**
-       * 
+       *
+       *
+       * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
        * 
@@ -3199,6 +3598,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3210,11 +3611,14 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
         if (expireTimeBuilder_ != null) {
           return expireTimeBuilder_.getMessageOrBuilder();
         } else {
-          return expireTime_ == null ?
-              com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+          return expireTime_ == null
+              ? com.google.protobuf.Timestamp.getDefaultInstance()
+              : expireTime_;
         }
       }
       /**
+       *
+       *
        * 
        * Time at which the session becomes invalid. After this time, subsequent
        * requests to read this Session will return errors.
@@ -3223,27 +3627,36 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
        * .google.protobuf.Timestamp expire_time = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+              com.google.protobuf.Timestamp,
+              com.google.protobuf.Timestamp.Builder,
+              com.google.protobuf.TimestampOrBuilder>
           getExpireTimeFieldBuilder() {
         if (expireTimeBuilder_ == null) {
-          expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                  getExpireTime(),
-                  getParentForChildren(),
-                  isClean());
+          expireTimeBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Timestamp,
+                  com.google.protobuf.Timestamp.Builder,
+                  com.google.protobuf.TimestampOrBuilder>(
+                  getExpireTime(), getParentForChildren(), isClean());
           expireTime_ = null;
         }
         return expireTimeBuilder_;
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder> avroSchemaBuilder_;
+              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema,
+              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder,
+              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder>
+          avroSchemaBuilder_;
       /**
+       *
+       *
        * 
        * Avro schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; + * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -3251,11 +3664,14 @@ public boolean hasAvroSchema() { return schemaCase_ == 5; } /** + * + * *
        * Avro schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; + * * @return The avroSchema. */ @java.lang.Override @@ -3264,22 +3680,27 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema getAvroSch if (schemaCase_ == 5) { return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; } - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema + .getDefaultInstance(); } else { if (schemaCase_ == 5) { return avroSchemaBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema + .getDefaultInstance(); } } /** + * + * *
        * Avro schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ - public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema value) { + public Builder setAvroSchema( + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema value) { if (avroSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3293,6 +3714,8 @@ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta1.AvroProto return this; } /** + * + * *
        * Avro schema.
        * 
@@ -3311,18 +3734,26 @@ public Builder setAvroSchema( return this; } /** + * + * *
        * Avro schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ - public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema value) { + public Builder mergeAvroSchema( + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema value) { if (avroSchemaBuilder_ == null) { - if (schemaCase_ == 5 && - schema_ != com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance()) { - schema_ = com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_) - .mergeFrom(value).buildPartial(); + if (schemaCase_ == 5 + && schema_ + != com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema + .getDefaultInstance()) { + schema_ = + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.newBuilder( + (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -3338,6 +3769,8 @@ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta1.AvroPro return this; } /** + * + * *
        * Avro schema.
        * 
@@ -3361,16 +3794,21 @@ public Builder clearAvroSchema() { return this; } /** + * + * *
        * Avro schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder getAvroSchemaBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder + getAvroSchemaBuilder() { return getAvroSchemaFieldBuilder().getBuilder(); } /** + * + * *
        * Avro schema.
        * 
@@ -3378,17 +3816,21 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder ge * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder + getAvroSchemaOrBuilder() { if ((schemaCase_ == 5) && (avroSchemaBuilder_ != null)) { return avroSchemaBuilder_.getMessageOrBuilder(); } else { if (schemaCase_ == 5) { return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_; } - return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema + .getDefaultInstance(); } } /** + * + * *
        * Avro schema.
        * 
@@ -3396,14 +3838,20 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder g * .google.cloud.bigquery.storage.v1beta1.AvroSchema avro_schema = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder> getAvroSchemaFieldBuilder() { if (avroSchemaBuilder_ == null) { if (!(schemaCase_ == 5)) { - schema_ = com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); + schema_ = + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.getDefaultInstance(); } - avroSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder>( + avroSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchema) schema_, getParentForChildren(), isClean()); @@ -3415,13 +3863,19 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroSchemaOrBuilder g } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder> arrowSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder> + arrowSchemaBuilder_; /** + * + * *
        * Arrow schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; + * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -3429,11 +3883,14 @@ public boolean hasArrowSchema() { return schemaCase_ == 6; } /** + * + * *
        * Arrow schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; + * * @return The arrowSchema. */ @java.lang.Override @@ -3442,22 +3899,27 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema getArrow if (schemaCase_ == 6) { return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + .getDefaultInstance(); } else { if (schemaCase_ == 6) { return arrowSchemaBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + .getDefaultInstance(); } } /** + * + * *
        * Arrow schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ - public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema value) { + public Builder setArrowSchema( + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3471,6 +3933,8 @@ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta1.ArrowPro return this; } /** + * + * *
        * Arrow schema.
        * 
@@ -3478,7 +3942,8 @@ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta1.ArrowPro * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ public Builder setArrowSchema( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder + builderForValue) { if (arrowSchemaBuilder_ == null) { schema_ = builderForValue.build(); onChanged(); @@ -3489,18 +3954,26 @@ public Builder setArrowSchema( return this; } /** + * + * *
        * Arrow schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ - public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema value) { + public Builder mergeArrowSchema( + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { - if (schemaCase_ == 6 && - schema_ != com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance()) { - schema_ = com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_) - .mergeFrom(value).buildPartial(); + if (schemaCase_ == 6 + && schema_ + != com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + .getDefaultInstance()) { + schema_ = + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.newBuilder( + (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -3516,6 +3989,8 @@ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta1.ArrowP return this; } /** + * + * *
        * Arrow schema.
        * 
@@ -3539,16 +4014,21 @@ public Builder clearArrowSchema() { return this; } /** + * + * *
        * Arrow schema.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder getArrowSchemaBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder + getArrowSchemaBuilder() { return getArrowSchemaFieldBuilder().getBuilder(); } /** + * + * *
        * Arrow schema.
        * 
@@ -3556,17 +4036,21 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder + getArrowSchemaOrBuilder() { if ((schemaCase_ == 6) && (arrowSchemaBuilder_ != null)) { return arrowSchemaBuilder_.getMessageOrBuilder(); } else { if (schemaCase_ == 6) { return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + .getDefaultInstance(); } } /** + * + * *
        * Arrow schema.
        * 
@@ -3574,14 +4058,21 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder * .google.cloud.bigquery.storage.v1beta1.ArrowSchema arrow_schema = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder> getArrowSchemaFieldBuilder() { if (arrowSchemaBuilder_ == null) { if (!(schemaCase_ == 6)) { - schema_ = com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.getDefaultInstance(); + schema_ = + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema + .getDefaultInstance(); } - arrowSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder>( + arrowSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchema) schema_, getParentForChildren(), isClean()); @@ -3593,25 +4084,34 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowSchemaOrBuilder } private java.util.List streams_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { - streams_ = new java.util.ArrayList(streams_); + streams_ = + new java.util.ArrayList( + streams_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> streamsBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + streamsBuilder_; /** + * + * *
        * Streams associated with this session.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ - public java.util.List getStreamsList() { + public java.util.List + getStreamsList() { if (streamsBuilder_ == null) { return java.util.Collections.unmodifiableList(streams_); } else { @@ -3619,6 +4119,8 @@ public java.util.List } } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3633,6 +4135,8 @@ public int getStreamsCount() { } } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3647,6 +4151,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int i } } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3668,6 +4174,8 @@ public Builder setStreams( return this; } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3675,7 +4183,8 @@ public Builder setStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ public Builder setStreams( - int index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { + int index, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.set(index, builderForValue.build()); @@ -3686,6 +4195,8 @@ public Builder setStreams( return this; } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3706,6 +4217,8 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1beta1.Storage.Stre return this; } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3727,6 +4240,8 @@ public Builder addStreams( return this; } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3745,6 +4260,8 @@ public Builder addStreams( return this; } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3752,7 +4269,8 @@ public Builder addStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ public Builder addStreams( - int index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { + int index, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.add(index, builderForValue.build()); @@ -3763,6 +4281,8 @@ public Builder addStreams( return this; } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3770,11 +4290,11 @@ public Builder addStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ public Builder addAllStreams( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -3782,6 +4302,8 @@ public Builder addAllStreams( return this; } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3799,6 +4321,8 @@ public Builder clearStreams() { return this; } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3816,6 +4340,8 @@ public Builder removeStreams(int index) { return this; } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3827,6 +4353,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea return getStreamsFieldBuilder().getBuilder(index); } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3836,19 +4364,23 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamsOrBuilder( int index) { if (streamsBuilder_ == null) { - return streams_.get(index); } else { + return streams_.get(index); + } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Streams associated with this session.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -3856,6 +4388,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre } } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3863,10 +4397,13 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder().addBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); + return getStreamsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); } /** + * + * *
        * Streams associated with this session.
        * 
@@ -3875,72 +4412,96 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStrea */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStreamsBuilder( int index) { - return getStreamsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); + return getStreamsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); } /** + * + * *
        * Streams associated with this session.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 4; */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( - streams_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + streamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( + streams_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); streams_ = null; } return streamsBuilder_; } - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference tableReference_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + tableReference_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> tableReferenceBuilder_; + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> + tableReferenceBuilder_; /** + * + * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; + * * @return Whether the tableReference field is set. */ public boolean hasTableReference() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; + * * @return The tableReference. */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + getTableReference() { if (tableReferenceBuilder_ == null) { - return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; + return tableReference_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance() + : tableReference_; } else { return tableReferenceBuilder_.getMessage(); } } /** + * + * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ - public Builder setTableReference(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { + public Builder setTableReference( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { if (tableReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3954,6 +4515,8 @@ public Builder setTableReference(com.google.cloud.bigquery.storage.v1beta1.Table return this; } /** + * + * *
        * Table that this ReadSession is reading from.
        * 
@@ -3961,7 +4524,8 @@ public Builder setTableReference(com.google.cloud.bigquery.storage.v1beta1.Table * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ public Builder setTableReference( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder + builderForValue) { if (tableReferenceBuilder_ == null) { tableReference_ = builderForValue.build(); } else { @@ -3972,17 +4536,22 @@ public Builder setTableReference( return this; } /** + * + * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ - public Builder mergeTableReference(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { + public Builder mergeTableReference( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { if (tableReferenceBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - tableReference_ != null && - tableReference_ != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && tableReference_ != null + && tableReference_ + != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance()) { getTableReferenceBuilder().mergeFrom(value); } else { tableReference_ = value; @@ -3995,6 +4564,8 @@ public Builder mergeTableReference(com.google.cloud.bigquery.storage.v1beta1.Tab return this; } /** + * + * *
        * Table that this ReadSession is reading from.
        * 
@@ -4012,33 +4583,43 @@ public Builder clearTableReference() { return this; } /** + * + * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder getTableReferenceBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder + getTableReferenceBuilder() { bitField0_ |= 0x00000020; onChanged(); return getTableReferenceFieldBuilder().getBuilder(); } /** + * + * *
        * Table that this ReadSession is reading from.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder + getTableReferenceOrBuilder() { if (tableReferenceBuilder_ != null) { return tableReferenceBuilder_.getMessageOrBuilder(); } else { - return tableReference_ == null ? - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; + return tableReference_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance() + : tableReference_; } } /** + * + * *
        * Table that this ReadSession is reading from.
        * 
@@ -4046,56 +4627,78 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableRefere * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> getTableReferenceFieldBuilder() { if (tableReferenceBuilder_ == null) { - tableReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder>( - getTableReference(), - getParentForChildren(), - isClean()); + tableReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .TableReferenceOrBuilder>( + getTableReference(), getParentForChildren(), isClean()); tableReference_ = null; } return tableReferenceBuilder_; } - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers tableModifiers_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + tableModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> tableModifiersBuilder_; + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> + tableModifiersBuilder_; /** + * + * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; + * * @return Whether the tableModifiers field is set. */ public boolean hasTableModifiers() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; + * * @return The tableModifiers. */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + getTableModifiers() { if (tableModifiersBuilder_ == null) { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance() + : tableModifiers_; } else { return tableModifiersBuilder_.getMessage(); } } /** + * + * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ - public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { + public Builder setTableModifiers( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { if (tableModifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4109,6 +4712,8 @@ public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta1.Table return this; } /** + * + * *
        * Any modifiers which are applied when reading from the specified table.
        * 
@@ -4116,7 +4721,8 @@ public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta1.Table * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ public Builder setTableModifiers( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder + builderForValue) { if (tableModifiersBuilder_ == null) { tableModifiers_ = builderForValue.build(); } else { @@ -4127,17 +4733,22 @@ public Builder setTableModifiers( return this; } /** + * + * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ - public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { + public Builder mergeTableModifiers( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { if (tableModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - tableModifiers_ != null && - tableModifiers_ != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && tableModifiers_ != null + && tableModifiers_ + != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance()) { getTableModifiersBuilder().mergeFrom(value); } else { tableModifiers_ = value; @@ -4150,6 +4761,8 @@ public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1beta1.Tab return this; } /** + * + * *
        * Any modifiers which are applied when reading from the specified table.
        * 
@@ -4167,33 +4780,43 @@ public Builder clearTableModifiers() { return this; } /** + * + * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder getTableModifiersBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder + getTableModifiersBuilder() { bitField0_ |= 0x00000040; onChanged(); return getTableModifiersFieldBuilder().getBuilder(); } /** + * + * *
        * Any modifiers which are applied when reading from the specified table.
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder + getTableModifiersOrBuilder() { if (tableModifiersBuilder_ != null) { return tableModifiersBuilder_.getMessageOrBuilder(); } else { - return tableModifiers_ == null ? - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance() + : tableModifiers_; } } /** + * + * *
        * Any modifiers which are applied when reading from the specified table.
        * 
@@ -4201,14 +4824,19 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifi * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> getTableModifiersFieldBuilder() { if (tableModifiersBuilder_ == null) { - tableModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder>( - getTableModifiers(), - getParentForChildren(), - isClean()); + tableModifiersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .TableModifiersOrBuilder>( + getTableModifiers(), getParentForChildren(), isClean()); tableModifiers_ = null; } return tableModifiersBuilder_; @@ -4216,22 +4844,29 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifi private int shardingStrategy_ = 0; /** + * + * *
        * The strategy to use for distributing data among the streams.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; + * * @return The enum numeric value on the wire for shardingStrategy. */ - @java.lang.Override public int getShardingStrategyValue() { + @java.lang.Override + public int getShardingStrategyValue() { return shardingStrategy_; } /** + * + * *
        * The strategy to use for distributing data among the streams.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; + * * @param value The enum numeric value on the wire for shardingStrategy to set. * @return This builder for chaining. */ @@ -4242,28 +4877,40 @@ public Builder setShardingStrategyValue(int value) { return this; } /** + * + * *
        * The strategy to use for distributing data among the streams.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; + * * @return The shardingStrategy. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber(shardingStrategy_); - return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED : result; + public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy + getShardingStrategy() { + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber( + shardingStrategy_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED + : result; } /** + * + * *
        * The strategy to use for distributing data among the streams.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; + * * @param value The shardingStrategy to set. * @return This builder for chaining. */ - public Builder setShardingStrategy(com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy value) { + public Builder setShardingStrategy( + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy value) { if (value == null) { throw new NullPointerException(); } @@ -4273,11 +4920,14 @@ public Builder setShardingStrategy(com.google.cloud.bigquery.storage.v1beta1.Sto return this; } /** + * + * *
        * The strategy to use for distributing data among the streams.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 9; + * * @return This builder for chaining. */ public Builder clearShardingStrategy() { @@ -4286,6 +4936,7 @@ public Builder clearShardingStrategy() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -4298,41 +4949,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ReadSession) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadSession) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadSession parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4344,95 +4998,133 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface CreateReadSessionRequestOrBuilder extends + public interface CreateReadSessionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Reference to the table to read.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tableReference field is set. */ boolean hasTableReference(); /** + * + * *
      * Required. Reference to the table to read.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tableReference. */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + getTableReference(); /** + * + * *
      * Required. Reference to the table to read.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder + getTableReferenceOrBuilder(); /** + * + * *
      * Required. String of the form `projects/{project_id}` indicating the
      * project this ReadSession is associated with. This is the project that will
      * be billed for usage.
      * 
* - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
      * Required. String of the form `projects/{project_id}` indicating the
      * project this ReadSession is associated with. This is the project that will
      * be billed for usage.
      * 
* - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; + * * @return Whether the tableModifiers field is set. */ boolean hasTableModifiers(); /** + * + * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; + * * @return The tableModifiers. */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + getTableModifiers(); /** + * + * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder + getTableModifiersOrBuilder(); /** + * + * *
      * Initial number of streams. If unset or 0, we will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -4443,78 +5135,102 @@ public interface CreateReadSessionRequestOrBuilder extends
      * 
* * int32 requested_streams = 3; + * * @return The requestedStreams. */ int getRequestedStreams(); /** + * + * *
      * Read options for this session (e.g. column selection, filters).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; + * * @return Whether the readOptions field is set. */ boolean hasReadOptions(); /** + * + * *
      * Read options for this session (e.g. column selection, filters).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; + * * @return The readOptions. */ com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getReadOptions(); /** + * + * *
      * Read options for this session (e.g. column selection, filters).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder getReadOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder + getReadOptionsOrBuilder(); /** + * + * *
      * Data output format. Currently default to Avro.
      * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; + * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** + * + * *
      * Data output format. Currently default to Avro.
      * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; + * * @return The format. */ com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat(); /** + * + * *
      * The strategy to use for distributing data among multiple streams. Currently
      * defaults to liquid sharding.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; + * * @return The enum numeric value on the wire for shardingStrategy. */ int getShardingStrategyValue(); /** + * + * *
      * The strategy to use for distributing data among multiple streams. Currently
      * defaults to liquid sharding.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; + * * @return The shardingStrategy. */ com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy(); } /** + * + * *
    * Creates a new read session, which may include additional options such as
    * requested parallelism, projection filters and constraints.
@@ -4522,15 +5238,16 @@ public interface CreateReadSessionRequestOrBuilder extends
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest}
    */
-  public static final class CreateReadSessionRequest extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class CreateReadSessionRequest extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest)
       CreateReadSessionRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use CreateReadSessionRequest.newBuilder() to construct.
     private CreateReadSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private CreateReadSessionRequest() {
       parent_ = "";
       format_ = 0;
@@ -4539,37 +5256,45 @@ private CreateReadSessionRequest() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new CreateReadSessionRequest();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta1.Storage
+          .internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta1.Storage
+          .internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class,
+              com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.Builder
+                  .class);
     }
 
     public static final int TABLE_REFERENCE_FIELD_NUMBER = 1;
-    private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference tableReference_;
+    private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference
+        tableReference_;
     /**
+     *
+     *
      * 
      * Required. Reference to the table to read.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tableReference field is set. */ @java.lang.Override @@ -4577,40 +5302,63 @@ public boolean hasTableReference() { return tableReference_ != null; } /** + * + * *
      * Required. Reference to the table to read.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tableReference. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference() { - return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + getTableReference() { + return tableReference_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance() + : tableReference_; } /** + * + * *
      * Required. Reference to the table to read.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder() { - return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder + getTableReferenceOrBuilder() { + return tableReference_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance() + : tableReference_; } public static final int PARENT_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
      * Required. String of the form `projects/{project_id}` indicating the
      * project this ReadSession is associated with. This is the project that will
      * be billed for usage.
      * 
* - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -4619,31 +5367,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
      * Required. String of the form `projects/{project_id}` indicating the
      * project this ReadSession is associated with. This is the project that will
      * be billed for usage.
      * 
* - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -4652,13 +5402,17 @@ public java.lang.String getParent() { } public static final int TABLE_MODIFIERS_FIELD_NUMBER = 2; - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers tableModifiers_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + tableModifiers_; /** + * + * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; + * * @return Whether the tableModifiers field is set. */ @java.lang.Override @@ -4666,18 +5420,27 @@ public boolean hasTableModifiers() { return tableModifiers_ != null; } /** + * + * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; + * * @return The tableModifiers. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers() { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + getTableModifiers() { + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance() + : tableModifiers_; } /** + * + * *
      * Any modifiers to the Table (e.g. snapshot timestamp).
      * 
@@ -4685,13 +5448,19 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifi * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder() { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder + getTableModifiersOrBuilder() { + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance() + : tableModifiers_; } public static final int REQUESTED_STREAMS_FIELD_NUMBER = 3; private int requestedStreams_ = 0; /** + * + * *
      * Initial number of streams. If unset or 0, we will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -4702,6 +5471,7 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifi
      * 
* * int32 requested_streams = 3; + * * @return The requestedStreams. */ @java.lang.Override @@ -4712,11 +5482,14 @@ public int getRequestedStreams() { public static final int READ_OPTIONS_FIELD_NUMBER = 4; private com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions readOptions_; /** + * + * *
      * Read options for this session (e.g. column selection, filters).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; + * * @return Whether the readOptions field is set. */ @java.lang.Override @@ -4724,18 +5497,26 @@ public boolean hasReadOptions() { return readOptions_ != null; } /** + * + * *
      * Read options for this session (e.g. column selection, filters).
      * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; + * * @return The readOptions. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getReadOptions() { - return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + .getDefaultInstance() + : readOptions_; } /** + * + * *
      * Read options for this session (e.g. column selection, filters).
      * 
@@ -4743,65 +5524,94 @@ public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions ge * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { - return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance() : readOptions_; + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder + getReadOptionsOrBuilder() { + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + .getDefaultInstance() + : readOptions_; } public static final int FORMAT_FIELD_NUMBER = 5; private int format_ = 0; /** - *
+     *
+     *
+     * 
      * Data output format. Currently default to Avro.
      * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
      * Data output format. Currently default to Avro.
      * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; + * * @return The format. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat() { - com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat result = com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.forNumber(format_); - return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat() { + com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat result = + com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.forNumber(format_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.UNRECOGNIZED + : result; } public static final int SHARDING_STRATEGY_FIELD_NUMBER = 7; private int shardingStrategy_ = 0; /** + * + * *
      * The strategy to use for distributing data among multiple streams. Currently
      * defaults to liquid sharding.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; + * * @return The enum numeric value on the wire for shardingStrategy. */ - @java.lang.Override public int getShardingStrategyValue() { + @java.lang.Override + public int getShardingStrategyValue() { return shardingStrategy_; } /** + * + * *
      * The strategy to use for distributing data among multiple streams. Currently
      * defaults to liquid sharding.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; + * * @return The shardingStrategy. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber(shardingStrategy_); - return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy + getShardingStrategy() { + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber( + shardingStrategy_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -4813,8 +5623,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (tableReference_ != null) { output.writeMessage(1, getTableReference()); } @@ -4827,13 +5636,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (readOptions_ != null) { output.writeMessage(4, getReadOptions()); } - if (format_ != com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + if (format_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.DATA_FORMAT_UNSPECIFIED + .getNumber()) { output.writeEnum(5, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, parent_); } - if (shardingStrategy_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.SHARDING_STRATEGY_UNSPECIFIED.getNumber()) { + if (shardingStrategy_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy + .SHARDING_STRATEGY_UNSPECIFIED + .getNumber()) { output.writeEnum(7, shardingStrategy_); } getUnknownFields().writeTo(output); @@ -4846,31 +5660,30 @@ public int getSerializedSize() { size = 0; if (tableReference_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTableReference()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTableReference()); } if (tableModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTableModifiers()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTableModifiers()); } if (requestedStreams_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, requestedStreams_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, requestedStreams_); } if (readOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getReadOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadOptions()); } - if (format_ != com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, format_); + if (format_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.DATA_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, format_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, parent_); } - if (shardingStrategy_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.SHARDING_STRATEGY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, shardingStrategy_); + if (shardingStrategy_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy + .SHARDING_STRATEGY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, shardingStrategy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -4880,31 +5693,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest other = (com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) obj; if (hasTableReference() != other.hasTableReference()) return false; if (hasTableReference()) { - if (!getTableReference() - .equals(other.getTableReference())) return false; + if (!getTableReference().equals(other.getTableReference())) return false; } - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasTableModifiers() != other.hasTableModifiers()) return false; if (hasTableModifiers()) { - if (!getTableModifiers() - .equals(other.getTableModifiers())) return false; + if (!getTableModifiers().equals(other.getTableModifiers())) return false; } - if (getRequestedStreams() - != other.getRequestedStreams()) return false; + if (getRequestedStreams() != other.getRequestedStreams()) return false; if (hasReadOptions() != other.hasReadOptions()) return false; if (hasReadOptions()) { - if (!getReadOptions() - .equals(other.getReadOptions())) return false; + if (!getReadOptions().equals(other.getReadOptions())) return false; } if (format_ != other.format_) return false; if (shardingStrategy_ != other.shardingStrategy_) return false; @@ -4944,88 +5754,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -5035,6 +5858,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Creates a new read session, which may include additional options such as
      * requested parallelism, projection filters and constraints.
@@ -5042,33 +5867,35 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest)
         com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequestOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage
+            .internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable
+        return com.google.cloud.bigquery.storage.v1beta1.Storage
+            .internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.Builder.class);
+                com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.class,
+                com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5096,19 +5923,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage
+            .internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest getDefaultInstanceForType() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.getDefaultInstance();
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest
+          getDefaultInstanceForType() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest build() {
-        com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result = buildPartial();
+        com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -5116,35 +5946,37 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionReques
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest buildPartial() {
-        com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result = new com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest
+          buildPartial() {
+        com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result =
+            new com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result) {
+      private void buildPartial0(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000001) != 0)) {
-          result.tableReference_ = tableReferenceBuilder_ == null
-              ? tableReference_
-              : tableReferenceBuilder_.build();
+          result.tableReference_ =
+              tableReferenceBuilder_ == null ? tableReference_ : tableReferenceBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000002) != 0)) {
           result.parent_ = parent_;
         }
         if (((from_bitField0_ & 0x00000004) != 0)) {
-          result.tableModifiers_ = tableModifiersBuilder_ == null
-              ? tableModifiers_
-              : tableModifiersBuilder_.build();
+          result.tableModifiers_ =
+              tableModifiersBuilder_ == null ? tableModifiers_ : tableModifiersBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
           result.requestedStreams_ = requestedStreams_;
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.readOptions_ = readOptionsBuilder_ == null
-              ? readOptions_
-              : readOptionsBuilder_.build();
+          result.readOptions_ =
+              readOptionsBuilder_ == null ? readOptions_ : readOptionsBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000020) != 0)) {
           result.format_ = format_;
@@ -5158,46 +5990,54 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Cre
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) {
-          return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest)other);
+        if (other
+            instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) {
+          return mergeFrom(
+              (com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest other) {
-        if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest other) {
+        if (other
+            == com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest
+                .getDefaultInstance()) return this;
         if (other.hasTableReference()) {
           mergeTableReference(other.getTableReference());
         }
@@ -5247,53 +6087,57 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getTableReferenceFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getTableModifiersFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 18
-              case 24: {
-                requestedStreams_ = input.readInt32();
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 24
-              case 34: {
-                input.readMessage(
-                    getReadOptionsFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 34
-              case 40: {
-                format_ = input.readEnum();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 40
-              case 50: {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 50
-              case 56: {
-                shardingStrategy_ = input.readEnum();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(
+                      getTableReferenceFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000001;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(
+                      getTableModifiersFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 18
+              case 24:
+                {
+                  requestedStreams_ = input.readInt32();
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 24
+              case 34:
+                {
+                  input.readMessage(getReadOptionsFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000010;
+                  break;
+                } // case 34
+              case 40:
+                {
+                  format_ = input.readEnum();
+                  bitField0_ |= 0x00000020;
+                  break;
+                } // case 40
+              case 50:
+                {
+                  parent_ = input.readStringRequireUtf8();
+                  bitField0_ |= 0x00000002;
+                  break;
+                } // case 50
+              case 56:
+                {
+                  shardingStrategy_ = input.readEnum();
+                  bitField0_ |= 0x00000040;
+                  break;
+                } // case 56
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -5303,45 +6147,69 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int bitField0_;
 
-      private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference tableReference_;
+      private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference
+          tableReference_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> tableReferenceBuilder_;
+              com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference,
+              com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder,
+              com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder>
+          tableReferenceBuilder_;
       /**
+       *
+       *
        * 
        * Required. Reference to the table to read.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the tableReference field is set. */ public boolean hasTableReference() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Required. Reference to the table to read.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The tableReference. */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getTableReference() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + getTableReference() { if (tableReferenceBuilder_ == null) { - return tableReference_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; + return tableReference_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance() + : tableReference_; } else { return tableReferenceBuilder_.getMessage(); } } /** + * + * *
        * Required. Reference to the table to read.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setTableReference(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { + public Builder setTableReference( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { if (tableReferenceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5355,14 +6223,19 @@ public Builder setTableReference(com.google.cloud.bigquery.storage.v1beta1.Table return this; } /** + * + * *
        * Required. Reference to the table to read.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setTableReference( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder + builderForValue) { if (tableReferenceBuilder_ == null) { tableReference_ = builderForValue.build(); } else { @@ -5373,17 +6246,24 @@ public Builder setTableReference( return this; } /** + * + * *
        * Required. Reference to the table to read.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeTableReference(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { + public Builder mergeTableReference( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference value) { if (tableReferenceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - tableReference_ != null && - tableReference_ != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && tableReference_ != null + && tableReference_ + != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance()) { getTableReferenceBuilder().mergeFrom(value); } else { tableReference_ = value; @@ -5396,11 +6276,15 @@ public Builder mergeTableReference(com.google.cloud.bigquery.storage.v1beta1.Tab return this; } /** + * + * *
        * Required. Reference to the table to read.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearTableReference() { bitField0_ = (bitField0_ & ~0x00000001); @@ -5413,48 +6297,69 @@ public Builder clearTableReference() { return this; } /** + * + * *
        * Required. Reference to the table to read.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder getTableReferenceBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder + getTableReferenceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getTableReferenceFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Reference to the table to read.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder getTableReferenceOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder + getTableReferenceOrBuilder() { if (tableReferenceBuilder_ != null) { return tableReferenceBuilder_.getMessageOrBuilder(); } else { - return tableReference_ == null ? - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance() : tableReference_; + return tableReference_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance() + : tableReference_; } } /** + * + * *
        * Required. Reference to the table to read.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.TableReference table_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder> getTableReferenceFieldBuilder() { if (tableReferenceBuilder_ == null) { - tableReferenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder>( - getTableReference(), - getParentForChildren(), - isClean()); + tableReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .TableReferenceOrBuilder>( + getTableReference(), getParentForChildren(), isClean()); tableReference_ = null; } return tableReferenceBuilder_; @@ -5462,20 +6367,24 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableRefere private java.lang.Object parent_ = ""; /** + * + * *
        * Required. String of the form `projects/{project_id}` indicating the
        * project this ReadSession is associated with. This is the project that will
        * be billed for usage.
        * 
* - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -5484,22 +6393,25 @@ public java.lang.String getParent() { } } /** + * + * *
        * Required. String of the form `projects/{project_id}` indicating the
        * project this ReadSession is associated with. This is the project that will
        * be billed for usage.
        * 
* - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -5507,32 +6419,43 @@ public java.lang.String getParent() { } } /** + * + * *
        * Required. String of the form `projects/{project_id}` indicating the
        * project this ReadSession is associated with. This is the project that will
        * be billed for usage.
        * 
* - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. String of the form `projects/{project_id}` indicating the
        * project this ReadSession is associated with. This is the project that will
        * be billed for usage.
        * 
* - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -5542,19 +6465,25 @@ public Builder clearParent() { return this; } /** + * + * *
        * Required. String of the form `projects/{project_id}` indicating the
        * project this ReadSession is associated with. This is the project that will
        * be billed for usage.
        * 
* - * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000002; @@ -5562,43 +6491,60 @@ public Builder setParentBytes( return this; } - private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers tableModifiers_; + private com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + tableModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> tableModifiersBuilder_; + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> + tableModifiersBuilder_; /** + * + * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; + * * @return Whether the tableModifiers field is set. */ public boolean hasTableModifiers() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; + * * @return The tableModifiers. */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getTableModifiers() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + getTableModifiers() { if (tableModifiersBuilder_ == null) { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance() + : tableModifiers_; } else { return tableModifiersBuilder_.getMessage(); } } /** + * + * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ - public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { + public Builder setTableModifiers( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { if (tableModifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5612,6 +6558,8 @@ public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta1.Table return this; } /** + * + * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
@@ -5619,7 +6567,8 @@ public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta1.Table * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ public Builder setTableModifiers( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder + builderForValue) { if (tableModifiersBuilder_ == null) { tableModifiers_ = builderForValue.build(); } else { @@ -5630,17 +6579,22 @@ public Builder setTableModifiers( return this; } /** + * + * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ - public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { + public Builder mergeTableModifiers( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers value) { if (tableModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - tableModifiers_ != null && - tableModifiers_ != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && tableModifiers_ != null + && tableModifiers_ + != com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance()) { getTableModifiersBuilder().mergeFrom(value); } else { tableModifiers_ = value; @@ -5653,6 +6607,8 @@ public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1beta1.Tab return this; } /** + * + * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
@@ -5670,33 +6626,43 @@ public Builder clearTableModifiers() { return this; } /** + * + * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder getTableModifiersBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder + getTableModifiersBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTableModifiersFieldBuilder().getBuilder(); } /** + * + * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder getTableModifiersOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder + getTableModifiersOrBuilder() { if (tableModifiersBuilder_ != null) { return tableModifiersBuilder_.getMessageOrBuilder(); } else { - return tableModifiers_ == null ? - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance() : tableModifiers_; + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance() + : tableModifiers_; } } /** + * + * *
        * Any modifiers to the Table (e.g. snapshot timestamp).
        * 
@@ -5704,21 +6670,28 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifi * .google.cloud.bigquery.storage.v1beta1.TableModifiers table_modifiers = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder> getTableModifiersFieldBuilder() { if (tableModifiersBuilder_ == null) { - tableModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder>( - getTableModifiers(), - getParentForChildren(), - isClean()); + tableModifiersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .Builder, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .TableModifiersOrBuilder>( + getTableModifiers(), getParentForChildren(), isClean()); tableModifiers_ = null; } return tableModifiersBuilder_; } - private int requestedStreams_ ; + private int requestedStreams_; /** + * + * *
        * Initial number of streams. If unset or 0, we will
        * provide a value of streams so as to produce reasonable throughput. Must be
@@ -5729,6 +6702,7 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifi
        * 
* * int32 requested_streams = 3; + * * @return The requestedStreams. */ @java.lang.Override @@ -5736,6 +6710,8 @@ public int getRequestedStreams() { return requestedStreams_; } /** + * + * *
        * Initial number of streams. If unset or 0, we will
        * provide a value of streams so as to produce reasonable throughput. Must be
@@ -5746,17 +6722,20 @@ public int getRequestedStreams() {
        * 
* * int32 requested_streams = 3; + * * @param value The requestedStreams to set. * @return This builder for chaining. */ public Builder setRequestedStreams(int value) { - + requestedStreams_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * Initial number of streams. If unset or 0, we will
        * provide a value of streams so as to produce reasonable throughput. Must be
@@ -5767,6 +6746,7 @@ public Builder setRequestedStreams(int value) {
        * 
* * int32 requested_streams = 3; + * * @return This builder for chaining. */ public Builder clearRequestedStreams() { @@ -5778,41 +6758,57 @@ public Builder clearRequestedStreams() { private com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions readOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder> readOptionsBuilder_; + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder> + readOptionsBuilder_; /** + * + * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; + * * @return Whether the readOptions field is set. */ public boolean hasReadOptions() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; + * * @return The readOptions. */ - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions getReadOptions() { + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + getReadOptions() { if (readOptionsBuilder_ == null) { - return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + .getDefaultInstance() + : readOptions_; } else { return readOptionsBuilder_.getMessage(); } } /** + * + * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ - public Builder setReadOptions(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions value) { + public Builder setReadOptions( + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions value) { if (readOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5826,6 +6822,8 @@ public Builder setReadOptions(com.google.cloud.bigquery.storage.v1beta1.ReadOpti return this; } /** + * + * *
        * Read options for this session (e.g. column selection, filters).
        * 
@@ -5833,7 +6831,8 @@ public Builder setReadOptions(com.google.cloud.bigquery.storage.v1beta1.ReadOpti * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ public Builder setReadOptions( - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder + builderForValue) { if (readOptionsBuilder_ == null) { readOptions_ = builderForValue.build(); } else { @@ -5844,17 +6843,22 @@ public Builder setReadOptions( return this; } /** + * + * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ - public Builder mergeReadOptions(com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions value) { + public Builder mergeReadOptions( + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions value) { if (readOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - readOptions_ != null && - readOptions_ != com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && readOptions_ != null + && readOptions_ + != com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + .getDefaultInstance()) { getReadOptionsBuilder().mergeFrom(value); } else { readOptions_ = value; @@ -5867,6 +6871,8 @@ public Builder mergeReadOptions(com.google.cloud.bigquery.storage.v1beta1.ReadOp return this; } /** + * + * *
        * Read options for this session (e.g. column selection, filters).
        * 
@@ -5884,33 +6890,43 @@ public Builder clearReadOptions() { return this; } /** + * + * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder getReadOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder + getReadOptionsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getReadOptionsFieldBuilder().getBuilder(); } /** + * + * *
        * Read options for this session (e.g. column selection, filters).
        * 
* * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ - public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder + getReadOptionsOrBuilder() { if (readOptionsBuilder_ != null) { return readOptionsBuilder_.getMessageOrBuilder(); } else { - return readOptions_ == null ? - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions + .getDefaultInstance() + : readOptions_; } } /** + * + * *
        * Read options for this session (e.g. column selection, filters).
        * 
@@ -5918,14 +6934,17 @@ public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrB * .google.cloud.bigquery.storage.v1beta1.TableReadOptions read_options = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder> getReadOptionsFieldBuilder() { if (readOptionsBuilder_ == null) { - readOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder>( - getReadOptions(), - getParentForChildren(), - isClean()); + readOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions, + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptions.Builder, + com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrBuilder>( + getReadOptions(), getParentForChildren(), isClean()); readOptions_ = null; } return readOptionsBuilder_; @@ -5933,22 +6952,29 @@ public com.google.cloud.bigquery.storage.v1beta1.ReadOptions.TableReadOptionsOrB private int format_ = 0; /** + * + * *
        * Data output format. Currently default to Avro.
        * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
        * Data output format. Currently default to Avro.
        * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; + * * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ @@ -5959,24 +6985,33 @@ public Builder setFormatValue(int value) { return this; } /** + * + * *
        * Data output format. Currently default to Avro.
        * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; + * * @return The format. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat getFormat() { - com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat result = com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.forNumber(format_); - return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat result = + com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.forNumber(format_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.DataFormat.UNRECOGNIZED + : result; } /** + * + * *
        * Data output format. Currently default to Avro.
        * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; + * * @param value The format to set. * @return This builder for chaining. */ @@ -5990,11 +7025,14 @@ public Builder setFormat(com.google.cloud.bigquery.storage.v1beta1.Storage.DataF return this; } /** + * + * *
        * Data output format. Currently default to Avro.
        * 
* * .google.cloud.bigquery.storage.v1beta1.DataFormat format = 5; + * * @return This builder for chaining. */ public Builder clearFormat() { @@ -6006,24 +7044,31 @@ public Builder clearFormat() { private int shardingStrategy_ = 0; /** + * + * *
        * The strategy to use for distributing data among multiple streams. Currently
        * defaults to liquid sharding.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; + * * @return The enum numeric value on the wire for shardingStrategy. */ - @java.lang.Override public int getShardingStrategyValue() { + @java.lang.Override + public int getShardingStrategyValue() { return shardingStrategy_; } /** + * + * *
        * The strategy to use for distributing data among multiple streams. Currently
        * defaults to liquid sharding.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; + * * @param value The enum numeric value on the wire for shardingStrategy to set. * @return This builder for chaining. */ @@ -6034,30 +7079,42 @@ public Builder setShardingStrategyValue(int value) { return this; } /** + * + * *
        * The strategy to use for distributing data among multiple streams. Currently
        * defaults to liquid sharding.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; + * * @return The shardingStrategy. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy getShardingStrategy() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber(shardingStrategy_); - return result == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED : result; + public com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy + getShardingStrategy() { + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy result = + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.forNumber( + shardingStrategy_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy.UNRECOGNIZED + : result; } /** + * + * *
        * The strategy to use for distributing data among multiple streams. Currently
        * defaults to liquid sharding.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; + * * @param value The shardingStrategy to set. * @return This builder for chaining. */ - public Builder setShardingStrategy(com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy value) { + public Builder setShardingStrategy( + com.google.cloud.bigquery.storage.v1beta1.Storage.ShardingStrategy value) { if (value == null) { throw new NullPointerException(); } @@ -6067,12 +7124,15 @@ public Builder setShardingStrategy(com.google.cloud.bigquery.storage.v1beta1.Sto return this; } /** + * + * *
        * The strategy to use for distributing data among multiple streams. Currently
        * defaults to liquid sharding.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ShardingStrategy sharding_strategy = 7; + * * @return This builder for chaining. */ public Builder clearShardingStrategy() { @@ -6081,6 +7141,7 @@ public Builder clearShardingStrategy() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6093,41 +7154,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.CreateReadSessionRequest) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReadSessionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReadSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6139,103 +7204,127 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.CreateReadSessionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ReadRowsRequestOrBuilder extends + public interface ReadRowsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the readPosition field is set. */ boolean hasReadPosition(); /** + * + * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The readPosition. */ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getReadPosition(); /** + * + * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder getReadPositionOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder + getReadPositionOrBuilder(); } /** + * + * *
    * Requesting row data via `ReadRows` must provide Stream position information.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadRowsRequest} */ - public static final class ReadRowsRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ReadRowsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) ReadRowsRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadRowsRequest.newBuilder() to construct. private ReadRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReadRowsRequest() { - } + + private ReadRowsRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.Builder.class); } public static final int READ_POSITION_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition readPosition_; /** + * + * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the readPosition field is set. */ @java.lang.Override @@ -6243,34 +7332,49 @@ public boolean hasReadPosition() { return readPosition_ != null; } /** + * + * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The readPosition. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getReadPosition() { - return readPosition_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() : readPosition_; + return readPosition_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() + : readPosition_; } /** + * + * *
      * Required. Identifier of the position in the stream to start reading from.
      * The offset requested must be less than the last row read from ReadRows.
      * Requesting a larger offset is undefined.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder getReadPositionOrBuilder() { - return readPosition_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() : readPosition_; + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder + getReadPositionOrBuilder() { + return readPosition_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() + : readPosition_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -6282,8 +7386,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (readPosition_ != null) { output.writeMessage(1, getReadPosition()); } @@ -6297,8 +7400,7 @@ public int getSerializedSize() { size = 0; if (readPosition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReadPosition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReadPosition()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -6308,17 +7410,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest other = (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) obj; if (hasReadPosition() != other.hasReadPosition()) return false; if (hasReadPosition()) { - if (!getReadPosition() - .equals(other.getReadPosition())) return false; + if (!getReadPosition().equals(other.getReadPosition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -6341,87 +7443,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -6431,39 +7541,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Requesting row data via `ReadRows` must provide Stream position information.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadRowsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -6477,14 +7590,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest + .getDefaultInstance(); } @java.lang.Override @@ -6498,18 +7613,21 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest build() @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest result = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest result = + new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.readPosition_ = readPositionBuilder_ == null - ? readPosition_ - : readPositionBuilder_.build(); + result.readPosition_ = + readPositionBuilder_ == null ? readPosition_ : readPositionBuilder_.build(); } } @@ -6517,46 +7635,53 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Rea public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest + .getDefaultInstance()) return this; if (other.hasReadPosition()) { mergeReadPosition(other.getReadPosition()); } @@ -6586,19 +7711,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getReadPositionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getReadPositionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -6608,51 +7733,73 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition readPosition_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder> readPositionBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder> + readPositionBuilder_; /** + * + * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the readPosition field is set. */ public boolean hasReadPosition() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The readPosition. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition getReadPosition() { if (readPositionBuilder_ == null) { - return readPosition_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() : readPosition_; + return readPosition_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + .getDefaultInstance() + : readPosition_; } else { return readPositionBuilder_.getMessage(); } } /** + * + * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setReadPosition(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition value) { + public Builder setReadPosition( + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition value) { if (readPositionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6666,16 +7813,21 @@ public Builder setReadPosition(com.google.cloud.bigquery.storage.v1beta1.Storage return this; } /** + * + * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReadPosition( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder + builderForValue) { if (readPositionBuilder_ == null) { readPosition_ = builderForValue.build(); } else { @@ -6686,19 +7838,26 @@ public Builder setReadPosition( return this; } /** + * + * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeReadPosition(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition value) { + public Builder mergeReadPosition( + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition value) { if (readPositionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - readPosition_ != null && - readPosition_ != com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && readPosition_ != null + && readPosition_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + .getDefaultInstance()) { getReadPositionBuilder().mergeFrom(value); } else { readPosition_ = value; @@ -6711,13 +7870,17 @@ public Builder mergeReadPosition(com.google.cloud.bigquery.storage.v1beta1.Stora return this; } /** + * + * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReadPosition() { bitField0_ = (bitField0_ & ~0x00000001); @@ -6730,58 +7893,78 @@ public Builder clearReadPosition() { return this; } /** + * + * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder getReadPositionBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder + getReadPositionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getReadPositionFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder getReadPositionOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder + getReadPositionOrBuilder() { if (readPositionBuilder_ != null) { return readPositionBuilder_.getMessageOrBuilder(); } else { - return readPosition_ == null ? - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.getDefaultInstance() : readPosition_; + return readPosition_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition + .getDefaultInstance() + : readPosition_; } } /** + * + * *
        * Required. Identifier of the position in the stream to start reading from.
        * The offset requested must be less than the last row read from ReadRows.
        * Requesting a larger offset is undefined.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.StreamPosition read_position = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder> getReadPositionFieldBuilder() { if (readPositionBuilder_ == null) { - readPositionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder>( - getReadPosition(), - getParentForChildren(), - isClean()); + readPositionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPosition.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamPositionOrBuilder>( + getReadPosition(), getParentForChildren(), isClean()); readPosition_ = null; } return readPositionBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6794,41 +7977,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsRequest) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadRowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6840,17 +8026,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface StreamStatusOrBuilder extends + public interface StreamStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.StreamStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Number of estimated rows in the current stream. May change over time as
      * different readers in the stream progress at rates which are relatively fast
@@ -6858,11 +8047,14 @@ public interface StreamStatusOrBuilder extends
      * 
* * int64 estimated_row_count = 1; + * * @return The estimatedRowCount. */ long getEstimatedRowCount(); /** + * + * *
      * A value in the range [0.0, 1.0] that represents the fraction of rows
      * assigned to this stream that have been processed by the server. In the
@@ -6873,29 +8065,38 @@ public interface StreamStatusOrBuilder extends
      * 
* * float fraction_consumed = 2; + * * @return The fractionConsumed. */ float getFractionConsumed(); /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; + * * @return Whether the progress field is set. */ boolean hasProgress(); /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; + * * @return The progress. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getProgress(); /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -6905,6 +8106,8 @@ public interface StreamStatusOrBuilder extends com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder getProgressOrBuilder(); /** + * + * *
      * Whether this stream can be split. For sessions that use the LIQUID sharding
      * strategy, this value is always false. For BALANCED sessions, this value is
@@ -6914,57 +8117,63 @@ public interface StreamStatusOrBuilder extends
      * 
* * bool is_splittable = 3; + * * @return The isSplittable. */ boolean getIsSplittable(); } /** + * + * *
    * Progress information for a given Stream.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.StreamStatus} */ - public static final class StreamStatus extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StreamStatus extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.StreamStatus) StreamStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamStatus.newBuilder() to construct. private StreamStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamStatus() { - } + + private StreamStatus() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.class, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder.class); } public static final int ESTIMATED_ROW_COUNT_FIELD_NUMBER = 1; private long estimatedRowCount_ = 0L; /** + * + * *
      * Number of estimated rows in the current stream. May change over time as
      * different readers in the stream progress at rates which are relatively fast
@@ -6972,6 +8181,7 @@ protected java.lang.Object newInstance(
      * 
* * int64 estimated_row_count = 1; + * * @return The estimatedRowCount. */ @java.lang.Override @@ -6982,6 +8192,8 @@ public long getEstimatedRowCount() { public static final int FRACTION_CONSUMED_FIELD_NUMBER = 2; private float fractionConsumed_ = 0F; /** + * + * *
      * A value in the range [0.0, 1.0] that represents the fraction of rows
      * assigned to this stream that have been processed by the server. In the
@@ -6992,6 +8204,7 @@ public long getEstimatedRowCount() {
      * 
* * float fraction_consumed = 2; + * * @return The fractionConsumed. */ @java.lang.Override @@ -7002,11 +8215,14 @@ public float getFractionConsumed() { public static final int PROGRESS_FIELD_NUMBER = 4; private com.google.cloud.bigquery.storage.v1beta1.Storage.Progress progress_; /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; + * * @return Whether the progress field is set. */ @java.lang.Override @@ -7014,18 +8230,25 @@ public boolean hasProgress() { return progress_ != null; } /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; + * * @return The progress. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getProgress() { - return progress_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() : progress_; + return progress_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() + : progress_; } /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -7033,13 +8256,18 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getProgress() * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder getProgressOrBuilder() { - return progress_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() : progress_; + public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder + getProgressOrBuilder() { + return progress_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() + : progress_; } public static final int IS_SPLITTABLE_FIELD_NUMBER = 3; private boolean isSplittable_ = false; /** + * + * *
      * Whether this stream can be split. For sessions that use the LIQUID sharding
      * strategy, this value is always false. For BALANCED sessions, this value is
@@ -7049,6 +8277,7 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder getPr
      * 
* * bool is_splittable = 3; + * * @return The isSplittable. */ @java.lang.Override @@ -7057,6 +8286,7 @@ public boolean getIsSplittable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7068,8 +8298,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (estimatedRowCount_ != 0L) { output.writeInt64(1, estimatedRowCount_); } @@ -7092,20 +8321,16 @@ public int getSerializedSize() { size = 0; if (estimatedRowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, estimatedRowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, estimatedRowCount_); } if (java.lang.Float.floatToRawIntBits(fractionConsumed_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, fractionConsumed_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, fractionConsumed_); } if (isSplittable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, isSplittable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isSplittable_); } if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getProgress()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProgress()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -7115,25 +8340,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus other = (com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus) obj; - if (getEstimatedRowCount() - != other.getEstimatedRowCount()) return false; + if (getEstimatedRowCount() != other.getEstimatedRowCount()) return false; if (java.lang.Float.floatToIntBits(getFractionConsumed()) - != java.lang.Float.floatToIntBits( - other.getFractionConsumed())) return false; + != java.lang.Float.floatToIntBits(other.getFractionConsumed())) return false; if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress() - .equals(other.getProgress())) return false; + if (!getProgress().equals(other.getProgress())) return false; } - if (getIsSplittable() - != other.getIsSplittable()) return false; + if (getIsSplittable() != other.getIsSplittable()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7146,105 +8368,109 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ESTIMATED_ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEstimatedRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEstimatedRowCount()); hash = (37 * hash) + FRACTION_CONSUMED_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getFractionConsumed()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFractionConsumed()); if (hasProgress()) { hash = (37 * hash) + PROGRESS_FIELD_NUMBER; hash = (53 * hash) + getProgress().hashCode(); } hash = (37 * hash) + IS_SPLITTABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsSplittable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsSplittable()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -7254,39 +8480,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Progress information for a given Stream.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.StreamStatus} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.StreamStatus) com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.class, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -7303,13 +8531,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance(); } @@ -7324,13 +8553,17 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus result = new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus result = + new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.estimatedRowCount_ = estimatedRowCount_; @@ -7339,9 +8572,7 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Str result.fractionConsumed_ = fractionConsumed_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.progress_ = progressBuilder_ == null - ? progress_ - : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.isSplittable_ = isSplittable_; @@ -7352,46 +8583,52 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Str public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance()) + return this; if (other.getEstimatedRowCount() != 0L) { setEstimatedRowCount(other.getEstimatedRowCount()); } @@ -7430,34 +8667,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - estimatedRowCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 21: { - fractionConsumed_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 24: { - isSplittable_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: { - input.readMessage( - getProgressFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + estimatedRowCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: + { + fractionConsumed_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + case 24: + { + isSplittable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -7467,10 +8707,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long estimatedRowCount_ ; + private long estimatedRowCount_; /** + * + * *
        * Number of estimated rows in the current stream. May change over time as
        * different readers in the stream progress at rates which are relatively fast
@@ -7478,6 +8721,7 @@ public Builder mergeFrom(
        * 
* * int64 estimated_row_count = 1; + * * @return The estimatedRowCount. */ @java.lang.Override @@ -7485,6 +8729,8 @@ public long getEstimatedRowCount() { return estimatedRowCount_; } /** + * + * *
        * Number of estimated rows in the current stream. May change over time as
        * different readers in the stream progress at rates which are relatively fast
@@ -7492,17 +8738,20 @@ public long getEstimatedRowCount() {
        * 
* * int64 estimated_row_count = 1; + * * @param value The estimatedRowCount to set. * @return This builder for chaining. */ public Builder setEstimatedRowCount(long value) { - + estimatedRowCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Number of estimated rows in the current stream. May change over time as
        * different readers in the stream progress at rates which are relatively fast
@@ -7510,6 +8759,7 @@ public Builder setEstimatedRowCount(long value) {
        * 
* * int64 estimated_row_count = 1; + * * @return This builder for chaining. */ public Builder clearEstimatedRowCount() { @@ -7519,8 +8769,10 @@ public Builder clearEstimatedRowCount() { return this; } - private float fractionConsumed_ ; + private float fractionConsumed_; /** + * + * *
        * A value in the range [0.0, 1.0] that represents the fraction of rows
        * assigned to this stream that have been processed by the server. In the
@@ -7531,6 +8783,7 @@ public Builder clearEstimatedRowCount() {
        * 
* * float fraction_consumed = 2; + * * @return The fractionConsumed. */ @java.lang.Override @@ -7538,6 +8791,8 @@ public float getFractionConsumed() { return fractionConsumed_; } /** + * + * *
        * A value in the range [0.0, 1.0] that represents the fraction of rows
        * assigned to this stream that have been processed by the server. In the
@@ -7548,17 +8803,20 @@ public float getFractionConsumed() {
        * 
* * float fraction_consumed = 2; + * * @param value The fractionConsumed to set. * @return This builder for chaining. */ public Builder setFractionConsumed(float value) { - + fractionConsumed_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * A value in the range [0.0, 1.0] that represents the fraction of rows
        * assigned to this stream that have been processed by the server. In the
@@ -7569,6 +8827,7 @@ public Builder setFractionConsumed(float value) {
        * 
* * float fraction_consumed = 2; + * * @return This builder for chaining. */ public Builder clearFractionConsumed() { @@ -7580,34 +8839,47 @@ public Builder clearFractionConsumed() { private com.google.cloud.bigquery.storage.v1beta1.Storage.Progress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder> progressBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder> + progressBuilder_; /** + * + * *
        * Represents the progress of the current stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; + * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Represents the progress of the current stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; + * * @return The progress. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getProgress() { if (progressBuilder_ == null) { - return progress_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() : progress_; + return progress_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() + : progress_; } else { return progressBuilder_.getMessage(); } } /** + * + * *
        * Represents the progress of the current stream.
        * 
@@ -7628,6 +8900,8 @@ public Builder setProgress(com.google.cloud.bigquery.storage.v1beta1.Storage.Pro return this; } /** + * + * *
        * Represents the progress of the current stream.
        * 
@@ -7646,17 +8920,22 @@ public Builder setProgress( return this; } /** + * + * *
        * Represents the progress of the current stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; */ - public Builder mergeProgress(com.google.cloud.bigquery.storage.v1beta1.Storage.Progress value) { + public Builder mergeProgress( + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - progress_ != null && - progress_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && progress_ != null + && progress_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.Progress + .getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -7669,6 +8948,8 @@ public Builder mergeProgress(com.google.cloud.bigquery.storage.v1beta1.Storage.P return this; } /** + * + * *
        * Represents the progress of the current stream.
        * 
@@ -7686,33 +8967,42 @@ public Builder clearProgress() { return this; } /** + * + * *
        * Represents the progress of the current stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder getProgressBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder + getProgressBuilder() { bitField0_ |= 0x00000004; onChanged(); return getProgressFieldBuilder().getBuilder(); } /** + * + * *
        * Represents the progress of the current stream.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder getProgressOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder + getProgressOrBuilder() { if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null ? - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() : progress_; + return progress_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance() + : progress_; } } /** + * + * *
        * Represents the progress of the current stream.
        * 
@@ -7720,21 +9010,26 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder getPr * .google.cloud.bigquery.storage.v1beta1.Progress progress = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder>( - getProgress(), - getParentForChildren(), - isClean()); + progressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress, + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder>( + getProgress(), getParentForChildren(), isClean()); progress_ = null; } return progressBuilder_; } - private boolean isSplittable_ ; + private boolean isSplittable_; /** + * + * *
        * Whether this stream can be split. For sessions that use the LIQUID sharding
        * strategy, this value is always false. For BALANCED sessions, this value is
@@ -7744,6 +9039,7 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder getPr
        * 
* * bool is_splittable = 3; + * * @return The isSplittable. */ @java.lang.Override @@ -7751,6 +9047,8 @@ public boolean getIsSplittable() { return isSplittable_; } /** + * + * *
        * Whether this stream can be split. For sessions that use the LIQUID sharding
        * strategy, this value is always false. For BALANCED sessions, this value is
@@ -7760,17 +9058,20 @@ public boolean getIsSplittable() {
        * 
* * bool is_splittable = 3; + * * @param value The isSplittable to set. * @return This builder for chaining. */ public Builder setIsSplittable(boolean value) { - + isSplittable_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
        * Whether this stream can be split. For sessions that use the LIQUID sharding
        * strategy, this value is always false. For BALANCED sessions, this value is
@@ -7780,6 +9081,7 @@ public Builder setIsSplittable(boolean value) {
        * 
* * bool is_splittable = 3; + * * @return This builder for chaining. */ public Builder clearIsSplittable() { @@ -7788,6 +9090,7 @@ public Builder clearIsSplittable() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7800,41 +9103,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.StreamStatus) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.StreamStatus) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -7846,17 +9152,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ProgressOrBuilder extends + public interface ProgressOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.Progress) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The fraction of rows assigned to the stream that have been processed by the
      * server so far, not including the rows in the current response message.
@@ -7870,64 +9179,69 @@ public interface ProgressOrBuilder extends
      * 
* * float at_response_start = 1; + * * @return The atResponseStart. */ float getAtResponseStart(); /** + * + * *
      * Similar to `at_response_start`, except that this value includes the rows in
      * the current response.
      * 
* * float at_response_end = 2; + * * @return The atResponseEnd. */ float getAtResponseEnd(); } - /** - * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Progress} - */ - public static final class Progress extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Progress} */ + public static final class Progress extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.Progress) ProgressOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Progress.newBuilder() to construct. private Progress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Progress() { - } + + private Progress() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Progress(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.class, com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder.class); } public static final int AT_RESPONSE_START_FIELD_NUMBER = 1; private float atResponseStart_ = 0F; /** + * + * *
      * The fraction of rows assigned to the stream that have been processed by the
      * server so far, not including the rows in the current response message.
@@ -7941,6 +9255,7 @@ protected java.lang.Object newInstance(
      * 
* * float at_response_start = 1; + * * @return The atResponseStart. */ @java.lang.Override @@ -7951,12 +9266,15 @@ public float getAtResponseStart() { public static final int AT_RESPONSE_END_FIELD_NUMBER = 2; private float atResponseEnd_ = 0F; /** + * + * *
      * Similar to `at_response_start`, except that this value includes the rows in
      * the current response.
      * 
* * float at_response_end = 2; + * * @return The atResponseEnd. */ @java.lang.Override @@ -7965,6 +9283,7 @@ public float getAtResponseEnd() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7976,8 +9295,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Float.floatToRawIntBits(atResponseStart_) != 0) { output.writeFloat(1, atResponseStart_); } @@ -7994,12 +9312,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(atResponseStart_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, atResponseStart_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, atResponseStart_); } if (java.lang.Float.floatToRawIntBits(atResponseEnd_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, atResponseEnd_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, atResponseEnd_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8009,19 +9325,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.Progress)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress other = (com.google.cloud.bigquery.storage.v1beta1.Storage.Progress) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.Progress) obj; if (java.lang.Float.floatToIntBits(getAtResponseStart()) - != java.lang.Float.floatToIntBits( - other.getAtResponseStart())) return false; + != java.lang.Float.floatToIntBits(other.getAtResponseStart())) return false; if (java.lang.Float.floatToIntBits(getAtResponseEnd()) - != java.lang.Float.floatToIntBits( - other.getAtResponseEnd())) return false; + != java.lang.Float.floatToIntBits(other.getAtResponseEnd())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8034,98 +9349,103 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AT_RESPONSE_START_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAtResponseStart()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAtResponseStart()); hash = (37 * hash) + AT_RESPONSE_END_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAtResponseEnd()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAtResponseEnd()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.Progress prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8134,36 +9454,34 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Progress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.bigquery.storage.v1beta1.Progress} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.Progress) com.google.cloud.bigquery.storage.v1beta1.Storage.ProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.class, com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -8174,13 +9492,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance(); } @@ -8195,13 +9514,17 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.Progress result = new com.google.cloud.bigquery.storage.v1beta1.Storage.Progress(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress result = + new com.google.cloud.bigquery.storage.v1beta1.Storage.Progress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Progress result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.Progress result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.atResponseStart_ = atResponseStart_; @@ -8215,38 +9538,41 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Pro public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.Progress) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.Progress)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.Progress) other); } else { super.mergeFrom(other); return this; @@ -8254,7 +9580,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.Progress other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage.Progress.getDefaultInstance()) + return this; if (other.getAtResponseStart() != 0F) { setAtResponseStart(other.getAtResponseStart()); } @@ -8287,22 +9615,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: { - atResponseStart_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 21: { - atResponseEnd_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 13: + { + atResponseStart_ = input.readFloat(); + bitField0_ |= 0x00000001; + break; + } // case 13 + case 21: + { + atResponseEnd_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8312,10 +9643,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private float atResponseStart_ ; + private float atResponseStart_; /** + * + * *
        * The fraction of rows assigned to the stream that have been processed by the
        * server so far, not including the rows in the current response message.
@@ -8329,6 +9663,7 @@ public Builder mergeFrom(
        * 
* * float at_response_start = 1; + * * @return The atResponseStart. */ @java.lang.Override @@ -8336,6 +9671,8 @@ public float getAtResponseStart() { return atResponseStart_; } /** + * + * *
        * The fraction of rows assigned to the stream that have been processed by the
        * server so far, not including the rows in the current response message.
@@ -8349,17 +9686,20 @@ public float getAtResponseStart() {
        * 
* * float at_response_start = 1; + * * @param value The atResponseStart to set. * @return This builder for chaining. */ public Builder setAtResponseStart(float value) { - + atResponseStart_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The fraction of rows assigned to the stream that have been processed by the
        * server so far, not including the rows in the current response message.
@@ -8373,6 +9713,7 @@ public Builder setAtResponseStart(float value) {
        * 
* * float at_response_start = 1; + * * @return This builder for chaining. */ public Builder clearAtResponseStart() { @@ -8382,14 +9723,17 @@ public Builder clearAtResponseStart() { return this; } - private float atResponseEnd_ ; + private float atResponseEnd_; /** + * + * *
        * Similar to `at_response_start`, except that this value includes the rows in
        * the current response.
        * 
* * float at_response_end = 2; + * * @return The atResponseEnd. */ @java.lang.Override @@ -8397,29 +9741,35 @@ public float getAtResponseEnd() { return atResponseEnd_; } /** + * + * *
        * Similar to `at_response_start`, except that this value includes the rows in
        * the current response.
        * 
* * float at_response_end = 2; + * * @param value The atResponseEnd to set. * @return This builder for chaining. */ public Builder setAtResponseEnd(float value) { - + atResponseEnd_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Similar to `at_response_start`, except that this value includes the rows in
        * the current response.
        * 
* * float at_response_end = 2; + * * @return This builder for chaining. */ public Builder clearAtResponseEnd() { @@ -8428,6 +9778,7 @@ public Builder clearAtResponseEnd() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8440,12 +9791,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.Progress) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.Progress) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.Progress DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.Progress + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.Progress(); } @@ -8454,27 +9806,28 @@ public static com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Progress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8489,77 +9842,86 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta1.Storage.Progress getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ThrottleStatusOrBuilder extends + public interface ThrottleStatusOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * How much this connection is being throttled.
      * 0 is no throttling, 100 is completely throttled.
      * 
* * int32 throttle_percent = 1; + * * @return The throttlePercent. */ int getThrottlePercent(); } /** + * + * *
    * Information on if the current connection is being throttled.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ThrottleStatus} */ - public static final class ThrottleStatus extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ThrottleStatus extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) ThrottleStatusOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ThrottleStatus.newBuilder() to construct. private ThrottleStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ThrottleStatus() { - } + + private ThrottleStatus() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ThrottleStatus(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder.class); } public static final int THROTTLE_PERCENT_FIELD_NUMBER = 1; private int throttlePercent_ = 0; /** + * + * *
      * How much this connection is being throttled.
      * 0 is no throttling, 100 is completely throttled.
      * 
* * int32 throttle_percent = 1; + * * @return The throttlePercent. */ @java.lang.Override @@ -8568,6 +9930,7 @@ public int getThrottlePercent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -8579,8 +9942,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (throttlePercent_ != 0) { output.writeInt32(1, throttlePercent_); } @@ -8594,8 +9956,7 @@ public int getSerializedSize() { size = 0; if (throttlePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, throttlePercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, throttlePercent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -8605,15 +9966,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus other = (com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus) obj; - if (getThrottlePercent() - != other.getThrottlePercent()) return false; + if (getThrottlePercent() != other.getThrottlePercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -8633,87 +9994,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -8723,39 +10092,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information on if the current connection is being throttled.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ThrottleStatus} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -8765,14 +10137,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus + .getDefaultInstance(); } @java.lang.Override @@ -8786,13 +10160,17 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus build() @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus result = new com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus result = + new com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.throttlePercent_ = throttlePercent_; @@ -8803,46 +10181,53 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Thr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus + .getDefaultInstance()) return this; if (other.getThrottlePercent() != 0) { setThrottlePercent(other.getThrottlePercent()); } @@ -8872,17 +10257,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - throttlePercent_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + throttlePercent_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -8892,16 +10279,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int throttlePercent_ ; + private int throttlePercent_; /** + * + * *
        * How much this connection is being throttled.
        * 0 is no throttling, 100 is completely throttled.
        * 
* * int32 throttle_percent = 1; + * * @return The throttlePercent. */ @java.lang.Override @@ -8909,29 +10300,35 @@ public int getThrottlePercent() { return throttlePercent_; } /** + * + * *
        * How much this connection is being throttled.
        * 0 is no throttling, 100 is completely throttled.
        * 
* * int32 throttle_percent = 1; + * * @param value The throttlePercent to set. * @return This builder for chaining. */ public Builder setThrottlePercent(int value) { - + throttlePercent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * How much this connection is being throttled.
        * 0 is no throttling, 100 is completely throttled.
        * 
* * int32 throttle_percent = 1; + * * @return This builder for chaining. */ public Builder clearThrottlePercent() { @@ -8940,6 +10337,7 @@ public Builder clearThrottlePercent() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8952,41 +10350,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ThrottleStatus) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThrottleStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThrottleStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -8998,35 +10399,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ReadRowsResponseOrBuilder extends + public interface ReadRowsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; + * * @return Whether the avroRows field is set. */ boolean hasAvroRows(); /** + * + * *
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; + * * @return The avroRows. */ com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getAvroRows(); /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -9036,33 +10446,44 @@ public interface ReadRowsResponseOrBuilder extends com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder getAvroRowsOrBuilder(); /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * * @return Whether the arrowRecordBatch field is set. */ boolean hasArrowRecordBatch(); /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * * @return The arrowRecordBatch. */ com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getArrowRecordBatch(); /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder(); + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder + getArrowRecordBatchOrBuilder(); /** + * + * *
      * Number of serialized rows in the rows block. This value is recorded here,
      * in addition to the row_count values in the output-specific messages in
@@ -9071,29 +10492,38 @@ public interface ReadRowsResponseOrBuilder extends
      * 
* * int64 row_count = 6; + * * @return The rowCount. */ long getRowCount(); /** + * + * *
      * Estimated stream statistics.
      * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
      * Estimated stream statistics.
      * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; + * * @return The status. */ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getStatus(); /** + * + * *
      * Estimated stream statistics.
      * 
@@ -9103,26 +10533,34 @@ public interface ReadRowsResponseOrBuilder extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder getStatusOrBuilder(); /** + * + * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; + * * @return Whether the throttleStatus field is set. */ boolean hasThrottleStatus(); /** + * + * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; + * * @return The throttleStatus. */ com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getThrottleStatus(); /** + * + * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
@@ -9130,11 +10568,15 @@ public interface ReadRowsResponseOrBuilder extends
      *
      * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
      */
-    com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder getThrottleStatusOrBuilder();
+    com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder
+        getThrottleStatusOrBuilder();
 
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.RowsCase getRowsCase();
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.RowsCase
+        getRowsCase();
   }
   /**
+   *
+   *
    * 
    * Response from calling `ReadRows` may include row data, progress and
    * throttling information.
@@ -9142,52 +10584,56 @@ public interface ReadRowsResponseOrBuilder extends
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadRowsResponse}
    */
-  public static final class ReadRowsResponse extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ReadRowsResponse extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse)
       ReadRowsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ReadRowsResponse.newBuilder() to construct.
     private ReadRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private ReadRowsResponse() {
-    }
+
+    private ReadRowsResponse() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ReadRowsResponse();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta1.Storage
+          .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta1.Storage
+          .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.class,
+              com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.Builder.class);
     }
 
     private int rowsCase_ = 0;
     private java.lang.Object rows_;
+
     public enum RowsCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       AVRO_ROWS(3),
       ARROW_RECORD_BATCH(4),
       ROWS_NOT_SET(0);
       private final int value;
+
       private RowsCase(int value) {
         this.value = value;
       }
@@ -9203,30 +10649,36 @@ public static RowsCase valueOf(int value) {
 
       public static RowsCase forNumber(int value) {
         switch (value) {
-          case 3: return AVRO_ROWS;
-          case 4: return ARROW_RECORD_BATCH;
-          case 0: return ROWS_NOT_SET;
-          default: return null;
+          case 3:
+            return AVRO_ROWS;
+          case 4:
+            return ARROW_RECORD_BATCH;
+          case 0:
+            return ROWS_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public RowsCase
-    getRowsCase() {
-      return RowsCase.forNumber(
-          rowsCase_);
+    public RowsCase getRowsCase() {
+      return RowsCase.forNumber(rowsCase_);
     }
 
     public static final int AVRO_ROWS_FIELD_NUMBER = 3;
     /**
+     *
+     *
      * 
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; + * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -9234,21 +10686,26 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; + * * @return The avroRows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getAvroRows() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance(); } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -9256,20 +10713,24 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getAvroRows( * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder getAvroRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder + getAvroRowsOrBuilder() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance(); } public static final int ARROW_RECORD_BATCH_FIELD_NUMBER = 4; /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -9277,21 +10738,28 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * * @return The arrowRecordBatch. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getArrowRecordBatch() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + getArrowRecordBatch() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + .getDefaultInstance(); } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -9299,16 +10767,20 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch get * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder + getArrowRecordBatchOrBuilder() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + .getDefaultInstance(); } public static final int ROW_COUNT_FIELD_NUMBER = 6; private long rowCount_ = 0L; /** + * + * *
      * Number of serialized rows in the rows block. This value is recorded here,
      * in addition to the row_count values in the output-specific messages in
@@ -9317,6 +10789,7 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBu
      * 
* * int64 row_count = 6; + * * @return The rowCount. */ @java.lang.Override @@ -9327,11 +10800,14 @@ public long getRowCount() { public static final int STATUS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus status_; /** + * + * *
      * Estimated stream statistics.
      * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; + * * @return Whether the status field is set. */ @java.lang.Override @@ -9339,18 +10815,25 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
      * Estimated stream statistics.
      * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; + * * @return The status. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getStatus() { - return status_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() + : status_; } /** + * + * *
      * Estimated stream statistics.
      * 
@@ -9358,19 +10841,25 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getStatus( * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder getStatusOrBuilder() { - return status_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() : status_; + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder + getStatusOrBuilder() { + return status_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() + : status_; } public static final int THROTTLE_STATUS_FIELD_NUMBER = 5; private com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus throttleStatus_; /** + * + * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; + * * @return Whether the throttleStatus field is set. */ @java.lang.Override @@ -9378,19 +10867,26 @@ public boolean hasThrottleStatus() { return throttleStatus_ != null; } /** + * + * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; + * * @return The throttleStatus. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getThrottleStatus() { - return throttleStatus_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance() : throttleStatus_; + return throttleStatus_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance() + : throttleStatus_; } /** + * + * *
      * Throttling status. If unset, the latest response still describes
      * the current throttling status.
@@ -9399,11 +10895,15 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getThrot
      * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
      */
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder getThrottleStatusOrBuilder() {
-      return throttleStatus_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance() : throttleStatus_;
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder
+        getThrottleStatusOrBuilder() {
+      return throttleStatus_ == null
+          ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance()
+          : throttleStatus_;
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -9415,16 +10915,17 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (status_ != null) {
         output.writeMessage(2, getStatus());
       }
       if (rowsCase_ == 3) {
-        output.writeMessage(3, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_);
+        output.writeMessage(
+            3, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_);
       }
       if (rowsCase_ == 4) {
-        output.writeMessage(4, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_);
+        output.writeMessage(
+            4, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_);
       }
       if (throttleStatus_ != null) {
         output.writeMessage(5, getThrottleStatus());
@@ -9442,24 +10943,23 @@ public int getSerializedSize() {
 
       size = 0;
       if (status_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getStatus());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStatus());
       }
       if (rowsCase_ == 3) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_);
+        size +=
+            com.google.protobuf.CodedOutputStream.computeMessageSize(
+                3, (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_);
       }
       if (rowsCase_ == 4) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_);
+        size +=
+            com.google.protobuf.CodedOutputStream.computeMessageSize(
+                4, (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_);
       }
       if (throttleStatus_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(5, getThrottleStatus());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getThrottleStatus());
       }
       if (rowCount_ != 0L) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeInt64Size(6, rowCount_);
+        size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, rowCount_);
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -9469,34 +10969,30 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
       if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse other = (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse) obj;
+      com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse other =
+          (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse) obj;
 
-      if (getRowCount()
-          != other.getRowCount()) return false;
+      if (getRowCount() != other.getRowCount()) return false;
       if (hasStatus() != other.hasStatus()) return false;
       if (hasStatus()) {
-        if (!getStatus()
-            .equals(other.getStatus())) return false;
+        if (!getStatus().equals(other.getStatus())) return false;
       }
       if (hasThrottleStatus() != other.hasThrottleStatus()) return false;
       if (hasThrottleStatus()) {
-        if (!getThrottleStatus()
-            .equals(other.getThrottleStatus())) return false;
+        if (!getThrottleStatus().equals(other.getThrottleStatus())) return false;
       }
       if (!getRowsCase().equals(other.getRowsCase())) return false;
       switch (rowsCase_) {
         case 3:
-          if (!getAvroRows()
-              .equals(other.getAvroRows())) return false;
+          if (!getAvroRows().equals(other.getAvroRows())) return false;
           break;
         case 4:
-          if (!getArrowRecordBatch()
-              .equals(other.getArrowRecordBatch())) return false;
+          if (!getArrowRecordBatch().equals(other.getArrowRecordBatch())) return false;
           break;
         case 0:
         default:
@@ -9513,8 +11009,7 @@ public int hashCode() {
       int hash = 41;
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-          getRowCount());
+      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount());
       if (hasStatus()) {
         hash = (37 * hash) + STATUS_FIELD_NUMBER;
         hash = (53 * hash) + getStatus().hashCode();
@@ -9541,87 +11036,95 @@ public int hashCode() {
     }
 
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
+
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
+        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse parseFrom(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -9631,6 +11134,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Response from calling `ReadRows` may include row data, progress and
      * throttling information.
@@ -9638,33 +11143,34 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.ReadRowsResponse}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse)
         com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage
+            .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable
+        return com.google.cloud.bigquery.storage.v1beta1.Storage
+            .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.Builder.class);
+                com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.class,
+                com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.Builder.class);
       }
 
-      // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.newBuilder()
-      private Builder() {
-
-      }
+      // Construct using
+      // com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.newBuilder()
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -9692,14 +11198,16 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage
+            .internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse getDefaultInstanceForType() {
-        return com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.getDefaultInstance();
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
+          getDefaultInstanceForType() {
+        return com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
+            .getDefaultInstance();
       }
 
       @java.lang.Override
@@ -9713,39 +11221,39 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse build(
 
       @java.lang.Override
       public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse buildPartial() {
-        com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result =
+            new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result) {
+      private void buildPartial0(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result) {
         int from_bitField0_ = bitField0_;
         if (((from_bitField0_ & 0x00000004) != 0)) {
           result.rowCount_ = rowCount_;
         }
         if (((from_bitField0_ & 0x00000008) != 0)) {
-          result.status_ = statusBuilder_ == null
-              ? status_
-              : statusBuilder_.build();
+          result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build();
         }
         if (((from_bitField0_ & 0x00000010) != 0)) {
-          result.throttleStatus_ = throttleStatusBuilder_ == null
-              ? throttleStatus_
-              : throttleStatusBuilder_.build();
+          result.throttleStatus_ =
+              throttleStatusBuilder_ == null ? throttleStatus_ : throttleStatusBuilder_.build();
         }
       }
 
-      private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result) {
+      private void buildPartialOneofs(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse result) {
         result.rowsCase_ = rowsCase_;
         result.rows_ = this.rows_;
-        if (rowsCase_ == 3 &&
-            avroRowsBuilder_ != null) {
+        if (rowsCase_ == 3 && avroRowsBuilder_ != null) {
           result.rows_ = avroRowsBuilder_.build();
         }
-        if (rowsCase_ == 4 &&
-            arrowRecordBatchBuilder_ != null) {
+        if (rowsCase_ == 4 && arrowRecordBatchBuilder_ != null) {
           result.rows_ = arrowRecordBatchBuilder_.build();
         }
       }
@@ -9754,46 +11262,53 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta1.Storag
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse) {
-          return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse)other);
+          return mergeFrom(
+              (com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse other) {
-        if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse other) {
+        if (other
+            == com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
+                .getDefaultInstance()) return this;
         if (other.getRowCount() != 0L) {
           setRowCount(other.getRowCount());
         }
@@ -9804,17 +11319,20 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadR
           mergeThrottleStatus(other.getThrottleStatus());
         }
         switch (other.getRowsCase()) {
-          case AVRO_ROWS: {
-            mergeAvroRows(other.getAvroRows());
-            break;
-          }
-          case ARROW_RECORD_BATCH: {
-            mergeArrowRecordBatch(other.getArrowRecordBatch());
-            break;
-          }
-          case ROWS_NOT_SET: {
-            break;
-          }
+          case AVRO_ROWS:
+            {
+              mergeAvroRows(other.getAvroRows());
+              break;
+            }
+          case ARROW_RECORD_BATCH:
+            {
+              mergeArrowRecordBatch(other.getArrowRecordBatch());
+              break;
+            }
+          case ROWS_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -9842,45 +11360,45 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 18: {
-                input.readMessage(
-                    getStatusFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 18
-              case 26: {
-                input.readMessage(
-                    getAvroRowsFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                rowsCase_ = 3;
-                break;
-              } // case 26
-              case 34: {
-                input.readMessage(
-                    getArrowRecordBatchFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                rowsCase_ = 4;
-                break;
-              } // case 34
-              case 42: {
-                input.readMessage(
-                    getThrottleStatusFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-              case 48: {
-                rowCount_ = input.readInt64();
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 48
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 18:
+                {
+                  input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000008;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  input.readMessage(getAvroRowsFieldBuilder().getBuilder(), extensionRegistry);
+                  rowsCase_ = 3;
+                  break;
+                } // case 26
+              case 34:
+                {
+                  input.readMessage(
+                      getArrowRecordBatchFieldBuilder().getBuilder(), extensionRegistry);
+                  rowsCase_ = 4;
+                  break;
+                } // case 34
+              case 42:
+                {
+                  input.readMessage(
+                      getThrottleStatusFieldBuilder().getBuilder(), extensionRegistry);
+                  bitField0_ |= 0x00000010;
+                  break;
+                } // case 42
+              case 48:
+                {
+                  rowCount_ = input.readInt64();
+                  bitField0_ |= 0x00000004;
+                  break;
+                } // case 48
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -9890,12 +11408,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int rowsCase_ = 0;
       private java.lang.Object rows_;
-      public RowsCase
-          getRowsCase() {
-        return RowsCase.forNumber(
-            rowsCase_);
+
+      public RowsCase getRowsCase() {
+        return RowsCase.forNumber(rowsCase_);
       }
 
       public Builder clearRows() {
@@ -9908,13 +11426,19 @@ public Builder clearRows() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder> avroRowsBuilder_;
+              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows,
+              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder,
+              com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder>
+          avroRowsBuilder_;
       /**
+       *
+       *
        * 
        * Serialized row data in AVRO format.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; + * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -9922,11 +11446,14 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** + * + * *
        * Serialized row data in AVRO format.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; + * * @return The avroRows. */ @java.lang.Override @@ -9944,13 +11471,16 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows getAvroRows( } } /** + * + * *
        * Serialized row data in AVRO format.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ - public Builder setAvroRows(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows value) { + public Builder setAvroRows( + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows value) { if (avroRowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -9964,6 +11494,8 @@ public Builder setAvroRows(com.google.cloud.bigquery.storage.v1beta1.AvroProto.A return this; } /** + * + * *
        * Serialized row data in AVRO format.
        * 
@@ -9982,18 +11514,26 @@ public Builder setAvroRows( return this; } /** + * + * *
        * Serialized row data in AVRO format.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ - public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows value) { + public Builder mergeAvroRows( + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows value) { if (avroRowsBuilder_ == null) { - if (rowsCase_ == 3 && - rows_ != com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance()) { - rows_ = com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.newBuilder((com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_) - .mergeFrom(value).buildPartial(); + if (rowsCase_ == 3 + && rows_ + != com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows + .getDefaultInstance()) { + rows_ = + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.newBuilder( + (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_) + .mergeFrom(value) + .buildPartial(); } else { rows_ = value; } @@ -10009,6 +11549,8 @@ public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1beta1.AvroProto return this; } /** + * + * *
        * Serialized row data in AVRO format.
        * 
@@ -10032,16 +11574,21 @@ public Builder clearAvroRows() { return this; } /** + * + * *
        * Serialized row data in AVRO format.
        * 
* * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder getAvroRowsBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder + getAvroRowsBuilder() { return getAvroRowsFieldBuilder().getBuilder(); } /** + * + * *
        * Serialized row data in AVRO format.
        * 
@@ -10049,7 +11596,8 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder getA * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder getAvroRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder + getAvroRowsOrBuilder() { if ((rowsCase_ == 3) && (avroRowsBuilder_ != null)) { return avroRowsBuilder_.getMessageOrBuilder(); } else { @@ -10060,6 +11608,8 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder get } } /** + * + * *
        * Serialized row data in AVRO format.
        * 
@@ -10067,14 +11617,20 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder get * .google.cloud.bigquery.storage.v1beta1.AvroRows avro_rows = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder> getAvroRowsFieldBuilder() { if (avroRowsBuilder_ == null) { if (!(rowsCase_ == 3)) { - rows_ = com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance(); + rows_ = + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.getDefaultInstance(); } - avroRowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder>( + avroRowsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows.Builder, + com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder>( (com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRows) rows_, getParentForChildren(), isClean()); @@ -10086,13 +11642,20 @@ public com.google.cloud.bigquery.storage.v1beta1.AvroProto.AvroRowsOrBuilder get } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder> arrowRecordBatchBuilder_; + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder> + arrowRecordBatchBuilder_; /** + * + * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * + * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -10100,35 +11663,46 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** + * + * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * + * * @return The arrowRecordBatch. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch getArrowRecordBatch() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + getArrowRecordBatch() { if (arrowRecordBatchBuilder_ == null) { if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + .getDefaultInstance(); } else { if (rowsCase_ == 4) { return arrowRecordBatchBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + .getDefaultInstance(); } } /** + * + * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * */ - public Builder setArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch value) { + public Builder setArrowRecordBatch( + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10142,14 +11716,18 @@ public Builder setArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta1.Arr return this; } /** + * + * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * */ public Builder setArrowRecordBatch( - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder + builderForValue) { if (arrowRecordBatchBuilder_ == null) { rows_ = builderForValue.build(); onChanged(); @@ -10160,18 +11738,28 @@ public Builder setArrowRecordBatch( return this; } /** + * + * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * */ - public Builder mergeArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch value) { + public Builder mergeArrowRecordBatch( + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { - if (rowsCase_ == 4 && - rows_ != com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance()) { - rows_ = com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.newBuilder((com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_) - .mergeFrom(value).buildPartial(); + if (rowsCase_ == 4 + && rows_ + != com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + .getDefaultInstance()) { + rows_ = + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.newBuilder( + (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) + rows_) + .mergeFrom(value) + .buildPartial(); } else { rows_ = value; } @@ -10187,11 +11775,14 @@ public Builder mergeArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta1.A return this; } /** + * + * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * */ public Builder clearArrowRecordBatch() { if (arrowRecordBatchBuilder_ == null) { @@ -10210,49 +11801,68 @@ public Builder clearArrowRecordBatch() { return this; } /** + * + * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * */ - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder getArrowRecordBatchBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder + getArrowRecordBatchBuilder() { return getArrowRecordBatchFieldBuilder().getBuilder(); } /** + * + * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder + getArrowRecordBatchOrBuilder() { if ((rowsCase_ == 4) && (arrowRecordBatchBuilder_ != null)) { return arrowRecordBatchBuilder_.getMessageOrBuilder(); } else { if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_; } - return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + .getDefaultInstance(); } } /** + * + * *
        * Serialized row data in Arrow RecordBatch format.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * .google.cloud.bigquery.storage.v1beta1.ArrowRecordBatch arrow_record_batch = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder> getArrowRecordBatchFieldBuilder() { if (arrowRecordBatchBuilder_ == null) { if (!(rowsCase_ == 4)) { - rows_ = com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.getDefaultInstance(); + rows_ = + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch + .getDefaultInstance(); } - arrowRecordBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder>( + arrowRecordBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch.Builder, + com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBuilder>( (com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatch) rows_, getParentForChildren(), isClean()); @@ -10263,8 +11873,10 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBu return arrowRecordBatchBuilder_; } - private long rowCount_ ; + private long rowCount_; /** + * + * *
        * Number of serialized rows in the rows block. This value is recorded here,
        * in addition to the row_count values in the output-specific messages in
@@ -10273,6 +11885,7 @@ public com.google.cloud.bigquery.storage.v1beta1.ArrowProto.ArrowRecordBatchOrBu
        * 
* * int64 row_count = 6; + * * @return The rowCount. */ @java.lang.Override @@ -10280,6 +11893,8 @@ public long getRowCount() { return rowCount_; } /** + * + * *
        * Number of serialized rows in the rows block. This value is recorded here,
        * in addition to the row_count values in the output-specific messages in
@@ -10288,17 +11903,20 @@ public long getRowCount() {
        * 
* * int64 row_count = 6; + * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * Number of serialized rows in the rows block. This value is recorded here,
        * in addition to the row_count values in the output-specific messages in
@@ -10307,6 +11925,7 @@ public Builder setRowCount(long value) {
        * 
* * int64 row_count = 6; + * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -10318,41 +11937,55 @@ public Builder clearRowCount() { private com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder> statusBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder> + statusBuilder_; /** + * + * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; + * * @return Whether the status field is set. */ public boolean hasStatus() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; + * * @return The status. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus getStatus() { if (statusBuilder_ == null) { - return status_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() + : status_; } else { return statusBuilder_.getMessage(); } } /** + * + * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ - public Builder setStatus(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus value) { + public Builder setStatus( + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus value) { if (statusBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -10366,6 +11999,8 @@ public Builder setStatus(com.google.cloud.bigquery.storage.v1beta1.Storage.Strea return this; } /** + * + * *
        * Estimated stream statistics.
        * 
@@ -10384,17 +12019,22 @@ public Builder setStatus( return this; } /** + * + * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ - public Builder mergeStatus(com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus value) { + public Builder mergeStatus( + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - status_ != null && - status_ != com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && status_ != null + && status_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus + .getDefaultInstance()) { getStatusBuilder().mergeFrom(value); } else { status_ = value; @@ -10407,6 +12047,8 @@ public Builder mergeStatus(com.google.cloud.bigquery.storage.v1beta1.Storage.Str return this; } /** + * + * *
        * Estimated stream statistics.
        * 
@@ -10424,33 +12066,42 @@ public Builder clearStatus() { return this; } /** + * + * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder getStatusBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder + getStatusBuilder() { bitField0_ |= 0x00000008; onChanged(); return getStatusFieldBuilder().getBuilder(); } /** + * + * *
        * Estimated stream statistics.
        * 
* * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder getStatusOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder + getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() : status_; + return status_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.getDefaultInstance() + : status_; } } /** + * + * *
        * Estimated stream statistics.
        * 
@@ -10458,14 +12109,17 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder g * .google.cloud.bigquery.storage.v1beta1.StreamStatus status = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatus.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder>( + getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; @@ -10473,36 +12127,50 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamStatusOrBuilder g private com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus throttleStatus_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder> throttleStatusBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus, + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder> + throttleStatusBuilder_; /** + * + * *
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; + * * @return Whether the throttleStatus field is set. */ public boolean hasThrottleStatus() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
        * 
* * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5; + * * @return The throttleStatus. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getThrottleStatus() { if (throttleStatusBuilder_ == null) { - return throttleStatus_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance() : throttleStatus_; + return throttleStatus_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus + .getDefaultInstance() + : throttleStatus_; } else { return throttleStatusBuilder_.getMessage(); } } /** + * + * *
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -10510,7 +12178,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus getThrot
        *
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
-      public Builder setThrottleStatus(com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus value) {
+      public Builder setThrottleStatus(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus value) {
         if (throttleStatusBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -10524,6 +12193,8 @@ public Builder setThrottleStatus(com.google.cloud.bigquery.storage.v1beta1.Stora
         return this;
       }
       /**
+       *
+       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -10532,7 +12203,8 @@ public Builder setThrottleStatus(com.google.cloud.bigquery.storage.v1beta1.Stora
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
       public Builder setThrottleStatus(
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder builderForValue) {
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder
+              builderForValue) {
         if (throttleStatusBuilder_ == null) {
           throttleStatus_ = builderForValue.build();
         } else {
@@ -10543,6 +12215,8 @@ public Builder setThrottleStatus(
         return this;
       }
       /**
+       *
+       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -10550,11 +12224,14 @@ public Builder setThrottleStatus(
        *
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
-      public Builder mergeThrottleStatus(com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus value) {
+      public Builder mergeThrottleStatus(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus value) {
         if (throttleStatusBuilder_ == null) {
-          if (((bitField0_ & 0x00000010) != 0) &&
-            throttleStatus_ != null &&
-            throttleStatus_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000010) != 0)
+              && throttleStatus_ != null
+              && throttleStatus_
+                  != com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus
+                      .getDefaultInstance()) {
             getThrottleStatusBuilder().mergeFrom(value);
           } else {
             throttleStatus_ = value;
@@ -10567,6 +12244,8 @@ public Builder mergeThrottleStatus(com.google.cloud.bigquery.storage.v1beta1.Sto
         return this;
       }
       /**
+       *
+       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -10585,6 +12264,8 @@ public Builder clearThrottleStatus() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -10592,12 +12273,15 @@ public Builder clearThrottleStatus() {
        *
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder getThrottleStatusBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder
+          getThrottleStatusBuilder() {
         bitField0_ |= 0x00000010;
         onChanged();
         return getThrottleStatusFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -10605,15 +12289,20 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder
        *
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder getThrottleStatusOrBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder
+          getThrottleStatusOrBuilder() {
         if (throttleStatusBuilder_ != null) {
           return throttleStatusBuilder_.getMessageOrBuilder();
         } else {
-          return throttleStatus_ == null ?
-              com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.getDefaultInstance() : throttleStatus_;
+          return throttleStatus_ == null
+              ? com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus
+                  .getDefaultInstance()
+              : throttleStatus_;
         }
       }
       /**
+       *
+       *
        * 
        * Throttling status. If unset, the latest response still describes
        * the current throttling status.
@@ -10622,18 +12311,22 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder
        * .google.cloud.bigquery.storage.v1beta1.ThrottleStatus throttle_status = 5;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder> 
+              com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus,
+              com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder,
+              com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder>
           getThrottleStatusFieldBuilder() {
         if (throttleStatusBuilder_ == null) {
-          throttleStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder>(
-                  getThrottleStatus(),
-                  getParentForChildren(),
-                  isClean());
+          throttleStatusBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus,
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatus.Builder,
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.ThrottleStatusOrBuilder>(
+                  getThrottleStatus(), getParentForChildren(), isClean());
           throttleStatus_ = null;
         }
         return throttleStatusBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -10646,41 +12339,44 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.ReadRowsResponse)
-    private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse DEFAULT_INSTANCE;
+    private static final com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse();
     }
 
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse getDefaultInstance() {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public ReadRowsResponse parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public ReadRowsResponse parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -10692,47 +12388,64 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadRowsResponse
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
-  public interface BatchCreateReadSessionStreamsRequestOrBuilder extends
+  public interface BatchCreateReadSessionStreamsRequestOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the session field is set. */ boolean hasSession(); /** + * + * *
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The session. */ com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getSession(); /** + * + * *
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder getSessionOrBuilder(); /** + * + * *
      * Required. Number of new streams requested. Must be positive.
      * Number of added streams may be less than this, see CreateReadSessionRequest
@@ -10740,64 +12453,78 @@ public interface BatchCreateReadSessionStreamsRequestOrBuilder extends
      * 
* * int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The requestedStreams. */ int getRequestedStreams(); } /** + * + * *
    * Information needed to request additional streams for an established read
    * session.
    * 
* - * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest} + * Protobuf type {@code + * google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest} */ - public static final class BatchCreateReadSessionStreamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class BatchCreateReadSessionStreamsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest) BatchCreateReadSessionStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchCreateReadSessionStreamsRequest.newBuilder() to construct. - private BatchCreateReadSessionStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCreateReadSessionStreamsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BatchCreateReadSessionStreamsRequest() { - } + + private BatchCreateReadSessionStreamsRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchCreateReadSessionStreamsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + .class, + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + .Builder.class); } public static final int SESSION_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession session_; /** + * + * *
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the session field is set. */ @java.lang.Override @@ -10805,34 +12532,50 @@ public boolean hasSession() { return session_ != null; } /** + * + * *
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The session. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getSession() { - return session_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() : session_; + return session_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() + : session_; } /** + * + * *
      * Required. Must be a non-expired session obtained from a call to
      * CreateReadSession. Only the name field needs to be set.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder getSessionOrBuilder() { - return session_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() : session_; + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder + getSessionOrBuilder() { + return session_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() + : session_; } public static final int REQUESTED_STREAMS_FIELD_NUMBER = 2; private int requestedStreams_ = 0; /** + * + * *
      * Required. Number of new streams requested. Must be positive.
      * Number of added streams may be less than this, see CreateReadSessionRequest
@@ -10840,6 +12583,7 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder ge
      * 
* * int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The requestedStreams. */ @java.lang.Override @@ -10848,6 +12592,7 @@ public int getRequestedStreams() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10859,8 +12604,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (session_ != null) { output.writeMessage(1, getSession()); } @@ -10877,12 +12621,10 @@ public int getSerializedSize() { size = 0; if (session_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSession()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSession()); } if (requestedStreams_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, requestedStreams_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, requestedStreams_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10892,20 +12634,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest)) { + if (!(obj + instanceof + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest other = (com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest) + obj; if (hasSession() != other.hasSession()) return false; if (hasSession()) { - if (!getSession() - .equals(other.getSession())) return false; + if (!getSession().equals(other.getSession())) return false; } - if (getRequestedStreams() - != other.getRequestedStreams()) return false; + if (getRequestedStreams() != other.getRequestedStreams()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10928,88 +12672,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -11019,40 +12789,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Information needed to request additional streams for an established read
      * session.
      * 
* - * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest} + * Protobuf type {@code + * google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest) - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest.class, + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -11067,19 +12844,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest build() { - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest result = buildPartial(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + build() { + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -11087,19 +12868,25 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionS } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest result = new com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + result = + new com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.session_ = sessionBuilder_ == null - ? session_ - : sessionBuilder_.build(); + result.session_ = sessionBuilder_ == null ? session_ : sessionBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.requestedStreams_ = requestedStreams_; @@ -11110,46 +12897,59 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Bat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest)other); + if (other + instanceof + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest.getDefaultInstance()) return this; if (other.hasSession()) { mergeSession(other.getSession()); } @@ -11182,24 +12982,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSessionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - requestedStreams_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSessionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + requestedStreams_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -11209,48 +13010,69 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession session_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder> sessionBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder> + sessionBuilder_; /** + * + * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the session field is set. */ public boolean hasSession() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The session. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession getSession() { if (sessionBuilder_ == null) { - return session_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() : session_; + return session_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() + : session_; } else { return sessionBuilder_.getMessage(); } } /** + * + * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSession(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession value) { + public Builder setSession( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession value) { if (sessionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -11264,12 +13086,16 @@ public Builder setSession(com.google.cloud.bigquery.storage.v1beta1.Storage.Read return this; } /** + * + * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSession( com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder builderForValue) { @@ -11283,18 +13109,25 @@ public Builder setSession( return this; } /** + * + * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeSession(com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession value) { + public Builder mergeSession( + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession value) { if (sessionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - session_ != null && - session_ != com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && session_ != null + && session_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession + .getDefaultInstance()) { getSessionBuilder().mergeFrom(value); } else { session_ = value; @@ -11307,12 +13140,16 @@ public Builder mergeSession(com.google.cloud.bigquery.storage.v1beta1.Storage.Re return this; } /** + * + * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSession() { bitField0_ = (bitField0_ & ~0x00000001); @@ -11325,58 +13162,78 @@ public Builder clearSession() { return this; } /** + * + * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder getSessionBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder + getSessionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSessionFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder getSessionOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder + getSessionOrBuilder() { if (sessionBuilder_ != null) { return sessionBuilder_.getMessageOrBuilder(); } else { - return session_ == null ? - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() : session_; + return session_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.getDefaultInstance() + : session_; } } /** + * + * *
        * Required. Must be a non-expired session obtained from a call to
        * CreateReadSession. Only the name field needs to be set.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.ReadSession session = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder> getSessionFieldBuilder() { if (sessionBuilder_ == null) { - sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder>( - getSession(), - getParentForChildren(), - isClean()); + sessionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSession.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder>( + getSession(), getParentForChildren(), isClean()); session_ = null; } return sessionBuilder_; } - private int requestedStreams_ ; + private int requestedStreams_; /** + * + * *
        * Required. Number of new streams requested. Must be positive.
        * Number of added streams may be less than this, see CreateReadSessionRequest
@@ -11384,6 +13241,7 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.ReadSessionOrBuilder ge
        * 
* * int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The requestedStreams. */ @java.lang.Override @@ -11391,6 +13249,8 @@ public int getRequestedStreams() { return requestedStreams_; } /** + * + * *
        * Required. Number of new streams requested. Must be positive.
        * Number of added streams may be less than this, see CreateReadSessionRequest
@@ -11398,17 +13258,20 @@ public int getRequestedStreams() {
        * 
* * int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The requestedStreams to set. * @return This builder for chaining. */ public Builder setRequestedStreams(int value) { - + requestedStreams_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. Number of new streams requested. Must be positive.
        * Number of added streams may be less than this, see CreateReadSessionRequest
@@ -11416,6 +13279,7 @@ public Builder setRequestedStreams(int value) {
        * 
* * int32 requested_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRequestedStreams() { @@ -11424,6 +13288,7 @@ public Builder clearRequestedStreams() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -11436,41 +13301,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsRequest) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateReadSessionStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateReadSessionStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -11482,26 +13354,30 @@ public com.google.protobuf.Parser getParse } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BatchCreateReadSessionStreamsResponseOrBuilder extends + public interface BatchCreateReadSessionStreamsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Newly added streams.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ - java.util.List - getStreamsList(); + java.util.List getStreamsList(); /** + * + * *
      * Newly added streams.
      * 
@@ -11510,6 +13386,8 @@ public interface BatchCreateReadSessionStreamsResponseOrBuilder extends */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int index); /** + * + * *
      * Newly added streams.
      * 
@@ -11518,15 +13396,19 @@ public interface BatchCreateReadSessionStreamsResponseOrBuilder extends */ int getStreamsCount(); /** + * + * *
      * Newly added streams.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** + * + * *
      * Newly added streams.
      * 
@@ -11537,55 +13419,67 @@ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamsOrBu int index); } /** + * + * *
    * The response from `BatchCreateReadSessionStreams` returns the stream
    * identifiers for the newly created streams.
    * 
* - * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse} + * Protobuf type {@code + * google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse} */ - public static final class BatchCreateReadSessionStreamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class BatchCreateReadSessionStreamsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) BatchCreateReadSessionStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchCreateReadSessionStreamsResponse.newBuilder() to construct. - private BatchCreateReadSessionStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCreateReadSessionStreamsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchCreateReadSessionStreamsResponse() { streams_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchCreateReadSessionStreamsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse.class, + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse.Builder.class); } public static final int STREAMS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List streams_; /** + * + * *
      * Newly added streams.
      * 
@@ -11593,10 +13487,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ @java.lang.Override - public java.util.List getStreamsList() { + public java.util.List + getStreamsList() { return streams_; } /** + * + * *
      * Newly added streams.
      * 
@@ -11604,11 +13501,14 @@ public java.util.List * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getStreamsOrBuilderList() { return streams_; } /** + * + * *
      * Newly added streams.
      * 
@@ -11620,6 +13520,8 @@ public int getStreamsCount() { return streams_.size(); } /** + * + * *
      * Newly added streams.
      * 
@@ -11631,6 +13533,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int i return streams_.get(index); } /** + * + * *
      * Newly added streams.
      * 
@@ -11644,6 +13548,7 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -11655,8 +13560,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < streams_.size(); i++) { output.writeMessage(1, streams_.get(i)); } @@ -11670,8 +13574,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, streams_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -11681,15 +13584,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse)) { + if (!(obj + instanceof + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse other = (com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + other = + (com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse) + obj; - if (!getStreamsList() - .equals(other.getStreamsList())) return false; + if (!getStreamsList().equals(other.getStreamsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -11710,88 +13619,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -11801,40 +13736,47 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The response from `BatchCreateReadSessionStreams` returns the stream
      * identifiers for the newly created streams.
      * 
* - * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse} + * Protobuf type {@code + * google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse.class, + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -11850,19 +13792,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse build() { - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse result = buildPartial(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + build() { + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -11870,15 +13816,23 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionS } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse result = new com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse(this); + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + result = + new com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -11890,7 +13844,9 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta } } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + result) { int from_bitField0_ = bitField0_; } @@ -11898,46 +13854,59 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Bat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse)other); + if (other + instanceof + com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse.getDefaultInstance()) return this; if (streamsBuilder_ == null) { if (!other.streams_.isEmpty()) { if (streams_.isEmpty()) { @@ -11956,9 +13925,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.Batch streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000001); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStreamsFieldBuilder() : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStreamsFieldBuilder() + : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -11990,25 +13960,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.parser(), - extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -12018,28 +13990,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List streams_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - streams_ = new java.util.ArrayList(streams_); + streams_ = + new java.util.ArrayList( + streams_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> streamsBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + streamsBuilder_; /** + * + * *
        * Newly added streams.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ - public java.util.List getStreamsList() { + public java.util.List + getStreamsList() { if (streamsBuilder_ == null) { return java.util.Collections.unmodifiableList(streams_); } else { @@ -12047,6 +14029,8 @@ public java.util.List } } /** + * + * *
        * Newly added streams.
        * 
@@ -12061,6 +14045,8 @@ public int getStreamsCount() { } } /** + * + * *
        * Newly added streams.
        * 
@@ -12075,6 +14061,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStreams(int i } } /** + * + * *
        * Newly added streams.
        * 
@@ -12096,6 +14084,8 @@ public Builder setStreams( return this; } /** + * + * *
        * Newly added streams.
        * 
@@ -12103,7 +14093,8 @@ public Builder setStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ public Builder setStreams( - int index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { + int index, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.set(index, builderForValue.build()); @@ -12114,6 +14105,8 @@ public Builder setStreams( return this; } /** + * + * *
        * Newly added streams.
        * 
@@ -12134,6 +14127,8 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1beta1.Storage.Stre return this; } /** + * + * *
        * Newly added streams.
        * 
@@ -12155,6 +14150,8 @@ public Builder addStreams( return this; } /** + * + * *
        * Newly added streams.
        * 
@@ -12173,6 +14170,8 @@ public Builder addStreams( return this; } /** + * + * *
        * Newly added streams.
        * 
@@ -12180,7 +14179,8 @@ public Builder addStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ public Builder addStreams( - int index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { + int index, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.add(index, builderForValue.build()); @@ -12191,6 +14191,8 @@ public Builder addStreams( return this; } /** + * + * *
        * Newly added streams.
        * 
@@ -12198,11 +14200,11 @@ public Builder addStreams( * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ public Builder addAllStreams( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -12210,6 +14212,8 @@ public Builder addAllStreams( return this; } /** + * + * *
        * Newly added streams.
        * 
@@ -12227,6 +14231,8 @@ public Builder clearStreams() { return this; } /** + * + * *
        * Newly added streams.
        * 
@@ -12244,6 +14250,8 @@ public Builder removeStreams(int index) { return this; } /** + * + * *
        * Newly added streams.
        * 
@@ -12255,6 +14263,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea return getStreamsFieldBuilder().getBuilder(index); } /** + * + * *
        * Newly added streams.
        * 
@@ -12264,19 +14274,23 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamsOrBuilder( int index) { if (streamsBuilder_ == null) { - return streams_.get(index); } else { + return streams_.get(index); + } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Newly added streams.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -12284,6 +14298,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre } } /** + * + * *
        * Newly added streams.
        * 
@@ -12291,10 +14307,13 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStre * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder().addBuilder( - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); + return getStreamsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); } /** + * + * *
        * Newly added streams.
        * 
@@ -12303,34 +14322,42 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStrea */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder addStreamsBuilder( int index) { - return getStreamsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); + return getStreamsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()); } /** + * + * *
        * Newly added streams.
        * 
* * repeated .google.cloud.bigquery.storage.v1beta1.Stream streams = 1; */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( - streams_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + streamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( + streams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); streams_ = null; } return streamsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -12343,41 +14370,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.BatchCreateReadSessionStreamsResponse) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage + .BatchCreateReadSessionStreamsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateReadSessionStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateReadSessionStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -12389,95 +14423,119 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.BatchCreateReadSessionStreamsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface FinalizeStreamRequestOrBuilder extends + public interface FinalizeStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Stream to finalize.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ boolean hasStream(); /** + * + * *
      * Required. Stream to finalize.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream(); /** + * + * *
      * Required. Stream to finalize.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder(); } /** + * + * *
    * Request information for invoking `FinalizeStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest} */ - public static final class FinalizeStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class FinalizeStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) FinalizeStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FinalizeStreamRequest.newBuilder() to construct. private FinalizeStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FinalizeStreamRequest() { - } + + private FinalizeStreamRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FinalizeStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.Builder + .class); } public static final int STREAM_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream stream_; /** + * + * *
      * Required. Stream to finalize.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ @java.lang.Override @@ -12485,30 +14543,44 @@ public boolean hasStream() { return stream_ != null; } /** + * + * *
      * Required. Stream to finalize.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream() { - return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : stream_; } /** + * + * *
      * Required. Stream to finalize.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder() { - return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : stream_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -12520,8 +14592,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (stream_ != null) { output.writeMessage(2, getStream()); } @@ -12535,8 +14606,7 @@ public int getSerializedSize() { size = 0; if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStream()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStream()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -12546,17 +14616,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest other = (com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) obj; if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream() - .equals(other.getStream())) return false; + if (!getStream().equals(other.getStream())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -12579,87 +14650,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -12669,39 +14748,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request information for invoking `FinalizeStream`.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -12715,19 +14798,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest build() { - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -12735,19 +14821,22 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest b } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result = new com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest + buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result = + new com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.stream_ = streamBuilder_ == null - ? stream_ - : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); } } @@ -12755,46 +14844,54 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Fin public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest)other); + if (other + instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest + .getDefaultInstance()) return this; if (other.hasStream()) { mergeStream(other.getStream()); } @@ -12824,19 +14921,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -12846,43 +14943,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> streamBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + streamBuilder_; /** + * + * *
        * Required. Stream to finalize.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Required. Stream to finalize.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : stream_; } else { return streamBuilder_.getMessage(); } } /** + * + * *
        * Required. Stream to finalize.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { if (streamBuilder_ == null) { @@ -12898,11 +15015,15 @@ public Builder setStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Strea return this; } /** + * + * *
        * Required. Stream to finalize.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStream( com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { @@ -12916,17 +15037,23 @@ public Builder setStream( return this; } /** + * + * *
        * Required. Stream to finalize.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - stream_ != null && - stream_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && stream_ != null + && stream_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream + .getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -12939,11 +15066,15 @@ public Builder mergeStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Str return this; } /** + * + * *
        * Required. Stream to finalize.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000001); @@ -12956,11 +15087,15 @@ public Builder clearStream() { return this; } /** + * + * *
        * Required. Stream to finalize.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStreamBuilder() { bitField0_ |= 0x00000001; @@ -12968,40 +15103,54 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getStrea return getStreamFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Stream to finalize.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getStreamOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder + getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null ? - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : stream_; } } /** + * + * *
        * Required. Stream to finalize.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( - getStream(), - getParentForChildren(), - isClean()); + streamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( + getStream(), getParentForChildren(), isClean()); stream_ = null; } return streamBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13014,41 +15163,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.FinalizeStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FinalizeStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinalizeStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13060,44 +15213,61 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.FinalizeStreamRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SplitReadStreamRequestOrBuilder extends + public interface SplitReadStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. Stream to split.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the originalStream field is set. */ boolean hasOriginalStream(); /** + * + * *
      * Required. Stream to split.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The originalStream. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getOriginalStream(); /** + * + * *
      * Required. Stream to split.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getOriginalStreamOrBuilder(); /** + * + * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -13109,62 +15279,72 @@ public interface SplitReadStreamRequestOrBuilder extends
      * 
* * float fraction = 2; + * * @return The fraction. */ float getFraction(); } /** + * + * *
    * Request information for `SplitReadStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest} */ - public static final class SplitReadStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SplitReadStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) SplitReadStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SplitReadStreamRequest.newBuilder() to construct. private SplitReadStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SplitReadStreamRequest() { - } + + private SplitReadStreamRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SplitReadStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.Builder + .class); } public static final int ORIGINAL_STREAM_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream originalStream_; /** + * + * *
      * Required. Stream to split.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the originalStream field is set. */ @java.lang.Override @@ -13172,32 +15352,48 @@ public boolean hasOriginalStream() { return originalStream_ != null; } /** + * + * *
      * Required. Stream to split.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The originalStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getOriginalStream() { - return originalStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : originalStream_; + return originalStream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : originalStream_; } /** + * + * *
      * Required. Stream to split.
      * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getOriginalStreamOrBuilder() { - return originalStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : originalStream_; + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder + getOriginalStreamOrBuilder() { + return originalStream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : originalStream_; } public static final int FRACTION_FIELD_NUMBER = 2; private float fraction_ = 0F; /** + * + * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -13209,6 +15405,7 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getOrig
      * 
* * float fraction = 2; + * * @return The fraction. */ @java.lang.Override @@ -13217,6 +15414,7 @@ public float getFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -13228,8 +15426,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (originalStream_ != null) { output.writeMessage(1, getOriginalStream()); } @@ -13246,12 +15443,10 @@ public int getSerializedSize() { size = 0; if (originalStream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOriginalStream()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOriginalStream()); } if (java.lang.Float.floatToRawIntBits(fraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, fraction_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, fraction_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -13261,21 +15456,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest other = (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest other = + (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) obj; if (hasOriginalStream() != other.hasOriginalStream()) return false; if (hasOriginalStream()) { - if (!getOriginalStream() - .equals(other.getOriginalStream())) return false; + if (!getOriginalStream().equals(other.getOriginalStream())) return false; } if (java.lang.Float.floatToIntBits(getFraction()) - != java.lang.Float.floatToIntBits( - other.getFraction())) return false; + != java.lang.Float.floatToIntBits(other.getFraction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13292,95 +15487,107 @@ public int hashCode() { hash = (53 * hash) + getOriginalStream().hashCode(); } hash = (37 * hash) + FRACTION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getFraction()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFraction()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -13390,39 +15597,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Request information for `SplitReadStream`.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -13437,19 +15648,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest build() { - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -13457,19 +15671,23 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result = new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result = + new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.originalStream_ = originalStreamBuilder_ == null - ? originalStream_ - : originalStreamBuilder_.build(); + result.originalStream_ = + originalStreamBuilder_ == null ? originalStream_ : originalStreamBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { result.fraction_ = fraction_; @@ -13480,46 +15698,54 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Spl public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest)other); + if (other + instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + .getDefaultInstance()) return this; if (other.hasOriginalStream()) { mergeOriginalStream(other.getOriginalStream()); } @@ -13552,24 +15778,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getOriginalStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: { - fraction_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getOriginalStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + fraction_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -13579,45 +15807,66 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream originalStream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> originalStreamBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + originalStreamBuilder_; /** + * + * *
        * Required. Stream to split.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the originalStream field is set. */ public boolean hasOriginalStream() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Required. Stream to split.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The originalStream. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getOriginalStream() { if (originalStreamBuilder_ == null) { - return originalStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : originalStream_; + return originalStream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : originalStream_; } else { return originalStreamBuilder_.getMessage(); } } /** + * + * *
        * Required. Stream to split.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setOriginalStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { + public Builder setOriginalStream( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { if (originalStreamBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -13631,11 +15880,15 @@ public Builder setOriginalStream(com.google.cloud.bigquery.storage.v1beta1.Stora return this; } /** + * + * *
        * Required. Stream to split.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOriginalStream( com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder builderForValue) { @@ -13649,17 +15902,24 @@ public Builder setOriginalStream( return this; } /** + * + * *
        * Required. Stream to split.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeOriginalStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { + public Builder mergeOriginalStream( + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) { if (originalStreamBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - originalStream_ != null && - originalStream_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && originalStream_ != null + && originalStream_ + != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream + .getDefaultInstance()) { getOriginalStreamBuilder().mergeFrom(value); } else { originalStream_ = value; @@ -13672,11 +15932,15 @@ public Builder mergeOriginalStream(com.google.cloud.bigquery.storage.v1beta1.Sto return this; } /** + * + * *
        * Required. Stream to split.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOriginalStream() { bitField0_ = (bitField0_ & ~0x00000001); @@ -13689,55 +15953,75 @@ public Builder clearOriginalStream() { return this; } /** + * + * *
        * Required. Stream to split.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getOriginalStreamBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder + getOriginalStreamBuilder() { bitField0_ |= 0x00000001; onChanged(); return getOriginalStreamFieldBuilder().getBuilder(); } /** + * + * *
        * Required. Stream to split.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getOriginalStreamOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder + getOriginalStreamOrBuilder() { if (originalStreamBuilder_ != null) { return originalStreamBuilder_.getMessageOrBuilder(); } else { - return originalStream_ == null ? - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : originalStream_; + return originalStream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : originalStream_; } } /** + * + * *
        * Required. Stream to split.
        * 
* - * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta1.Stream original_stream = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> getOriginalStreamFieldBuilder() { if (originalStreamBuilder_ == null) { - originalStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( - getOriginalStream(), - getParentForChildren(), - isClean()); + originalStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>( + getOriginalStream(), getParentForChildren(), isClean()); originalStream_ = null; } return originalStreamBuilder_; } - private float fraction_ ; + private float fraction_; /** + * + * *
        * A value in the range (0.0, 1.0) that specifies the fractional point at
        * which the original stream should be split. The actual split point is
@@ -13749,6 +16033,7 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getOrig
        * 
* * float fraction = 2; + * * @return The fraction. */ @java.lang.Override @@ -13756,6 +16041,8 @@ public float getFraction() { return fraction_; } /** + * + * *
        * A value in the range (0.0, 1.0) that specifies the fractional point at
        * which the original stream should be split. The actual split point is
@@ -13767,17 +16054,20 @@ public float getFraction() {
        * 
* * float fraction = 2; + * * @param value The fraction to set. * @return This builder for chaining. */ public Builder setFraction(float value) { - + fraction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * A value in the range (0.0, 1.0) that specifies the fractional point at
        * which the original stream should be split. The actual split point is
@@ -13789,6 +16079,7 @@ public Builder setFraction(float value) {
        * 
* * float fraction = 2; + * * @return This builder for chaining. */ public Builder clearFraction() { @@ -13797,6 +16088,7 @@ public Builder clearFraction() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13809,41 +16101,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SplitReadStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SplitReadStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -13855,17 +16151,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SplitReadStreamResponseOrBuilder extends + public interface SplitReadStreamResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -13873,10 +16172,13 @@ public interface SplitReadStreamResponseOrBuilder extends
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; + * * @return Whether the primaryStream field is set. */ boolean hasPrimaryStream(); /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -13884,10 +16186,13 @@ public interface SplitReadStreamResponseOrBuilder extends
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; + * * @return The primaryStream. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getPrimaryStream(); /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -13899,26 +16204,34 @@ public interface SplitReadStreamResponseOrBuilder extends
     com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getPrimaryStreamOrBuilder();
 
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; + * * @return Whether the remainderStream field is set. */ boolean hasRemainderStream(); /** + * + * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; + * * @return The remainderStream. */ com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getRemainderStream(); /** + * + * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -13929,52 +16242,58 @@ public interface SplitReadStreamResponseOrBuilder extends
     com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getRemainderStreamOrBuilder();
   }
   /**
+   *
+   *
    * 
    * Response from `SplitReadStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse} */ - public static final class SplitReadStreamResponse extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SplitReadStreamResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse) SplitReadStreamResponseOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SplitReadStreamResponse.newBuilder() to construct. private SplitReadStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SplitReadStreamResponse() { - } + + private SplitReadStreamResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SplitReadStreamResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.Builder + .class); } public static final int PRIMARY_STREAM_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream primaryStream_; /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -13982,6 +16301,7 @@ protected java.lang.Object newInstance(
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; + * * @return Whether the primaryStream field is set. */ @java.lang.Override @@ -13989,6 +16309,8 @@ public boolean hasPrimaryStream() { return primaryStream_ != null; } /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -13996,13 +16318,18 @@ public boolean hasPrimaryStream() {
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; + * * @return The primaryStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getPrimaryStream() { - return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : primaryStream_; + return primaryStream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : primaryStream_; } /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -14012,19 +16339,25 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getPrimaryStream
      * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
      */
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getPrimaryStreamOrBuilder() {
-      return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : primaryStream_;
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder
+        getPrimaryStreamOrBuilder() {
+      return primaryStream_ == null
+          ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()
+          : primaryStream_;
     }
 
     public static final int REMAINDER_STREAM_FIELD_NUMBER = 2;
     private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream remainderStream_;
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; + * * @return Whether the remainderStream field is set. */ @java.lang.Override @@ -14032,19 +16365,26 @@ public boolean hasRemainderStream() { return remainderStream_ != null; } /** + * + * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; + * * @return The remainderStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getRemainderStream() { - return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : remainderStream_; + return remainderStream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : remainderStream_; } /** + * + * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -14053,11 +16393,15 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getRemainderStre
      * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
      */
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getRemainderStreamOrBuilder() {
-      return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : remainderStream_;
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder
+        getRemainderStreamOrBuilder() {
+      return remainderStream_ == null
+          ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()
+          : remainderStream_;
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -14069,8 +16413,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (primaryStream_ != null) {
         output.writeMessage(1, getPrimaryStream());
       }
@@ -14087,12 +16430,10 @@ public int getSerializedSize() {
 
       size = 0;
       if (primaryStream_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getPrimaryStream());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrimaryStream());
       }
       if (remainderStream_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getRemainderStream());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRemainderStream());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -14102,22 +16443,22 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
-      if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse)) {
+      if (!(obj
+          instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse other = (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse) obj;
+      com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse other =
+          (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse) obj;
 
       if (hasPrimaryStream() != other.hasPrimaryStream()) return false;
       if (hasPrimaryStream()) {
-        if (!getPrimaryStream()
-            .equals(other.getPrimaryStream())) return false;
+        if (!getPrimaryStream().equals(other.getPrimaryStream())) return false;
       }
       if (hasRemainderStream() != other.hasRemainderStream()) return false;
       if (hasRemainderStream()) {
-        if (!getRemainderStream()
-            .equals(other.getRemainderStream())) return false;
+        if (!getRemainderStream().equals(other.getRemainderStream())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -14143,88 +16484,101 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseFrom(java.nio.ByteBuffer data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseFrom(
+            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseFrom(com.google.protobuf.ByteString data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseFrom(
+            com.google.protobuf.ByteString data,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse parseFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        parseFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -14234,39 +16588,43 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Response from `SplitReadStream`.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse) com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.class, + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -14285,19 +16643,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage + .internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse build() { - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -14305,24 +16666,27 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result = new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse + buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result = + new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.primaryStream_ = primaryStreamBuilder_ == null - ? primaryStream_ - : primaryStreamBuilder_.build(); + result.primaryStream_ = + primaryStreamBuilder_ == null ? primaryStream_ : primaryStreamBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.remainderStream_ = remainderStreamBuilder_ == null - ? remainderStream_ - : remainderStreamBuilder_.build(); + result.remainderStream_ = + remainderStreamBuilder_ == null ? remainderStream_ : remainderStreamBuilder_.build(); } } @@ -14330,46 +16694,54 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.Storage.Spl public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse)other); + if (other + instanceof com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse + .getDefaultInstance()) return this; if (other.hasPrimaryStream()) { mergePrimaryStream(other.getPrimaryStream()); } @@ -14402,26 +16774,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getPrimaryStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRemainderStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getPrimaryStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getRemainderStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -14431,12 +16803,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream primaryStream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> primaryStreamBuilder_; + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, + com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, + com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> + primaryStreamBuilder_; /** + * + * *
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -14444,12 +16822,15 @@ public Builder mergeFrom(
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; + * * @return Whether the primaryStream field is set. */ public boolean hasPrimaryStream() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -14457,16 +16838,21 @@ public boolean hasPrimaryStream() {
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1; + * * @return The primaryStream. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getPrimaryStream() { if (primaryStreamBuilder_ == null) { - return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : primaryStream_; + return primaryStream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : primaryStream_; } else { return primaryStreamBuilder_.getMessage(); } } /** + * + * *
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -14475,7 +16861,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getPrimaryStream
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
        */
-      public Builder setPrimaryStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
+      public Builder setPrimaryStream(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
         if (primaryStreamBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -14489,6 +16876,8 @@ public Builder setPrimaryStream(com.google.cloud.bigquery.storage.v1beta1.Storag
         return this;
       }
       /**
+       *
+       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -14509,6 +16898,8 @@ public Builder setPrimaryStream(
         return this;
       }
       /**
+       *
+       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -14517,11 +16908,14 @@ public Builder setPrimaryStream(
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
        */
-      public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
+      public Builder mergePrimaryStream(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
         if (primaryStreamBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            primaryStream_ != null &&
-            primaryStream_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && primaryStream_ != null
+              && primaryStream_
+                  != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream
+                      .getDefaultInstance()) {
             getPrimaryStreamBuilder().mergeFrom(value);
           } else {
             primaryStream_ = value;
@@ -14534,6 +16928,8 @@ public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1beta1.Stor
         return this;
       }
       /**
+       *
+       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -14553,6 +16949,8 @@ public Builder clearPrimaryStream() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -14561,12 +16959,15 @@ public Builder clearPrimaryStream() {
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getPrimaryStreamBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder
+          getPrimaryStreamBuilder() {
         bitField0_ |= 0x00000001;
         onChanged();
         return getPrimaryStreamFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -14575,15 +16976,19 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getPrima
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getPrimaryStreamOrBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder
+          getPrimaryStreamOrBuilder() {
         if (primaryStreamBuilder_ != null) {
           return primaryStreamBuilder_.getMessageOrBuilder();
         } else {
-          return primaryStream_ == null ?
-              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : primaryStream_;
+          return primaryStream_ == null
+              ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()
+              : primaryStream_;
         }
       }
       /**
+       *
+       *
        * 
        * Primary stream, which contains the beginning portion of
        * |original_stream|. An empty value indicates that the original stream can no
@@ -14593,14 +16998,17 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getPrim
        * .google.cloud.bigquery.storage.v1beta1.Stream primary_stream = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> 
+              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream,
+              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder,
+              com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>
           getPrimaryStreamFieldBuilder() {
         if (primaryStreamBuilder_ == null) {
-          primaryStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>(
-                  getPrimaryStream(),
-                  getParentForChildren(),
-                  isClean());
+          primaryStreamBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.Stream,
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder,
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>(
+                  getPrimaryStream(), getParentForChildren(), isClean());
           primaryStream_ = null;
         }
         return primaryStreamBuilder_;
@@ -14608,36 +17016,49 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getPrim
 
       private com.google.cloud.bigquery.storage.v1beta1.Storage.Stream remainderStream_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> remainderStreamBuilder_;
+              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream,
+              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder,
+              com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>
+          remainderStreamBuilder_;
       /**
+       *
+       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; + * * @return Whether the remainderStream field is set. */ public boolean hasRemainderStream() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
        * 
* * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2; + * * @return The remainderStream. */ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getRemainderStream() { if (remainderStreamBuilder_ == null) { - return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : remainderStream_; + return remainderStream_ == null + ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() + : remainderStream_; } else { return remainderStreamBuilder_.getMessage(); } } /** + * + * *
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -14645,7 +17066,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream getRemainderStre
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
        */
-      public Builder setRemainderStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
+      public Builder setRemainderStream(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
         if (remainderStreamBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -14659,6 +17081,8 @@ public Builder setRemainderStream(com.google.cloud.bigquery.storage.v1beta1.Stor
         return this;
       }
       /**
+       *
+       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -14678,6 +17102,8 @@ public Builder setRemainderStream(
         return this;
       }
       /**
+       *
+       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -14685,11 +17111,14 @@ public Builder setRemainderStream(
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
        */
-      public Builder mergeRemainderStream(com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
+      public Builder mergeRemainderStream(
+          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream value) {
         if (remainderStreamBuilder_ == null) {
-          if (((bitField0_ & 0x00000002) != 0) &&
-            remainderStream_ != null &&
-            remainderStream_ != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000002) != 0)
+              && remainderStream_ != null
+              && remainderStream_
+                  != com.google.cloud.bigquery.storage.v1beta1.Storage.Stream
+                      .getDefaultInstance()) {
             getRemainderStreamBuilder().mergeFrom(value);
           } else {
             remainderStream_ = value;
@@ -14702,6 +17131,8 @@ public Builder mergeRemainderStream(com.google.cloud.bigquery.storage.v1beta1.St
         return this;
       }
       /**
+       *
+       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -14720,6 +17151,8 @@ public Builder clearRemainderStream() {
         return this;
       }
       /**
+       *
+       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -14727,12 +17160,15 @@ public Builder clearRemainderStream() {
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getRemainderStreamBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder
+          getRemainderStreamBuilder() {
         bitField0_ |= 0x00000002;
         onChanged();
         return getRemainderStreamFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -14740,15 +17176,19 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder getRemai
        *
        * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
        */
-      public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getRemainderStreamOrBuilder() {
+      public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder
+          getRemainderStreamOrBuilder() {
         if (remainderStreamBuilder_ != null) {
           return remainderStreamBuilder_.getMessageOrBuilder();
         } else {
-          return remainderStream_ == null ?
-              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance() : remainderStream_;
+          return remainderStream_ == null
+              ? com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.getDefaultInstance()
+              : remainderStream_;
         }
       }
       /**
+       *
+       *
        * 
        * Remainder stream, which contains the tail of |original_stream|. An empty
        * value indicates that the original stream can no longer be split.
@@ -14757,18 +17197,22 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder getRema
        * .google.cloud.bigquery.storage.v1beta1.Stream remainder_stream = 2;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder> 
+              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream,
+              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder,
+              com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>
           getRemainderStreamFieldBuilder() {
         if (remainderStreamBuilder_ == null) {
-          remainderStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.bigquery.storage.v1beta1.Storage.Stream, com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder, com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>(
-                  getRemainderStream(),
-                  getParentForChildren(),
-                  isClean());
+          remainderStreamBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.Stream,
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.Stream.Builder,
+                  com.google.cloud.bigquery.storage.v1beta1.Storage.StreamOrBuilder>(
+                  getRemainderStream(), getParentForChildren(), isClean());
           remainderStream_ = null;
         }
         return remainderStreamBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -14781,41 +17225,45 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.SplitReadStreamResponse)
-    private static final com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse DEFAULT_INSTANCE;
+    private static final com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse();
+      DEFAULT_INSTANCE =
+          new com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse();
     }
 
-    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse getDefaultInstance() {
+    public static com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public SplitReadStreamResponse parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public SplitReadStreamResponse parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -14827,312 +17275,341 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor;
+  private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable;
 
-  public static com.google.protobuf.Descriptors.FileDescriptor
-      getDescriptor() {
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     return descriptor;
   }
-  private static  com.google.protobuf.Descriptors.FileDescriptor
-      descriptor;
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
   static {
     java.lang.String[] descriptorData = {
-      "\n3google/cloud/bigquery/storage/v1beta1/" +
-      "storage.proto\022%google.cloud.bigquery.sto" +
-      "rage.v1beta1\032\034google/api/annotations.pro" +
-      "to\032\027google/api/client.proto\032\037google/api/" +
-      "field_behavior.proto\032\031google/api/resourc" +
-      "e.proto\0321google/cloud/bigquery/storage/v" +
-      "1beta1/arrow.proto\0320google/cloud/bigquer" +
-      "y/storage/v1beta1/avro.proto\0328google/clo" +
-      "ud/bigquery/storage/v1beta1/read_options" +
-      ".proto\032;google/cloud/bigquery/storage/v1" +
-      "beta1/table_reference.proto\032\033google/prot" +
-      "obuf/empty.proto\032\037google/protobuf/timest" +
-      "amp.proto\"|\n\006Stream\022\014\n\004name\030\001 \001(\t:d\352Aa\n%" +
-      "bigquerystorage.googleapis.com/Stream\0228p" +
-      "rojects/{project}/locations/{location}/s" +
-      "treams/{stream}\"_\n\016StreamPosition\022=\n\006str" +
-      "eam\030\001 \001(\0132-.google.cloud.bigquery.storag" +
-      "e.v1beta1.Stream\022\016\n\006offset\030\002 \001(\003\"\215\005\n\013Rea" +
-      "dSession\022\014\n\004name\030\001 \001(\t\022/\n\013expire_time\030\002 " +
-      "\001(\0132\032.google.protobuf.Timestamp\022H\n\013avro_" +
-      "schema\030\005 \001(\01321.google.cloud.bigquery.sto" +
-      "rage.v1beta1.AvroSchemaH\000\022J\n\014arrow_schem" +
-      "a\030\006 \001(\01322.google.cloud.bigquery.storage." +
-      "v1beta1.ArrowSchemaH\000\022>\n\007streams\030\004 \003(\0132-" +
-      ".google.cloud.bigquery.storage.v1beta1.S" +
-      "tream\022N\n\017table_reference\030\007 \001(\01325.google." +
-      "cloud.bigquery.storage.v1beta1.TableRefe" +
-      "rence\022N\n\017table_modifiers\030\010 \001(\01325.google." +
-      "cloud.bigquery.storage.v1beta1.TableModi" +
-      "fiers\022R\n\021sharding_strategy\030\t \001(\01627.googl" +
-      "e.cloud.bigquery.storage.v1beta1.Shardin" +
-      "gStrategy:k\352Ah\n*bigquerystorage.googleap" +
-      "is.com/ReadSession\022:projects/{project}/l" +
-      "ocations/{location}/sessions/{session}B\010" +
-      "\n\006schema\"\205\004\n\030CreateReadSessionRequest\022S\n" +
-      "\017table_reference\030\001 \001(\01325.google.cloud.bi" +
-      "gquery.storage.v1beta1.TableReferenceB\003\340" +
-      "A\002\022C\n\006parent\030\006 \001(\tB3\340A\002\372A-\n+cloudresourc" +
-      "emanager.googleapis.com/Project\022N\n\017table" +
-      "_modifiers\030\002 \001(\01325.google.cloud.bigquery" +
-      ".storage.v1beta1.TableModifiers\022\031\n\021reque" +
-      "sted_streams\030\003 \001(\005\022M\n\014read_options\030\004 \001(\013" +
-      "27.google.cloud.bigquery.storage.v1beta1" +
-      ".TableReadOptions\022A\n\006format\030\005 \001(\01621.goog" +
-      "le.cloud.bigquery.storage.v1beta1.DataFo" +
-      "rmat\022R\n\021sharding_strategy\030\007 \001(\01627.google" +
-      ".cloud.bigquery.storage.v1beta1.Sharding" +
-      "Strategy\"d\n\017ReadRowsRequest\022Q\n\rread_posi" +
-      "tion\030\001 \001(\01325.google.cloud.bigquery.stora" +
-      "ge.v1beta1.StreamPositionB\003\340A\002\"\240\001\n\014Strea" +
-      "mStatus\022\033\n\023estimated_row_count\030\001 \001(\003\022\031\n\021" +
-      "fraction_consumed\030\002 \001(\002\022A\n\010progress\030\004 \001(" +
-      "\0132/.google.cloud.bigquery.storage.v1beta" +
-      "1.Progress\022\025\n\ris_splittable\030\003 \001(\010\">\n\010Pro" +
-      "gress\022\031\n\021at_response_start\030\001 \001(\002\022\027\n\017at_r" +
-      "esponse_end\030\002 \001(\002\"*\n\016ThrottleStatus\022\030\n\020t" +
-      "hrottle_percent\030\001 \001(\005\"\337\002\n\020ReadRowsRespon" +
-      "se\022D\n\tavro_rows\030\003 \001(\0132/.google.cloud.big" +
-      "query.storage.v1beta1.AvroRowsH\000\022U\n\022arro" +
-      "w_record_batch\030\004 \001(\01327.google.cloud.bigq" +
-      "uery.storage.v1beta1.ArrowRecordBatchH\000\022" +
-      "\021\n\trow_count\030\006 \001(\003\022C\n\006status\030\002 \001(\01323.goo" +
-      "gle.cloud.bigquery.storage.v1beta1.Strea" +
-      "mStatus\022N\n\017throttle_status\030\005 \001(\01325.googl" +
-      "e.cloud.bigquery.storage.v1beta1.Throttl" +
-      "eStatusB\006\n\004rows\"\220\001\n$BatchCreateReadSessi" +
-      "onStreamsRequest\022H\n\007session\030\001 \001(\01322.goog" +
-      "le.cloud.bigquery.storage.v1beta1.ReadSe" +
-      "ssionB\003\340A\002\022\036\n\021requested_streams\030\002 \001(\005B\003\340" +
-      "A\002\"g\n%BatchCreateReadSessionStreamsRespo" +
-      "nse\022>\n\007streams\030\001 \003(\0132-.google.cloud.bigq" +
-      "uery.storage.v1beta1.Stream\"[\n\025FinalizeS" +
-      "treamRequest\022B\n\006stream\030\002 \001(\0132-.google.cl" +
-      "oud.bigquery.storage.v1beta1.StreamB\003\340A\002" +
-      "\"w\n\026SplitReadStreamRequest\022K\n\017original_s" +
-      "tream\030\001 \001(\0132-.google.cloud.bigquery.stor" +
-      "age.v1beta1.StreamB\003\340A\002\022\020\n\010fraction\030\002 \001(" +
-      "\002\"\251\001\n\027SplitReadStreamResponse\022E\n\016primary" +
-      "_stream\030\001 \001(\0132-.google.cloud.bigquery.st" +
-      "orage.v1beta1.Stream\022G\n\020remainder_stream" +
-      "\030\002 \001(\0132-.google.cloud.bigquery.storage.v" +
-      "1beta1.Stream*>\n\nDataFormat\022\033\n\027DATA_FORM" +
-      "AT_UNSPECIFIED\020\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\003*O\n" +
-      "\020ShardingStrategy\022!\n\035SHARDING_STRATEGY_U" +
-      "NSPECIFIED\020\000\022\n\n\006LIQUID\020\001\022\014\n\010BALANCED\020\0022\267" +
-      "\n\n\017BigQueryStorage\022\263\002\n\021CreateReadSession" +
-      "\022?.google.cloud.bigquery.storage.v1beta1" +
-      ".CreateReadSessionRequest\0322.google.cloud" +
-      ".bigquery.storage.v1beta1.ReadSession\"\250\001" +
-      "\202\323\344\223\002w\"0/v1beta1/{table_reference.projec" +
-      "t_id=projects/*}:\001*Z@\";/v1beta1/{table_r" +
-      "eference.dataset_id=projects/*/datasets/" +
-      "*}:\001*\332A(table_reference,parent,requested" +
-      "_streams\022\320\001\n\010ReadRows\0226.google.cloud.big" +
-      "query.storage.v1beta1.ReadRowsRequest\0327." +
-      "google.cloud.bigquery.storage.v1beta1.Re" +
-      "adRowsResponse\"Q\202\323\344\223\002;\0229/v1beta1/{read_p" +
-      "osition.stream.name=projects/*/streams/*" +
-      "}\332A\rread_position0\001\022\220\002\n\035BatchCreateReadS" +
-      "essionStreams\022K.google.cloud.bigquery.st" +
-      "orage.v1beta1.BatchCreateReadSessionStre" +
-      "amsRequest\032L.google.cloud.bigquery.stora" +
-      "ge.v1beta1.BatchCreateReadSessionStreams" +
-      "Response\"T\202\323\344\223\0022\"-/v1beta1/{session.name" +
-      "=projects/*/sessions/*}:\001*\332A\031session,req" +
-      "uested_streams\022\247\001\n\016FinalizeStream\022<.goog" +
-      "le.cloud.bigquery.storage.v1beta1.Finali" +
-      "zeStreamRequest\032\026.google.protobuf.Empty\"" +
-      "?\202\323\344\223\0020\"+/v1beta1/{stream.name=projects/" +
-      "*/streams/*}:\001*\332A\006stream\022\340\001\n\017SplitReadSt" +
-      "ream\022=.google.cloud.bigquery.storage.v1b" +
-      "eta1.SplitReadStreamRequest\032>.google.clo" +
-      "ud.bigquery.storage.v1beta1.SplitReadStr" +
-      "eamResponse\"N\202\323\344\223\0026\0224/v1beta1/{original_" +
-      "stream.name=projects/*/streams/*}\332A\017orig" +
-      "inal_stream\032{\312A\036bigquerystorage.googleap" +
-      "is.com\322AWhttps://www.googleapis.com/auth" +
-      "/bigquery,https://www.googleapis.com/aut" +
-      "h/cloud-platformBp\n)com.google.cloud.big" +
-      "query.storage.v1beta1ZCcloud.google.com/" +
-      "go/bigquery/storage/apiv1beta1/storagepb" +
-      ";storagepbb\006proto3"
+      "\n3google/cloud/bigquery/storage/v1beta1/"
+          + "storage.proto\022%google.cloud.bigquery.sto"
+          + "rage.v1beta1\032\034google/api/annotations.pro"
+          + "to\032\027google/api/client.proto\032\037google/api/"
+          + "field_behavior.proto\032\031google/api/resourc"
+          + "e.proto\0321google/cloud/bigquery/storage/v"
+          + "1beta1/arrow.proto\0320google/cloud/bigquer"
+          + "y/storage/v1beta1/avro.proto\0328google/clo"
+          + "ud/bigquery/storage/v1beta1/read_options"
+          + ".proto\032;google/cloud/bigquery/storage/v1"
+          + "beta1/table_reference.proto\032\033google/prot"
+          + "obuf/empty.proto\032\037google/protobuf/timest"
+          + "amp.proto\"|\n\006Stream\022\014\n\004name\030\001 \001(\t:d\352Aa\n%"
+          + "bigquerystorage.googleapis.com/Stream\0228p"
+          + "rojects/{project}/locations/{location}/s"
+          + "treams/{stream}\"_\n\016StreamPosition\022=\n\006str"
+          + "eam\030\001 \001(\0132-.google.cloud.bigquery.storag"
+          + "e.v1beta1.Stream\022\016\n\006offset\030\002 \001(\003\"\215\005\n\013Rea"
+          + "dSession\022\014\n\004name\030\001 \001(\t\022/\n\013expire_time\030\002 "
+          + "\001(\0132\032.google.protobuf.Timestamp\022H\n\013avro_"
+          + "schema\030\005 \001(\01321.google.cloud.bigquery.sto"
+          + "rage.v1beta1.AvroSchemaH\000\022J\n\014arrow_schem"
+          + "a\030\006 \001(\01322.google.cloud.bigquery.storage."
+          + "v1beta1.ArrowSchemaH\000\022>\n\007streams\030\004 \003(\0132-"
+          + ".google.cloud.bigquery.storage.v1beta1.S"
+          + "tream\022N\n\017table_reference\030\007 \001(\01325.google."
+          + "cloud.bigquery.storage.v1beta1.TableRefe"
+          + "rence\022N\n\017table_modifiers\030\010 \001(\01325.google."
+          + "cloud.bigquery.storage.v1beta1.TableModi"
+          + "fiers\022R\n\021sharding_strategy\030\t \001(\01627.googl"
+          + "e.cloud.bigquery.storage.v1beta1.Shardin"
+          + "gStrategy:k\352Ah\n*bigquerystorage.googleap"
+          + "is.com/ReadSession\022:projects/{project}/l"
+          + "ocations/{location}/sessions/{session}B\010"
+          + "\n\006schema\"\205\004\n\030CreateReadSessionRequest\022S\n"
+          + "\017table_reference\030\001 \001(\01325.google.cloud.bi"
+          + "gquery.storage.v1beta1.TableReferenceB\003\340"
+          + "A\002\022C\n\006parent\030\006 \001(\tB3\340A\002\372A-\n+cloudresourc"
+          + "emanager.googleapis.com/Project\022N\n\017table"
+          + "_modifiers\030\002 \001(\01325.google.cloud.bigquery"
+          + ".storage.v1beta1.TableModifiers\022\031\n\021reque"
+          + "sted_streams\030\003 \001(\005\022M\n\014read_options\030\004 \001(\013"
+          + "27.google.cloud.bigquery.storage.v1beta1"
+          + ".TableReadOptions\022A\n\006format\030\005 \001(\01621.goog"
+          + "le.cloud.bigquery.storage.v1beta1.DataFo"
+          + "rmat\022R\n\021sharding_strategy\030\007 \001(\01627.google"
+          + ".cloud.bigquery.storage.v1beta1.Sharding"
+          + "Strategy\"d\n\017ReadRowsRequest\022Q\n\rread_posi"
+          + "tion\030\001 \001(\01325.google.cloud.bigquery.stora"
+          + "ge.v1beta1.StreamPositionB\003\340A\002\"\240\001\n\014Strea"
+          + "mStatus\022\033\n\023estimated_row_count\030\001 \001(\003\022\031\n\021"
+          + "fraction_consumed\030\002 \001(\002\022A\n\010progress\030\004 \001("
+          + "\0132/.google.cloud.bigquery.storage.v1beta"
+          + "1.Progress\022\025\n\ris_splittable\030\003 \001(\010\">\n\010Pro"
+          + "gress\022\031\n\021at_response_start\030\001 \001(\002\022\027\n\017at_r"
+          + "esponse_end\030\002 \001(\002\"*\n\016ThrottleStatus\022\030\n\020t"
+          + "hrottle_percent\030\001 \001(\005\"\337\002\n\020ReadRowsRespon"
+          + "se\022D\n\tavro_rows\030\003 \001(\0132/.google.cloud.big"
+          + "query.storage.v1beta1.AvroRowsH\000\022U\n\022arro"
+          + "w_record_batch\030\004 \001(\01327.google.cloud.bigq"
+          + "uery.storage.v1beta1.ArrowRecordBatchH\000\022"
+          + "\021\n\trow_count\030\006 \001(\003\022C\n\006status\030\002 \001(\01323.goo"
+          + "gle.cloud.bigquery.storage.v1beta1.Strea"
+          + "mStatus\022N\n\017throttle_status\030\005 \001(\01325.googl"
+          + "e.cloud.bigquery.storage.v1beta1.Throttl"
+          + "eStatusB\006\n\004rows\"\220\001\n$BatchCreateReadSessi"
+          + "onStreamsRequest\022H\n\007session\030\001 \001(\01322.goog"
+          + "le.cloud.bigquery.storage.v1beta1.ReadSe"
+          + "ssionB\003\340A\002\022\036\n\021requested_streams\030\002 \001(\005B\003\340"
+          + "A\002\"g\n%BatchCreateReadSessionStreamsRespo"
+          + "nse\022>\n\007streams\030\001 \003(\0132-.google.cloud.bigq"
+          + "uery.storage.v1beta1.Stream\"[\n\025FinalizeS"
+          + "treamRequest\022B\n\006stream\030\002 \001(\0132-.google.cl"
+          + "oud.bigquery.storage.v1beta1.StreamB\003\340A\002"
+          + "\"w\n\026SplitReadStreamRequest\022K\n\017original_s"
+          + "tream\030\001 \001(\0132-.google.cloud.bigquery.stor"
+          + "age.v1beta1.StreamB\003\340A\002\022\020\n\010fraction\030\002 \001("
+          + "\002\"\251\001\n\027SplitReadStreamResponse\022E\n\016primary"
+          + "_stream\030\001 \001(\0132-.google.cloud.bigquery.st"
+          + "orage.v1beta1.Stream\022G\n\020remainder_stream"
+          + "\030\002 \001(\0132-.google.cloud.bigquery.storage.v"
+          + "1beta1.Stream*>\n\nDataFormat\022\033\n\027DATA_FORM"
+          + "AT_UNSPECIFIED\020\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\003*O\n"
+          + "\020ShardingStrategy\022!\n\035SHARDING_STRATEGY_U"
+          + "NSPECIFIED\020\000\022\n\n\006LIQUID\020\001\022\014\n\010BALANCED\020\0022\267"
+          + "\n\n\017BigQueryStorage\022\263\002\n\021CreateReadSession"
+          + "\022?.google.cloud.bigquery.storage.v1beta1"
+          + ".CreateReadSessionRequest\0322.google.cloud"
+          + ".bigquery.storage.v1beta1.ReadSession\"\250\001"
+          + "\202\323\344\223\002w\"0/v1beta1/{table_reference.projec"
+          + "t_id=projects/*}:\001*Z@\";/v1beta1/{table_r"
+          + "eference.dataset_id=projects/*/datasets/"
+          + "*}:\001*\332A(table_reference,parent,requested"
+          + "_streams\022\320\001\n\010ReadRows\0226.google.cloud.big"
+          + "query.storage.v1beta1.ReadRowsRequest\0327."
+          + "google.cloud.bigquery.storage.v1beta1.Re"
+          + "adRowsResponse\"Q\202\323\344\223\002;\0229/v1beta1/{read_p"
+          + "osition.stream.name=projects/*/streams/*"
+          + "}\332A\rread_position0\001\022\220\002\n\035BatchCreateReadS"
+          + "essionStreams\022K.google.cloud.bigquery.st"
+          + "orage.v1beta1.BatchCreateReadSessionStre"
+          + "amsRequest\032L.google.cloud.bigquery.stora"
+          + "ge.v1beta1.BatchCreateReadSessionStreams"
+          + "Response\"T\202\323\344\223\0022\"-/v1beta1/{session.name"
+          + "=projects/*/sessions/*}:\001*\332A\031session,req"
+          + "uested_streams\022\247\001\n\016FinalizeStream\022<.goog"
+          + "le.cloud.bigquery.storage.v1beta1.Finali"
+          + "zeStreamRequest\032\026.google.protobuf.Empty\""
+          + "?\202\323\344\223\0020\"+/v1beta1/{stream.name=projects/"
+          + "*/streams/*}:\001*\332A\006stream\022\340\001\n\017SplitReadSt"
+          + "ream\022=.google.cloud.bigquery.storage.v1b"
+          + "eta1.SplitReadStreamRequest\032>.google.clo"
+          + "ud.bigquery.storage.v1beta1.SplitReadStr"
+          + "eamResponse\"N\202\323\344\223\0026\0224/v1beta1/{original_"
+          + "stream.name=projects/*/streams/*}\332A\017orig"
+          + "inal_stream\032{\312A\036bigquerystorage.googleap"
+          + "is.com\322AWhttps://www.googleapis.com/auth"
+          + "/bigquery,https://www.googleapis.com/aut"
+          + "h/cloud-platformBp\n)com.google.cloud.big"
+          + "query.storage.v1beta1ZCcloud.google.com/"
+          + "go/bigquery/storage/apiv1beta1/storagepb"
+          + ";storagepbb\006proto3"
     };
-    descriptor = com.google.protobuf.Descriptors.FileDescriptor
-      .internalBuildGeneratedFileFrom(descriptorData,
-        new com.google.protobuf.Descriptors.FileDescriptor[] {
-          com.google.api.AnnotationsProto.getDescriptor(),
-          com.google.api.ClientProto.getDescriptor(),
-          com.google.api.FieldBehaviorProto.getDescriptor(),
-          com.google.api.ResourceProto.getDescriptor(),
-          com.google.cloud.bigquery.storage.v1beta1.ArrowProto.getDescriptor(),
-          com.google.cloud.bigquery.storage.v1beta1.AvroProto.getDescriptor(),
-          com.google.cloud.bigquery.storage.v1beta1.ReadOptions.getDescriptor(),
-          com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.getDescriptor(),
-          com.google.protobuf.EmptyProto.getDescriptor(),
-          com.google.protobuf.TimestampProto.getDescriptor(),
-        });
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.cloud.bigquery.storage.v1beta1.ArrowProto.getDescriptor(),
+              com.google.cloud.bigquery.storage.v1beta1.AvroProto.getDescriptor(),
+              com.google.cloud.bigquery.storage.v1beta1.ReadOptions.getDescriptor(),
+              com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.getDescriptor(),
+              com.google.protobuf.EmptyProto.getDescriptor(),
+              com.google.protobuf.TimestampProto.getDescriptor(),
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor =
-      getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor,
-        new java.lang.String[] { "Name", });
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_bigquery_storage_v1beta1_Stream_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_Stream_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor =
-      getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor,
-        new java.lang.String[] { "Stream", "Offset", });
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_StreamPosition_descriptor,
+            new java.lang.String[] {
+              "Stream", "Offset",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor =
-      getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor,
-        new java.lang.String[] { "Name", "ExpireTime", "AvroSchema", "ArrowSchema", "Streams", "TableReference", "TableModifiers", "ShardingStrategy", "Schema", });
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_ReadSession_descriptor,
+            new java.lang.String[] {
+              "Name",
+              "ExpireTime",
+              "AvroSchema",
+              "ArrowSchema",
+              "Streams",
+              "TableReference",
+              "TableModifiers",
+              "ShardingStrategy",
+              "Schema",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor =
-      getDescriptor().getMessageTypes().get(3);
-    internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor,
-        new java.lang.String[] { "TableReference", "Parent", "TableModifiers", "RequestedStreams", "ReadOptions", "Format", "ShardingStrategy", });
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_CreateReadSessionRequest_descriptor,
+            new java.lang.String[] {
+              "TableReference",
+              "Parent",
+              "TableModifiers",
+              "RequestedStreams",
+              "ReadOptions",
+              "Format",
+              "ShardingStrategy",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor =
-      getDescriptor().getMessageTypes().get(4);
-    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor,
-        new java.lang.String[] { "ReadPosition", });
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsRequest_descriptor,
+            new java.lang.String[] {
+              "ReadPosition",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor =
-      getDescriptor().getMessageTypes().get(5);
-    internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor,
-        new java.lang.String[] { "EstimatedRowCount", "FractionConsumed", "Progress", "IsSplittable", });
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_StreamStatus_descriptor,
+            new java.lang.String[] {
+              "EstimatedRowCount", "FractionConsumed", "Progress", "IsSplittable",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor =
-      getDescriptor().getMessageTypes().get(6);
-    internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor,
-        new java.lang.String[] { "AtResponseStart", "AtResponseEnd", });
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_bigquery_storage_v1beta1_Progress_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_Progress_descriptor,
+            new java.lang.String[] {
+              "AtResponseStart", "AtResponseEnd",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor =
-      getDescriptor().getMessageTypes().get(7);
-    internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor,
-        new java.lang.String[] { "ThrottlePercent", });
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_ThrottleStatus_descriptor,
+            new java.lang.String[] {
+              "ThrottlePercent",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor =
-      getDescriptor().getMessageTypes().get(8);
-    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor,
-        new java.lang.String[] { "AvroRows", "ArrowRecordBatch", "RowCount", "Status", "ThrottleStatus", "Rows", });
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_ReadRowsResponse_descriptor,
+            new java.lang.String[] {
+              "AvroRows", "ArrowRecordBatch", "RowCount", "Status", "ThrottleStatus", "Rows",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor =
-      getDescriptor().getMessageTypes().get(9);
-    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor,
-        new java.lang.String[] { "Session", "RequestedStreams", });
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsRequest_descriptor,
+            new java.lang.String[] {
+              "Session", "RequestedStreams",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor =
-      getDescriptor().getMessageTypes().get(10);
-    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor,
-        new java.lang.String[] { "Streams", });
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_BatchCreateReadSessionStreamsResponse_descriptor,
+            new java.lang.String[] {
+              "Streams",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor =
-      getDescriptor().getMessageTypes().get(11);
-    internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor,
-        new java.lang.String[] { "Stream", });
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_FinalizeStreamRequest_descriptor,
+            new java.lang.String[] {
+              "Stream",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor =
-      getDescriptor().getMessageTypes().get(12);
-    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor,
-        new java.lang.String[] { "OriginalStream", "Fraction", });
+        getDescriptor().getMessageTypes().get(12);
+    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamRequest_descriptor,
+            new java.lang.String[] {
+              "OriginalStream", "Fraction",
+            });
     internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor =
-      getDescriptor().getMessageTypes().get(13);
-    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor,
-        new java.lang.String[] { "PrimaryStream", "RemainderStream", });
+        getDescriptor().getMessageTypes().get(13);
+    internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta1_SplitReadStreamResponse_descriptor,
+            new java.lang.String[] {
+              "PrimaryStream", "RemainderStream",
+            });
     com.google.protobuf.ExtensionRegistry registry =
         com.google.protobuf.ExtensionRegistry.newInstance();
     registry.add(com.google.api.ClientProto.defaultHost);
@@ -15142,8 +17619,8 @@ public com.google.cloud.bigquery.storage.v1beta1.Storage.SplitReadStreamResponse
     registry.add(com.google.api.ClientProto.oauthScopes);
     registry.add(com.google.api.ResourceProto.resource);
     registry.add(com.google.api.ResourceProto.resourceReference);
-    com.google.protobuf.Descriptors.FileDescriptor
-        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
     com.google.api.AnnotationsProto.getDescriptor();
     com.google.api.ClientProto.getDescriptor();
     com.google.api.FieldBehaviorProto.getDescriptor();
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java
similarity index 61%
rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java
rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java
index c371bf9e90..0ffd790c57 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java
+++ b/proto-google-cloud-bigquerystorage-v1beta1/src/main/java/com/google/cloud/bigquery/storage/v1beta1/TableReferenceProto.java
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta1/table_reference.proto
 
@@ -5,95 +20,112 @@
 
 public final class TableReferenceProto {
   private TableReferenceProto() {}
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistryLite registry) {
-  }
 
-  public static void registerAllExtensions(
-      com.google.protobuf.ExtensionRegistry registry) {
-    registerAllExtensions(
-        (com.google.protobuf.ExtensionRegistryLite) registry);
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
   }
-  public interface TableReferenceOrBuilder extends
+
+  public interface TableReferenceOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.TableReference)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The assigned project ID of the project.
      * 
* * string project_id = 1; + * * @return The projectId. */ java.lang.String getProjectId(); /** + * + * *
      * The assigned project ID of the project.
      * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - com.google.protobuf.ByteString - getProjectIdBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** + * + * *
      * The ID of the dataset in the above project.
      * 
* * string dataset_id = 2; + * * @return The datasetId. */ java.lang.String getDatasetId(); /** + * + * *
      * The ID of the dataset in the above project.
      * 
* * string dataset_id = 2; + * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString - getDatasetIdBytes(); + com.google.protobuf.ByteString getDatasetIdBytes(); /** + * + * *
      * The ID of the table in the above dataset.
      * 
* * string table_id = 3; + * * @return The tableId. */ java.lang.String getTableId(); /** + * + * *
      * The ID of the table in the above dataset.
      * 
* * string table_id = 3; + * * @return The bytes for tableId. */ - com.google.protobuf.ByteString - getTableIdBytes(); + com.google.protobuf.ByteString getTableIdBytes(); } /** + * + * *
    * Table reference that includes just the 3 strings needed to identify a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableReference} */ - public static final class TableReference extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TableReference extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.TableReference) TableReferenceOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableReference.newBuilder() to construct. private TableReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableReference() { projectId_ = ""; datasetId_ = ""; @@ -102,38 +134,44 @@ private TableReference() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableReference(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.class, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.class, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder + .class); } public static final int PROJECT_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object projectId_ = ""; /** + * + * *
      * The assigned project ID of the project.
      * 
* * string project_id = 1; + * * @return The projectId. */ @java.lang.Override @@ -142,29 +180,29 @@ public java.lang.String getProjectId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; } } /** + * + * *
      * The assigned project ID of the project.
      * 
* * string project_id = 1; + * * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -173,14 +211,18 @@ public java.lang.String getProjectId() { } public static final int DATASET_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object datasetId_ = ""; /** + * + * *
      * The ID of the dataset in the above project.
      * 
* * string dataset_id = 2; + * * @return The datasetId. */ @java.lang.Override @@ -189,29 +231,29 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; } } /** + * + * *
      * The ID of the dataset in the above project.
      * 
* * string dataset_id = 2; + * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -220,14 +262,18 @@ public java.lang.String getDatasetId() { } public static final int TABLE_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object tableId_ = ""; /** + * + * *
      * The ID of the table in the above dataset.
      * 
* * string table_id = 3; + * * @return The tableId. */ @java.lang.Override @@ -236,29 +282,29 @@ public java.lang.String getTableId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableId_ = s; return s; } } /** + * + * *
      * The ID of the table in the above dataset.
      * 
* * string table_id = 3; + * * @return The bytes for tableId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableIdBytes() { + public com.google.protobuf.ByteString getTableIdBytes() { java.lang.Object ref = tableId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tableId_ = b; return b; } else { @@ -267,6 +313,7 @@ public java.lang.String getTableId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +325,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); } @@ -315,19 +361,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference)) { + if (!(obj + instanceof + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference other = (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference) obj; + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference other = + (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference) obj; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getDatasetId() - .equals(other.getDatasetId())) return false; - if (!getTableId() - .equals(other.getTableId())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getDatasetId().equals(other.getDatasetId())) return false; + if (!getTableId().equals(other.getTableId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,88 +396,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -441,39 +500,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Table reference that includes just the 3 strings needed to identify a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableReference} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.TableReference) com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.class, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.class, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -485,19 +548,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference build() { - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -505,14 +571,19 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableRefere } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result = new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result = + new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.projectId_ = projectId_; @@ -529,46 +600,55 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.TableRefere public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference)other); + if (other + instanceof + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + .getDefaultInstance()) return this; if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; bitField0_ |= 0x00000001; @@ -610,27 +690,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - tableId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + tableId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -640,22 +724,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object projectId_ = ""; /** + * + * *
        * The assigned project ID of the project.
        * 
* * string project_id = 1; + * * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); projectId_ = s; return s; @@ -664,20 +751,21 @@ public java.lang.String getProjectId() { } } /** + * + * *
        * The assigned project ID of the project.
        * 
* * string project_id = 1; + * * @return The bytes for projectId. */ - public com.google.protobuf.ByteString - getProjectIdBytes() { + public com.google.protobuf.ByteString getProjectIdBytes() { java.lang.Object ref = projectId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); projectId_ = b; return b; } else { @@ -685,28 +773,35 @@ public java.lang.String getProjectId() { } } /** + * + * *
        * The assigned project ID of the project.
        * 
* * string project_id = 1; + * * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setProjectId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The assigned project ID of the project.
        * 
* * string project_id = 1; + * * @return This builder for chaining. */ public Builder clearProjectId() { @@ -716,17 +811,21 @@ public Builder clearProjectId() { return this; } /** + * + * *
        * The assigned project ID of the project.
        * 
* * string project_id = 1; + * * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); projectId_ = value; bitField0_ |= 0x00000001; @@ -736,18 +835,20 @@ public Builder setProjectIdBytes( private java.lang.Object datasetId_ = ""; /** + * + * *
        * The ID of the dataset in the above project.
        * 
* * string dataset_id = 2; + * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -756,20 +857,21 @@ public java.lang.String getDatasetId() { } } /** + * + * *
        * The ID of the dataset in the above project.
        * 
* * string dataset_id = 2; + * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -777,28 +879,35 @@ public java.lang.String getDatasetId() { } } /** + * + * *
        * The ID of the dataset in the above project.
        * 
* * string dataset_id = 2; + * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } datasetId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * The ID of the dataset in the above project.
        * 
* * string dataset_id = 2; + * * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -808,17 +917,21 @@ public Builder clearDatasetId() { return this; } /** + * + * *
        * The ID of the dataset in the above project.
        * 
* * string dataset_id = 2; + * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); datasetId_ = value; bitField0_ |= 0x00000002; @@ -828,18 +941,20 @@ public Builder setDatasetIdBytes( private java.lang.Object tableId_ = ""; /** + * + * *
        * The ID of the table in the above dataset.
        * 
* * string table_id = 3; + * * @return The tableId. */ public java.lang.String getTableId() { java.lang.Object ref = tableId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableId_ = s; return s; @@ -848,20 +963,21 @@ public java.lang.String getTableId() { } } /** + * + * *
        * The ID of the table in the above dataset.
        * 
* * string table_id = 3; + * * @return The bytes for tableId. */ - public com.google.protobuf.ByteString - getTableIdBytes() { + public com.google.protobuf.ByteString getTableIdBytes() { java.lang.Object ref = tableId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tableId_ = b; return b; } else { @@ -869,28 +985,35 @@ public java.lang.String getTableId() { } } /** + * + * *
        * The ID of the table in the above dataset.
        * 
* * string table_id = 3; + * * @param value The tableId to set. * @return This builder for chaining. */ - public Builder setTableId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } tableId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
        * The ID of the table in the above dataset.
        * 
* * string table_id = 3; + * * @return This builder for chaining. */ public Builder clearTableId() { @@ -900,23 +1023,28 @@ public Builder clearTableId() { return this; } /** + * + * *
        * The ID of the table in the above dataset.
        * 
* * string table_id = 3; + * * @param value The bytes for tableId to set. * @return This builder for chaining. */ - public Builder setTableIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); tableId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -929,41 +1057,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.TableReference) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableReference) - private static final com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .TableReference + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference(); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -975,35 +1108,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableReference + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TableModifiersOrBuilder extends + public interface TableModifiersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta1.TableModifiers) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return Whether the snapshotTime field is set. */ boolean hasSnapshotTime(); /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return The snapshotTime. */ com.google.protobuf.Timestamp getSnapshotTime(); /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -1013,57 +1155,64 @@ public interface TableModifiersOrBuilder extends com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder(); } /** + * + * *
    * All fields in this message optional.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableModifiers} */ - public static final class TableModifiers extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TableModifiers extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta1.TableModifiers) TableModifiersOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableModifiers.newBuilder() to construct. private TableModifiers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableModifiers() { - } + + private TableModifiers() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableModifiers(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.class, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.class, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder + .class); } public static final int SNAPSHOT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp snapshotTime_; /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return Whether the snapshotTime field is set. */ @java.lang.Override @@ -1071,18 +1220,25 @@ public boolean hasSnapshotTime() { return snapshotTime_ != null; } /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return The snapshotTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSnapshotTime() { - return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -1091,10 +1247,13 @@ public com.google.protobuf.Timestamp getSnapshotTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { - return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1106,8 +1265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (snapshotTime_ != null) { output.writeMessage(1, getSnapshotTime()); } @@ -1121,8 +1279,7 @@ public int getSerializedSize() { size = 0; if (snapshotTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSnapshotTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshotTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1132,17 +1289,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers)) { + if (!(obj + instanceof + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers other = (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) obj; + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers other = + (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) obj; if (hasSnapshotTime() != other.hasSnapshotTime()) return false; if (hasSnapshotTime()) { - if (!getSnapshotTime() - .equals(other.getSnapshotTime())) return false; + if (!getSnapshotTime().equals(other.getSnapshotTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1164,88 +1323,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1255,39 +1427,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * All fields in this message optional.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta1.TableModifiers} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta1.TableModifiers) com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.class, com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder.class); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.class, + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1301,19 +1477,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers build() { - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1321,19 +1500,23 @@ public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifi } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers buildPartial() { - com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result = new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + buildPartial() { + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result = + new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.snapshotTime_ = snapshotTimeBuilder_ == null - ? snapshotTime_ - : snapshotTimeBuilder_.build(); + result.snapshotTime_ = + snapshotTimeBuilder_ == null ? snapshotTime_ : snapshotTimeBuilder_.build(); } } @@ -1341,46 +1524,55 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta1.TableRefere public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers)other); + if (other + instanceof + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers other) { - if (other == com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers other) { + if (other + == com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + .getDefaultInstance()) return this; if (other.hasSnapshotTime()) { mergeSnapshotTime(other.getSnapshotTime()); } @@ -1410,19 +1602,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSnapshotTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSnapshotTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1432,38 +1624,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp snapshotTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> snapshotTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + snapshotTimeBuilder_; /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return Whether the snapshotTime field is set. */ public boolean hasSnapshotTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return The snapshotTime. */ public com.google.protobuf.Timestamp getSnapshotTime() { if (snapshotTimeBuilder_ == null) { - return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } else { return snapshotTimeBuilder_.getMessage(); } } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1484,14 +1690,15 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; */ - public Builder setSnapshotTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (snapshotTimeBuilder_ == null) { snapshotTime_ = builderForValue.build(); } else { @@ -1502,6 +1709,8 @@ public Builder setSnapshotTime( return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1510,9 +1719,9 @@ public Builder setSnapshotTime( */ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { if (snapshotTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - snapshotTime_ != null && - snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && snapshotTime_ != null + && snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSnapshotTimeBuilder().mergeFrom(value); } else { snapshotTime_ = value; @@ -1525,6 +1734,8 @@ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1542,6 +1753,8 @@ public Builder clearSnapshotTime() { return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1554,6 +1767,8 @@ public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { return getSnapshotTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1564,11 +1779,14 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { if (snapshotTimeBuilder_ != null) { return snapshotTimeBuilder_.getMessageOrBuilder(); } else { - return snapshotTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -1576,18 +1794,22 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { * .google.protobuf.Timestamp snapshot_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSnapshotTimeFieldBuilder() { if (snapshotTimeBuilder_ == null) { - snapshotTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSnapshotTime(), - getParentForChildren(), - isClean()); + snapshotTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSnapshotTime(), getParentForChildren(), isClean()); snapshotTime_ = null; } return snapshotTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1600,41 +1822,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta1.TableModifiers) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta1.TableModifiers) - private static final com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto + .TableModifiers + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers(); } - public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableModifiers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableModifiers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1646,60 +1873,63 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta1.TableReferenceProto.TableModifiers + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor; + private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable; - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + static { java.lang.String[] descriptorData = { - "\n;google/cloud/bigquery/storage/v1beta1/" + - "table_reference.proto\022%google.cloud.bigq" + - "uery.storage.v1beta1\032\037google/protobuf/ti" + - "mestamp.proto\"J\n\016TableReference\022\022\n\nproje" + - "ct_id\030\001 \001(\t\022\022\n\ndataset_id\030\002 \001(\t\022\020\n\010table" + - "_id\030\003 \001(\t\"C\n\016TableModifiers\0221\n\rsnapshot_" + - "time\030\001 \001(\0132\032.google.protobuf.TimestampB\205" + - "\001\n)com.google.cloud.bigquery.storage.v1b" + - "eta1B\023TableReferenceProtoZCcloud.google." + - "com/go/bigquery/storage/apiv1beta1/stora" + - "gepb;storagepbb\006proto3" + "\n;google/cloud/bigquery/storage/v1beta1/" + + "table_reference.proto\022%google.cloud.bigq" + + "uery.storage.v1beta1\032\037google/protobuf/ti" + + "mestamp.proto\"J\n\016TableReference\022\022\n\nproje" + + "ct_id\030\001 \001(\t\022\022\n\ndataset_id\030\002 \001(\t\022\020\n\010table" + + "_id\030\003 \001(\t\"C\n\016TableModifiers\0221\n\rsnapshot_" + + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\205" + + "\001\n)com.google.cloud.bigquery.storage.v1b" + + "eta1B\023TableReferenceProtoZCcloud.google." + + "com/go/bigquery/storage/apiv1beta1/stora" + + "gepb;storagepbb\006proto3" }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + }); internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor, - new java.lang.String[] { "ProjectId", "DatasetId", "TableId", }); + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_TableReference_descriptor, + new java.lang.String[] { + "ProjectId", "DatasetId", "TableId", + }); internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor, - new java.lang.String[] { "SnapshotTime", }); + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta1_TableModifiers_descriptor, + new java.lang.String[] { + "SnapshotTime", + }); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto b/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/arrow.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto b/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/avro.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/read_options.proto b/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/read_options.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/read_options.proto rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/read_options.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/storage.proto b/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/storage.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/storage.proto rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/storage.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto b/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto rename to proto-google-cloud-bigquerystorage-v1beta1/src/main/proto/google/cloud/bigquery/storage/v1beta1/table_reference.proto diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java similarity index 70% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java index b877ad3a29..a7410205bd 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Request message for `AppendRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsRequest} */ -public final class AppendRowsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AppendRowsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) AppendRowsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AppendRowsRequest.newBuilder() to construct. private AppendRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AppendRowsRequest() { writeStream_ = ""; traceId_ = ""; @@ -26,52 +44,62 @@ private AppendRowsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AppendRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.Builder.class); } - public interface ProtoDataOrBuilder extends + public interface ProtoDataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Proto schema used to serialize the data.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; + * * @return Whether the writerSchema field is set. */ boolean hasWriterSchema(); /** + * + * *
      * Proto schema used to serialize the data.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; + * * @return The writerSchema. */ com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getWriterSchema(); /** + * + * *
      * Proto schema used to serialize the data.
      * 
@@ -81,24 +109,32 @@ public interface ProtoDataOrBuilder extends com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder getWriterSchemaOrBuilder(); /** + * + * *
      * Serialized row data in protobuf message format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; + * * @return Whether the rows field is set. */ boolean hasRows(); /** + * + * *
      * Serialized row data in protobuf message format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; + * * @return The rows. */ com.google.cloud.bigquery.storage.v1beta2.ProtoRows getRows(); /** + * + * *
      * Serialized row data in protobuf message format.
      * 
@@ -108,57 +144,63 @@ public interface ProtoDataOrBuilder extends com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder getRowsOrBuilder(); } /** + * + * *
    * Proto schema and data.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData} */ - public static final class ProtoData extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ProtoData extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) ProtoDataOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProtoData.newBuilder() to construct. private ProtoData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProtoData() { - } + + private ProtoData() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProtoData(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.class, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder.class); } public static final int WRITER_SCHEMA_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta2.ProtoSchema writerSchema_; /** + * + * *
      * Proto schema used to serialize the data.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; + * * @return Whether the writerSchema field is set. */ @java.lang.Override @@ -166,18 +208,25 @@ public boolean hasWriterSchema() { return writerSchema_ != null; } /** + * + * *
      * Proto schema used to serialize the data.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; + * * @return The writerSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getWriterSchema() { - return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() : writerSchema_; + return writerSchema_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() + : writerSchema_; } /** + * + * *
      * Proto schema used to serialize the data.
      * 
@@ -185,18 +234,24 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getWriterSchema() { * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder getWriterSchemaOrBuilder() { - return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() : writerSchema_; + public com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder + getWriterSchemaOrBuilder() { + return writerSchema_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() + : writerSchema_; } public static final int ROWS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta2.ProtoRows rows_; /** + * + * *
      * Serialized row data in protobuf message format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; + * * @return Whether the rows field is set. */ @java.lang.Override @@ -204,18 +259,25 @@ public boolean hasRows() { return rows_ != null; } /** + * + * *
      * Serialized row data in protobuf message format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; + * * @return The rows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ProtoRows getRows() { - return rows_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() : rows_; + return rows_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() + : rows_; } /** + * + * *
      * Serialized row data in protobuf message format.
      * 
@@ -224,10 +286,13 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoRows getRows() { */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder getRowsOrBuilder() { - return rows_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() : rows_; + return rows_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() + : rows_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +310,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (writerSchema_ != null) { output.writeMessage(1, getWriterSchema()); } @@ -263,12 +327,10 @@ public int getSerializedSize() { size = 0; if (writerSchema_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWriterSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWriterSchema()); } if (rows_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRows()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRows()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -278,22 +340,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData other = (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) obj; + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData other = + (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) obj; if (hasWriterSchema() != other.hasWriterSchema()) return false; if (hasWriterSchema()) { - if (!getWriterSchema() - .equals(other.getWriterSchema())) return false; + if (!getWriterSchema().equals(other.getWriterSchema())) return false; } if (hasRows() != other.hasRows()) return false; if (hasRows()) { - if (!getRows() - .equals(other.getRows())) return false; + if (!getRows().equals(other.getRows())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -320,87 +381,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -410,39 +479,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Proto schema and data.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.class, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -461,19 +534,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData build() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -482,23 +558,24 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData bui @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result = + new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.writerSchema_ = writerSchemaBuilder_ == null - ? writerSchema_ - : writerSchemaBuilder_.build(); + result.writerSchema_ = + writerSchemaBuilder_ == null ? writerSchema_ : writerSchemaBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.rows_ = rowsBuilder_ == null - ? rows_ - : rowsBuilder_.build(); + result.rows_ = rowsBuilder_ == null ? rows_ : rowsBuilder_.build(); } } @@ -506,46 +583,54 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AppendRowsR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData)other); + if (other + instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + .getDefaultInstance()) return this; if (other.hasWriterSchema()) { mergeWriterSchema(other.getWriterSchema()); } @@ -583,26 +668,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getWriterSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRowsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getWriterSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getRowsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -612,38 +696,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.storage.v1beta2.ProtoSchema writerSchema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder> writerSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder> + writerSchemaBuilder_; /** + * + * *
        * Proto schema used to serialize the data.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; + * * @return Whether the writerSchema field is set. */ public boolean hasWriterSchema() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * Proto schema used to serialize the data.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; + * * @return The writerSchema. */ public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getWriterSchema() { if (writerSchemaBuilder_ == null) { - return writerSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() : writerSchema_; + return writerSchema_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() + : writerSchema_; } else { return writerSchemaBuilder_.getMessage(); } } /** + * + * *
        * Proto schema used to serialize the data.
        * 
@@ -664,6 +762,8 @@ public Builder setWriterSchema(com.google.cloud.bigquery.storage.v1beta2.ProtoSc return this; } /** + * + * *
        * Proto schema used to serialize the data.
        * 
@@ -682,17 +782,21 @@ public Builder setWriterSchema( return this; } /** + * + * *
        * Proto schema used to serialize the data.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; */ - public Builder mergeWriterSchema(com.google.cloud.bigquery.storage.v1beta2.ProtoSchema value) { + public Builder mergeWriterSchema( + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema value) { if (writerSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - writerSchema_ != null && - writerSchema_ != com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && writerSchema_ != null + && writerSchema_ + != com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance()) { getWriterSchemaBuilder().mergeFrom(value); } else { writerSchema_ = value; @@ -705,6 +809,8 @@ public Builder mergeWriterSchema(com.google.cloud.bigquery.storage.v1beta2.Proto return this; } /** + * + * *
        * Proto schema used to serialize the data.
        * 
@@ -722,33 +828,42 @@ public Builder clearWriterSchema() { return this; } /** + * + * *
        * Proto schema used to serialize the data.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; */ - public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder getWriterSchemaBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder + getWriterSchemaBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWriterSchemaFieldBuilder().getBuilder(); } /** + * + * *
        * Proto schema used to serialize the data.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; */ - public com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder getWriterSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder + getWriterSchemaOrBuilder() { if (writerSchemaBuilder_ != null) { return writerSchemaBuilder_.getMessageOrBuilder(); } else { - return writerSchema_ == null ? - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() : writerSchema_; + return writerSchema_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance() + : writerSchema_; } } /** + * + * *
        * Proto schema used to serialize the data.
        * 
@@ -756,14 +871,17 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder getWriterS * .google.cloud.bigquery.storage.v1beta2.ProtoSchema writer_schema = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder> getWriterSchemaFieldBuilder() { if (writerSchemaBuilder_ == null) { - writerSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder>( - getWriterSchema(), - getParentForChildren(), - isClean()); + writerSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema, + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder>( + getWriterSchema(), getParentForChildren(), isClean()); writerSchema_ = null; } return writerSchemaBuilder_; @@ -771,34 +889,47 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder getWriterS private com.google.cloud.bigquery.storage.v1beta2.ProtoRows rows_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoRows, com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder> rowsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ProtoRows, + com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, + com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder> + rowsBuilder_; /** + * + * *
        * Serialized row data in protobuf message format.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; + * * @return Whether the rows field is set. */ public boolean hasRows() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
        * Serialized row data in protobuf message format.
        * 
* * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; + * * @return The rows. */ public com.google.cloud.bigquery.storage.v1beta2.ProtoRows getRows() { if (rowsBuilder_ == null) { - return rows_ == null ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() : rows_; + return rows_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() + : rows_; } else { return rowsBuilder_.getMessage(); } } /** + * + * *
        * Serialized row data in protobuf message format.
        * 
@@ -819,6 +950,8 @@ public Builder setRows(com.google.cloud.bigquery.storage.v1beta2.ProtoRows value return this; } /** + * + * *
        * Serialized row data in protobuf message format.
        * 
@@ -837,6 +970,8 @@ public Builder setRows( return this; } /** + * + * *
        * Serialized row data in protobuf message format.
        * 
@@ -845,9 +980,10 @@ public Builder setRows( */ public Builder mergeRows(com.google.cloud.bigquery.storage.v1beta2.ProtoRows value) { if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - rows_ != null && - rows_ != com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && rows_ != null + && rows_ + != com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance()) { getRowsBuilder().mergeFrom(value); } else { rows_ = value; @@ -860,6 +996,8 @@ public Builder mergeRows(com.google.cloud.bigquery.storage.v1beta2.ProtoRows val return this; } /** + * + * *
        * Serialized row data in protobuf message format.
        * 
@@ -877,6 +1015,8 @@ public Builder clearRows() { return this; } /** + * + * *
        * Serialized row data in protobuf message format.
        * 
@@ -889,6 +1029,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder getRowsBuilde return getRowsFieldBuilder().getBuilder(); } /** + * + * *
        * Serialized row data in protobuf message format.
        * 
@@ -899,11 +1041,14 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder getRowsOrBui if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilder(); } else { - return rows_ == null ? - com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() : rows_; + return rows_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance() + : rows_; } } /** + * + * *
        * Serialized row data in protobuf message format.
        * 
@@ -911,18 +1056,22 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder getRowsOrBui * .google.cloud.bigquery.storage.v1beta2.ProtoRows rows = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoRows, com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ProtoRows, + com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, + com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { - rowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ProtoRows, com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder>( - getRows(), - getParentForChildren(), - isClean()); + rowsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ProtoRows, + com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder, + com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder>( + getRows(), getParentForChildren(), isClean()); rows_ = null; } return rowsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -935,41 +1084,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) - private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData(); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProtoData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -981,20 +1134,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int rowsCase_ = 0; private java.lang.Object rows_; + public enum RowsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PROTO_ROWS(4), ROWS_NOT_SET(0); private final int value; + private RowsCase(int value) { this.value = value; } @@ -1010,26 +1166,31 @@ public static RowsCase valueOf(int value) { public static RowsCase forNumber(int value) { switch (value) { - case 4: return PROTO_ROWS; - case 0: return ROWS_NOT_SET; - default: return null; + case 4: + return PROTO_ROWS; + case 0: + return ROWS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RowsCase - getRowsCase() { - return RowsCase.forNumber( - rowsCase_); + public RowsCase getRowsCase() { + return RowsCase.forNumber(rowsCase_); } public static final int WRITE_STREAM_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object writeStream_ = ""; /** + * + * *
    * Required. The stream that is the target of the append operation. This value must be
    * specified for the initial request. If subsequent requests specify the
@@ -1038,7 +1199,10 @@ public int getNumber() {
    * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ @java.lang.Override @@ -1047,14 +1211,15 @@ public java.lang.String getWriteStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; } } /** + * + * *
    * Required. The stream that is the target of the append operation. This value must be
    * specified for the initial request. If subsequent requests specify the
@@ -1063,17 +1228,18 @@ public java.lang.String getWriteStream() {
    * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ @java.lang.Override - public com.google.protobuf.ByteString - getWriteStreamBytes() { + public com.google.protobuf.ByteString getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeStream_ = b; return b; } else { @@ -1084,6 +1250,8 @@ public java.lang.String getWriteStream() { public static final int OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value offset_; /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1092,6 +1260,7 @@ public java.lang.String getWriteStream() {
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ @java.lang.Override @@ -1099,6 +1268,8 @@ public boolean hasOffset() { return offset_ != null; } /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1107,6 +1278,7 @@ public boolean hasOffset() {
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ @java.lang.Override @@ -1114,6 +1286,8 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -1130,11 +1304,14 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
 
   public static final int PROTO_ROWS_FIELD_NUMBER = 4;
   /**
+   *
+   *
    * 
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * * @return Whether the protoRows field is set. */ @java.lang.Override @@ -1142,21 +1319,27 @@ public boolean hasProtoRows() { return rowsCase_ == 4; } /** + * + * *
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * * @return The protoRows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData getProtoRows() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + .getDefaultInstance(); } /** + * + * *
    * Rows in proto format.
    * 
@@ -1164,23 +1347,29 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData get * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder + getProtoRowsOrBuilder() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + .getDefaultInstance(); } public static final int TRACE_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object traceId_ = ""; /** + * + * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; + * * @return The traceId. */ @java.lang.Override @@ -1189,30 +1378,30 @@ public java.lang.String getTraceId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; } } /** + * + * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; + * * @return The bytes for traceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTraceIdBytes() { + public com.google.protobuf.ByteString getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); traceId_ = b; return b; } else { @@ -1221,6 +1410,7 @@ public java.lang.String getTraceId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1238,8 +1428,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeStream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, writeStream_); } @@ -1247,7 +1436,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, getOffset()); } if (rowsCase_ == 4) { - output.writeMessage(4, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_); + output.writeMessage( + 4, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, traceId_); @@ -1265,12 +1455,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, writeStream_); } if (offset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOffset()); } if (rowsCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, traceId_); @@ -1283,27 +1473,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest other = (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest other = + (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) obj; - if (!getWriteStream() - .equals(other.getWriteStream())) return false; + if (!getWriteStream().equals(other.getWriteStream())) return false; if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { - if (!getOffset() - .equals(other.getOffset())) return false; + if (!getOffset().equals(other.getOffset())) return false; } - if (!getTraceId() - .equals(other.getTraceId())) return false; + if (!getTraceId().equals(other.getTraceId())) return false; if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 4: - if (!getProtoRows() - .equals(other.getProtoRows())) return false; + if (!getProtoRows().equals(other.getProtoRows())) return false; break; case 0: default: @@ -1341,129 +1528,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `AppendRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.class, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1484,9 +1678,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; } @java.lang.Override @@ -1505,8 +1699,11 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest result = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest result = + new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1518,20 +1715,18 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AppendRowsR result.writeStream_ = writeStream_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.offset_ = offsetBuilder_ == null - ? offset_ - : offsetBuilder_.build(); + result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.traceId_ = traceId_; } } - private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest result) { + private void buildPartialOneofs( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest result) { result.rowsCase_ = rowsCase_; result.rows_ = this.rows_; - if (rowsCase_ == 4 && - protoRowsBuilder_ != null) { + if (rowsCase_ == 4 && protoRowsBuilder_ != null) { result.rows_ = protoRowsBuilder_.build(); } } @@ -1540,38 +1735,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.Append public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) other); } else { super.mergeFrom(other); return this; @@ -1579,7 +1775,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.getDefaultInstance()) + return this; if (!other.getWriteStream().isEmpty()) { writeStream_ = other.writeStream_; bitField0_ |= 0x00000001; @@ -1594,13 +1791,15 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AppendRowsReq onChanged(); } switch (other.getRowsCase()) { - case PROTO_ROWS: { - mergeProtoRows(other.getProtoRows()); - break; - } - case ROWS_NOT_SET: { - break; - } + case PROTO_ROWS: + { + mergeProtoRows(other.getProtoRows()); + break; + } + case ROWS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1633,36 +1832,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - writeStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: { - input.readMessage( - getProtoRowsFieldBuilder().getBuilder(), - extensionRegistry); - rowsCase_ = 4; - break; - } // case 34 - case 50: { - traceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + writeStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + input.readMessage(getProtoRowsFieldBuilder().getBuilder(), extensionRegistry); + rowsCase_ = 4; + break; + } // case 34 + case 50: + { + traceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1672,12 +1872,12 @@ public Builder mergeFrom( } // finally return this; } + private int rowsCase_ = 0; private java.lang.Object rows_; - public RowsCase - getRowsCase() { - return RowsCase.forNumber( - rowsCase_); + + public RowsCase getRowsCase() { + return RowsCase.forNumber(rowsCase_); } public Builder clearRows() { @@ -1691,6 +1891,8 @@ public Builder clearRows() { private java.lang.Object writeStream_ = ""; /** + * + * *
      * Required. The stream that is the target of the append operation. This value must be
      * specified for the initial request. If subsequent requests specify the
@@ -1699,14 +1901,16 @@ public Builder clearRows() {
      * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ public java.lang.String getWriteStream() { java.lang.Object ref = writeStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; @@ -1715,6 +1919,8 @@ public java.lang.String getWriteStream() { } } /** + * + * *
      * Required. The stream that is the target of the append operation. This value must be
      * specified for the initial request. If subsequent requests specify the
@@ -1723,16 +1929,17 @@ public java.lang.String getWriteStream() {
      * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ - public com.google.protobuf.ByteString - getWriteStreamBytes() { + public com.google.protobuf.ByteString getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeStream_ = b; return b; } else { @@ -1740,6 +1947,8 @@ public java.lang.String getWriteStream() { } } /** + * + * *
      * Required. The stream that is the target of the append operation. This value must be
      * specified for the initial request. If subsequent requests specify the
@@ -1748,19 +1957,25 @@ public java.lang.String getWriteStream() {
      * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStream( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStream(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } writeStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The stream that is the target of the append operation. This value must be
      * specified for the initial request. If subsequent requests specify the
@@ -1769,7 +1984,10 @@ public Builder setWriteStream(
      * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearWriteStream() { @@ -1779,6 +1997,8 @@ public Builder clearWriteStream() { return this; } /** + * + * *
      * Required. The stream that is the target of the append operation. This value must be
      * specified for the initial request. If subsequent requests specify the
@@ -1787,13 +2007,17 @@ public Builder clearWriteStream() {
      * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStreamBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); writeStream_ = value; bitField0_ |= 0x00000001; @@ -1803,8 +2027,13 @@ public Builder setWriteStreamBytes( private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + offsetBuilder_; /** + * + * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -1813,12 +2042,15 @@ public Builder setWriteStreamBytes(
      * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -1827,6 +2059,7 @@ public boolean hasOffset() {
      * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -1837,6 +2070,8 @@ public com.google.protobuf.Int64Value getOffset() { } } /** + * + * *
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -1860,6 +2095,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -1869,8 +2106,7 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value offset = 2;
      */
-    public Builder setOffset(
-        com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
       if (offsetBuilder_ == null) {
         offset_ = builderForValue.build();
       } else {
@@ -1881,6 +2117,8 @@ public Builder setOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -1892,9 +2130,9 @@ public Builder setOffset(
      */
     public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       if (offsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          offset_ != null &&
-          offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && offset_ != null
+            && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
           getOffsetBuilder().mergeFrom(value);
         } else {
           offset_ = value;
@@ -1907,6 +2145,8 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -1927,6 +2167,8 @@ public Builder clearOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -1942,6 +2184,8 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
       return getOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -1955,11 +2199,12 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
       if (offsetBuilder_ != null) {
         return offsetBuilder_.getMessageOrBuilder();
       } else {
-        return offset_ == null ?
-            com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+        return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
       }
     }
     /**
+     *
+     *
      * 
      * If present, the write is only performed if the next append offset is same
      * as the provided value. If not present, the write is performed at the
@@ -1970,27 +2215,37 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
      * .google.protobuf.Int64Value offset = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
+            com.google.protobuf.Int64Value,
+            com.google.protobuf.Int64Value.Builder,
+            com.google.protobuf.Int64ValueOrBuilder>
         getOffsetFieldBuilder() {
       if (offsetBuilder_ == null) {
-        offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
-                getOffset(),
-                getParentForChildren(),
-                isClean());
+        offsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Int64Value,
+                com.google.protobuf.Int64Value.Builder,
+                com.google.protobuf.Int64ValueOrBuilder>(
+                getOffset(), getParentForChildren(), isClean());
         offset_ = null;
       }
       return offsetBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder> protoRowsBuilder_;
+            com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData,
+            com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder>
+        protoRowsBuilder_;
     /**
+     *
+     *
      * 
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * + * * @return Whether the protoRows field is set. */ @java.lang.Override @@ -1998,11 +2253,15 @@ public boolean hasProtoRows() { return rowsCase_ == 4; } /** + * + * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * + * * @return The protoRows. */ @java.lang.Override @@ -2011,22 +2270,28 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData get if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + .getDefaultInstance(); } else { if (rowsCase_ == 4) { return protoRowsBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + .getDefaultInstance(); } } /** + * + * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * */ - public Builder setProtoRows(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData value) { + public Builder setProtoRows( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData value) { if (protoRowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2040,14 +2305,18 @@ public Builder setProtoRows(com.google.cloud.bigquery.storage.v1beta2.AppendRows return this; } /** + * + * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * */ public Builder setProtoRows( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder + builderForValue) { if (protoRowsBuilder_ == null) { rows_ = builderForValue.build(); onChanged(); @@ -2058,18 +2327,27 @@ public Builder setProtoRows( return this; } /** + * + * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * */ - public Builder mergeProtoRows(com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData value) { + public Builder mergeProtoRows( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData value) { if (protoRowsBuilder_ == null) { - if (rowsCase_ == 4 && - rows_ != com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance()) { - rows_ = com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.newBuilder((com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_) - .mergeFrom(value).buildPartial(); + if (rowsCase_ == 4 + && rows_ + != com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + .getDefaultInstance()) { + rows_ = + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.newBuilder( + (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_) + .mergeFrom(value) + .buildPartial(); } else { rows_ = value; } @@ -2085,11 +2363,14 @@ public Builder mergeProtoRows(com.google.cloud.bigquery.storage.v1beta2.AppendRo return this; } /** + * + * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * */ public Builder clearProtoRows() { if (protoRowsBuilder_ == null) { @@ -2108,49 +2389,68 @@ public Builder clearProtoRows() { return this; } /** + * + * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * */ - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder getProtoRowsBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder + getProtoRowsBuilder() { return getProtoRowsFieldBuilder().getBuilder(); } /** + * + * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder + getProtoRowsOrBuilder() { if ((rowsCase_ == 4) && (protoRowsBuilder_ != null)) { return protoRowsBuilder_.getMessageOrBuilder(); } else { if (rowsCase_ == 4) { return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + .getDefaultInstance(); } } /** + * + * *
      * Rows in proto format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder> getProtoRowsFieldBuilder() { if (protoRowsBuilder_ == null) { if (!(rowsCase_ == 4)) { - rows_ = com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.getDefaultInstance(); + rows_ = + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData + .getDefaultInstance(); } - protoRowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder>( + protoRowsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData.Builder, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData) rows_, getParentForChildren(), isClean()); @@ -2163,19 +2463,21 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBu private java.lang.Object traceId_ = ""; /** + * + * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; + * * @return The traceId. */ public java.lang.String getTraceId() { java.lang.Object ref = traceId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); traceId_ = s; return s; @@ -2184,21 +2486,22 @@ public java.lang.String getTraceId() { } } /** + * + * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; + * * @return The bytes for traceId. */ - public com.google.protobuf.ByteString - getTraceIdBytes() { + public com.google.protobuf.ByteString getTraceIdBytes() { java.lang.Object ref = traceId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); traceId_ = b; return b; } else { @@ -2206,30 +2509,37 @@ public java.lang.String getTraceId() { } } /** + * + * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; + * * @param value The traceId to set. * @return This builder for chaining. */ - public Builder setTraceId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTraceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } traceId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; + * * @return This builder for chaining. */ public Builder clearTraceId() { @@ -2239,27 +2549,31 @@ public Builder clearTraceId() { return this; } /** + * + * *
      * Id set by client to annotate its identity. Only initial request setting is
      * respected.
      * 
* * string trace_id = 6; + * * @param value The bytes for traceId to set. * @return This builder for chaining. */ - public Builder setTraceIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); traceId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2269,12 +2583,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest(); } @@ -2283,27 +2597,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppendRowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AppendRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2318,6 +2632,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java index d42f115212..8b721dcaf2 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface AppendRowsRequestOrBuilder extends +public interface AppendRowsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AppendRowsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The stream that is the target of the append operation. This value must be
    * specified for the initial request. If subsequent requests specify the
@@ -16,11 +34,16 @@ public interface AppendRowsRequestOrBuilder extends
    * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ java.lang.String getWriteStream(); /** + * + * *
    * Required. The stream that is the target of the append operation. This value must be
    * specified for the initial request. If subsequent requests specify the
@@ -29,13 +52,17 @@ public interface AppendRowsRequestOrBuilder extends
    * format `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ - com.google.protobuf.ByteString - getWriteStreamBytes(); + com.google.protobuf.ByteString getWriteStreamBytes(); /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -44,10 +71,13 @@ public interface AppendRowsRequestOrBuilder extends
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ boolean hasOffset(); /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -56,10 +86,13 @@ public interface AppendRowsRequestOrBuilder extends
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** + * + * *
    * If present, the write is only performed if the next append offset is same
    * as the provided value. If not present, the write is performed at the
@@ -72,53 +105,67 @@ public interface AppendRowsRequestOrBuilder extends
   com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder();
 
   /**
+   *
+   *
    * 
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * * @return Whether the protoRows field is set. */ boolean hasProtoRows(); /** + * + * *
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; + * * @return The protoRows. */ com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData getProtoRows(); /** + * + * *
    * Rows in proto format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoData proto_rows = 4; */ - com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder getProtoRowsOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.ProtoDataOrBuilder + getProtoRowsOrBuilder(); /** + * + * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; + * * @return The traceId. */ java.lang.String getTraceId(); /** + * + * *
    * Id set by client to annotate its identity. Only initial request setting is
    * respected.
    * 
* * string trace_id = 6; + * * @return The bytes for traceId. */ - com.google.protobuf.ByteString - getTraceIdBytes(); + com.google.protobuf.ByteString getTraceIdBytes(); public com.google.cloud.bigquery.storage.v1beta2.AppendRowsRequest.RowsCase getRowsCase(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java similarity index 69% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java index 9be99785e0..76d315ceac 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponse.java @@ -1,77 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Response message for `AppendRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsResponse} */ -public final class AppendRowsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AppendRowsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) AppendRowsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AppendRowsResponse.newBuilder() to construct. private AppendRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AppendRowsResponse() { - } + + private AppendRowsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AppendRowsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.Builder.class); } - public interface AppendResultOrBuilder extends + public interface AppendResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; + * * @return Whether the offset field is set. */ boolean hasOffset(); /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; + * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
@@ -82,58 +109,65 @@ public interface AppendResultOrBuilder extends
     com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder();
   }
   /**
+   *
+   *
    * 
    * AppendResult is returned for successful append requests.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult} */ - public static final class AppendResult extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AppendResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) AppendResultOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AppendResult.newBuilder() to construct. private AppendResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AppendResult() { - } + + private AppendResult() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AppendResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.class, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder + .class); } public static final int OFFSET_FIELD_NUMBER = 1; private com.google.protobuf.Int64Value offset_; /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; + * * @return Whether the offset field is set. */ @java.lang.Override @@ -141,12 +175,15 @@ public boolean hasOffset() { return offset_ != null; } /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
      * 
* * .google.protobuf.Int64Value offset = 1; + * * @return The offset. */ @java.lang.Override @@ -154,6 +191,8 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** + * + * *
      * The row offset at which the last append occurred. The offset will not be
      * set if appending using default streams.
@@ -167,6 +206,7 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -178,8 +218,7 @@ public final boolean isInitialized() {
     }
 
     @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
+    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
       if (offset_ != null) {
         output.writeMessage(1, getOffset());
       }
@@ -193,8 +232,7 @@ public int getSerializedSize() {
 
       size = 0;
       if (offset_ != null) {
-        size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, getOffset());
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOffset());
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -204,17 +242,18 @@ public int getSerializedSize() {
     @java.lang.Override
     public boolean equals(final java.lang.Object obj) {
       if (obj == this) {
-       return true;
+        return true;
       }
-      if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)) {
+      if (!(obj
+          instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)) {
         return super.equals(obj);
       }
-      com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult other = (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) obj;
+      com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult other =
+          (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) obj;
 
       if (hasOffset() != other.hasOffset()) return false;
       if (hasOffset()) {
-        if (!getOffset()
-            .equals(other.getOffset())) return false;
+        if (!getOffset().equals(other.getOffset())) return false;
       }
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -236,88 +275,101 @@ public int hashCode() {
       return hash;
     }
 
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseFrom(java.nio.ByteBuffer data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseFrom(
+            java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseFrom(com.google.protobuf.ByteString data)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseFrom(
+            com.google.protobuf.ByteString data,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult parseFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        parseFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+          PARSER, input, extensionRegistry);
     }
 
     @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
+    public Builder newBuilderForType() {
+      return newBuilder();
+    }
+
     public static Builder newBuilder() {
       return DEFAULT_INSTANCE.toBuilder();
     }
-    public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult prototype) {
       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
     }
+
     @java.lang.Override
     public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
+      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
     }
 
     @java.lang.Override
@@ -327,39 +379,43 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * AppendResult is returned for successful append requests.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.class, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,19 +429,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult build() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -393,19 +452,22 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + buildPartial() { + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result = + new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.offset_ = offsetBuilder_ == null - ? offset_ - : offsetBuilder_.build(); + result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build(); } } @@ -413,46 +475,54 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AppendRowsR public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)other); + if (other + instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + .getDefaultInstance()) return this; if (other.hasOffset()) { mergeOffset(other.getOffset()); } @@ -482,19 +552,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -504,30 +574,40 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + offsetBuilder_; /** + * + * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
        * 
* * .google.protobuf.Int64Value offset = 1; + * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
        * 
* * .google.protobuf.Int64Value offset = 1; + * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -538,6 +618,8 @@ public com.google.protobuf.Int64Value getOffset() { } } /** + * + * *
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -559,6 +641,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -566,8 +650,7 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
        *
        * .google.protobuf.Int64Value offset = 1;
        */
-      public Builder setOffset(
-          com.google.protobuf.Int64Value.Builder builderForValue) {
+      public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
         if (offsetBuilder_ == null) {
           offset_ = builderForValue.build();
         } else {
@@ -578,6 +661,8 @@ public Builder setOffset(
         return this;
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -587,9 +672,9 @@ public Builder setOffset(
        */
       public Builder mergeOffset(com.google.protobuf.Int64Value value) {
         if (offsetBuilder_ == null) {
-          if (((bitField0_ & 0x00000001) != 0) &&
-            offset_ != null &&
-            offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+          if (((bitField0_ & 0x00000001) != 0)
+              && offset_ != null
+              && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
             getOffsetBuilder().mergeFrom(value);
           } else {
             offset_ = value;
@@ -602,6 +687,8 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
         return this;
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -620,6 +707,8 @@ public Builder clearOffset() {
         return this;
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -633,6 +722,8 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
         return getOffsetFieldBuilder().getBuilder();
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -644,11 +735,12 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
         if (offsetBuilder_ != null) {
           return offsetBuilder_.getMessageOrBuilder();
         } else {
-          return offset_ == null ?
-              com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+          return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
         }
       }
       /**
+       *
+       *
        * 
        * The row offset at which the last append occurred. The offset will not be
        * set if appending using default streams.
@@ -657,18 +749,22 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
        * .google.protobuf.Int64Value offset = 1;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
+              com.google.protobuf.Int64Value,
+              com.google.protobuf.Int64Value.Builder,
+              com.google.protobuf.Int64ValueOrBuilder>
           getOffsetFieldBuilder() {
         if (offsetBuilder_ == null) {
-          offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
-                  getOffset(),
-                  getParentForChildren(),
-                  isClean());
+          offsetBuilder_ =
+              new com.google.protobuf.SingleFieldBuilderV3<
+                  com.google.protobuf.Int64Value,
+                  com.google.protobuf.Int64Value.Builder,
+                  com.google.protobuf.Int64ValueOrBuilder>(
+                  getOffset(), getParentForChildren(), isClean());
           offset_ = null;
         }
         return offsetBuilder_;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -681,41 +777,45 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)
-    private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult DEFAULT_INSTANCE;
+    private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        DEFAULT_INSTANCE;
+
     static {
-      DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult();
+      DEFAULT_INSTANCE =
+          new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult();
     }
 
-    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getDefaultInstance() {
+    public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public AppendResult parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-        } catch (java.io.IOException e) {
-          throw new com.google.protobuf.InvalidProtocolBufferException(e)
-              .setUnfinishedMessage(builder.buildPartial());
-        }
-        return builder.buildPartial();
-      }
-    };
+    private static final com.google.protobuf.Parser PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public AppendResult parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              throw e.asInvalidProtocolBufferException()
+                  .setUnfinishedMessage(builder.buildPartial());
+            } catch (java.io.IOException e) {
+              throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                  .setUnfinishedMessage(builder.buildPartial());
+            }
+            return builder.buildPartial();
+          }
+        };
 
     public static com.google.protobuf.Parser parser() {
       return PARSER;
@@ -727,21 +827,24 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private int responseCase_ = 0;
   private java.lang.Object response_;
+
   public enum ResponseCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     APPEND_RESULT(1),
     ERROR(2),
     RESPONSE_NOT_SET(0);
     private final int value;
+
     private ResponseCase(int value) {
       this.value = value;
     }
@@ -757,30 +860,37 @@ public static ResponseCase valueOf(int value) {
 
     public static ResponseCase forNumber(int value) {
       switch (value) {
-        case 1: return APPEND_RESULT;
-        case 2: return ERROR;
-        case 0: return RESPONSE_NOT_SET;
-        default: return null;
+        case 1:
+          return APPEND_RESULT;
+        case 2:
+          return ERROR;
+        case 0:
+          return RESPONSE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ResponseCase
-  getResponseCase() {
-    return ResponseCase.forNumber(
-        responseCase_);
+  public ResponseCase getResponseCase() {
+    return ResponseCase.forNumber(responseCase_);
   }
 
   public static final int APPEND_RESULT_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return Whether the appendResult field is set. */ @java.lang.Override @@ -788,37 +898,50 @@ public boolean hasAppendResult() { return responseCase_ == 1; } /** + * + * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return The appendResult. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getAppendResult() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + getAppendResult() { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + .getDefaultInstance(); } /** + * + * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder + getAppendResultOrBuilder() { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + .getDefaultInstance(); } public static final int ERROR_FIELD_NUMBER = 2; /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -837,6 +960,7 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -844,6 +968,8 @@ public boolean hasError() { return responseCase_ == 2; } /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -862,16 +988,19 @@ public boolean hasError() {
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override public com.google.rpc.Status getError() { if (responseCase_ == 2) { - return (com.google.rpc.Status) response_; + return (com.google.rpc.Status) response_; } return com.google.rpc.Status.getDefaultInstance(); } /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -894,7 +1023,7 @@ public com.google.rpc.Status getError() {
   @java.lang.Override
   public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
     if (responseCase_ == 2) {
-       return (com.google.rpc.Status) response_;
+      return (com.google.rpc.Status) response_;
     }
     return com.google.rpc.Status.getDefaultInstance();
   }
@@ -902,6 +1031,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int UPDATED_SCHEMA_FIELD_NUMBER = 3;
   private com.google.cloud.bigquery.storage.v1beta2.TableSchema updatedSchema_;
   /**
+   *
+   *
    * 
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -909,6 +1040,7 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
    * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; + * * @return Whether the updatedSchema field is set. */ @java.lang.Override @@ -916,6 +1048,8 @@ public boolean hasUpdatedSchema() { return updatedSchema_ != null; } /** + * + * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -923,13 +1057,18 @@ public boolean hasUpdatedSchema() {
    * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; + * * @return The updatedSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableSchema getUpdatedSchema() { - return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : updatedSchema_; + return updatedSchema_ == null + ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() + : updatedSchema_; } /** + * + * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -939,11 +1078,15 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema getUpdatedSchema()
    * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getUpdatedSchemaOrBuilder() {
-    return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : updatedSchema_;
+  public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder
+      getUpdatedSchemaOrBuilder() {
+    return updatedSchema_ == null
+        ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()
+        : updatedSchema_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -955,10 +1098,10 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (responseCase_ == 1) {
-      output.writeMessage(1, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_);
+      output.writeMessage(
+          1, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_);
     }
     if (responseCase_ == 2) {
       output.writeMessage(2, (com.google.rpc.Status) response_);
@@ -976,16 +1119,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (responseCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1,
+              (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult)
+                  response_);
     }
     if (responseCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.rpc.Status) response_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.rpc.Status) response_);
     }
     if (updatedSchema_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, getUpdatedSchema());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdatedSchema());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -995,27 +1141,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse other = (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) obj;
+    com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse other =
+        (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) obj;
 
     if (hasUpdatedSchema() != other.hasUpdatedSchema()) return false;
     if (hasUpdatedSchema()) {
-      if (!getUpdatedSchema()
-          .equals(other.getUpdatedSchema())) return false;
+      if (!getUpdatedSchema().equals(other.getUpdatedSchema())) return false;
     }
     if (!getResponseCase().equals(other.getResponseCase())) return false;
     switch (responseCase_) {
       case 1:
-        if (!getAppendResult()
-            .equals(other.getAppendResult())) return false;
+        if (!getAppendResult().equals(other.getAppendResult())) return false;
         break;
       case 2:
-        if (!getError()
-            .equals(other.getError())) return false;
+        if (!getError().equals(other.getError())) return false;
         break;
       case 0:
       default:
@@ -1053,129 +1197,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response message for `AppendRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AppendRowsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.class, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1197,13 +1348,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.getDefaultInstance(); } @@ -1218,31 +1370,33 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result = + new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { - result.updatedSchema_ = updatedSchemaBuilder_ == null - ? updatedSchema_ - : updatedSchemaBuilder_.build(); + result.updatedSchema_ = + updatedSchemaBuilder_ == null ? updatedSchema_ : updatedSchemaBuilder_.build(); } } - private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result) { + private void buildPartialOneofs( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse result) { result.responseCase_ = responseCase_; result.response_ = this.response_; - if (responseCase_ == 1 && - appendResultBuilder_ != null) { + if (responseCase_ == 1 && appendResultBuilder_ != null) { result.response_ = appendResultBuilder_.build(); } - if (responseCase_ == 2 && - errorBuilder_ != null) { + if (responseCase_ == 2 && errorBuilder_ != null) { result.response_ = errorBuilder_.build(); } } @@ -1251,38 +1405,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.Append public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse) other); } else { super.mergeFrom(other); return this; @@ -1290,22 +1445,27 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.getDefaultInstance()) + return this; if (other.hasUpdatedSchema()) { mergeUpdatedSchema(other.getUpdatedSchema()); } switch (other.getResponseCase()) { - case APPEND_RESULT: { - mergeAppendResult(other.getAppendResult()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case RESPONSE_NOT_SET: { - break; - } + case APPEND_RESULT: + { + mergeAppendResult(other.getAppendResult()); + break; + } + case ERROR: + { + mergeError(other.getError()); + break; + } + case RESPONSE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1333,33 +1493,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getAppendResultFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getErrorFieldBuilder().getBuilder(), - extensionRegistry); - responseCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdatedSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getAppendResultFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdatedSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1369,12 +1527,12 @@ public Builder mergeFrom( } // finally return this; } + private int responseCase_ = 0; private java.lang.Object response_; - public ResponseCase - getResponseCase() { - return ResponseCase.forNumber( - responseCase_); + + public ResponseCase getResponseCase() { + return ResponseCase.forNumber(responseCase_); } public Builder clearResponse() { @@ -1387,13 +1545,21 @@ public Builder clearResponse() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder> appendResultBuilder_; + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder> + appendResultBuilder_; /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return Whether the appendResult field is set. */ @java.lang.Override @@ -1401,35 +1567,49 @@ public boolean hasAppendResult() { return responseCase_ == 1; } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return The appendResult. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getAppendResult() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + getAppendResult() { if (appendResultBuilder_ == null) { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) + response_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + .getDefaultInstance(); } else { if (responseCase_ == 1) { return appendResultBuilder_.getMessage(); } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + .getDefaultInstance(); } } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * */ - public Builder setAppendResult(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult value) { + public Builder setAppendResult( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult value) { if (appendResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1443,14 +1623,19 @@ public Builder setAppendResult(com.google.cloud.bigquery.storage.v1beta2.AppendR return this; } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * */ public Builder setAppendResult( - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder + builderForValue) { if (appendResultBuilder_ == null) { response_ = builderForValue.build(); onChanged(); @@ -1461,18 +1646,29 @@ public Builder setAppendResult( return this; } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * */ - public Builder mergeAppendResult(com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult value) { + public Builder mergeAppendResult( + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult value) { if (appendResultBuilder_ == null) { - if (responseCase_ == 1 && - response_ != com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance()) { - response_ = com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.newBuilder((com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_) - .mergeFrom(value).buildPartial(); + if (responseCase_ == 1 + && response_ + != com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + .getDefaultInstance()) { + response_ = + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.newBuilder( + (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) + response_) + .mergeFrom(value) + .buildPartial(); } else { response_ = value; } @@ -1488,11 +1684,15 @@ public Builder mergeAppendResult(com.google.cloud.bigquery.storage.v1beta2.Appen return this; } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * */ public Builder clearAppendResult() { if (appendResultBuilder_ == null) { @@ -1511,50 +1711,74 @@ public Builder clearAppendResult() { return this; } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * */ - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder getAppendResultBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder + getAppendResultBuilder() { return getAppendResultFieldBuilder().getBuilder(); } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder + getAppendResultOrBuilder() { if ((responseCase_ == 1) && (appendResultBuilder_ != null)) { return appendResultBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 1) { - return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_; + return (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) + response_; } - return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); + return com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + .getDefaultInstance(); } } /** + * + * *
      * Result if the append is successful.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder> getAppendResultFieldBuilder() { if (appendResultBuilder_ == null) { if (!(responseCase_ == 1)) { - response_ = com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.getDefaultInstance(); + response_ = + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult + .getDefaultInstance(); } - appendResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder>( - (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) response_, + appendResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult.Builder, + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder>( + (com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult) + response_, getParentForChildren(), isClean()); response_ = null; @@ -1565,8 +1789,11 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult } private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; /** + * + * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1585,6 +1812,7 @@ public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult
      * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ @java.lang.Override @@ -1592,6 +1820,8 @@ public boolean hasError() { return responseCase_ == 2; } /** + * + * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1610,6 +1840,7 @@ public boolean hasError() {
      * 
* * .google.rpc.Status error = 2; + * * @return The error. */ @java.lang.Override @@ -1627,6 +1858,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1660,6 +1893,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1679,8 +1914,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 2;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         response_ = builderForValue.build();
         onChanged();
@@ -1691,6 +1925,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1712,10 +1948,11 @@ public Builder setError(
      */
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
-        if (responseCase_ == 2 &&
-            response_ != com.google.rpc.Status.getDefaultInstance()) {
-          response_ = com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
-              .mergeFrom(value).buildPartial();
+        if (responseCase_ == 2 && response_ != com.google.rpc.Status.getDefaultInstance()) {
+          response_ =
+              com.google.rpc.Status.newBuilder((com.google.rpc.Status) response_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           response_ = value;
         }
@@ -1731,6 +1968,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1767,6 +2006,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1790,6 +2031,8 @@ public com.google.rpc.Status.Builder getErrorBuilder() {
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1821,6 +2064,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Error returned when problems were encountered.  If present,
      * it indicates rows were not accepted into the system.
@@ -1841,17 +2086,18 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
         if (!(responseCase_ == 2)) {
           response_ = com.google.rpc.Status.getDefaultInstance();
         }
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                (com.google.rpc.Status) response_,
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(
+                (com.google.rpc.Status) response_, getParentForChildren(), isClean());
         response_ = null;
       }
       responseCase_ = 2;
@@ -1861,8 +2107,13 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
 
     private com.google.cloud.bigquery.storage.v1beta2.TableSchema updatedSchema_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> updatedSchemaBuilder_;
+            com.google.cloud.bigquery.storage.v1beta2.TableSchema,
+            com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>
+        updatedSchemaBuilder_;
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -1870,12 +2121,15 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; + * * @return Whether the updatedSchema field is set. */ public boolean hasUpdatedSchema() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -1883,16 +2137,21 @@ public boolean hasUpdatedSchema() {
      * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; + * * @return The updatedSchema. */ public com.google.cloud.bigquery.storage.v1beta2.TableSchema getUpdatedSchema() { if (updatedSchemaBuilder_ == null) { - return updatedSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : updatedSchema_; + return updatedSchema_ == null + ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() + : updatedSchema_; } else { return updatedSchemaBuilder_.getMessage(); } } /** + * + * *
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -1915,6 +2174,8 @@ public Builder setUpdatedSchema(com.google.cloud.bigquery.storage.v1beta2.TableS
       return this;
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -1935,6 +2196,8 @@ public Builder setUpdatedSchema(
       return this;
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -1945,9 +2208,10 @@ public Builder setUpdatedSchema(
      */
     public Builder mergeUpdatedSchema(com.google.cloud.bigquery.storage.v1beta2.TableSchema value) {
       if (updatedSchemaBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          updatedSchema_ != null &&
-          updatedSchema_ != com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && updatedSchema_ != null
+            && updatedSchema_
+                != com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) {
           getUpdatedSchemaBuilder().mergeFrom(value);
         } else {
           updatedSchema_ = value;
@@ -1960,6 +2224,8 @@ public Builder mergeUpdatedSchema(com.google.cloud.bigquery.storage.v1beta2.Tabl
       return this;
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -1979,6 +2245,8 @@ public Builder clearUpdatedSchema() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -1993,6 +2261,8 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getUpdatedS
       return getUpdatedSchemaFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2001,15 +2271,19 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getUpdatedS
      *
      * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getUpdatedSchemaOrBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder
+        getUpdatedSchemaOrBuilder() {
       if (updatedSchemaBuilder_ != null) {
         return updatedSchemaBuilder_.getMessageOrBuilder();
       } else {
-        return updatedSchema_ == null ?
-            com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : updatedSchema_;
+        return updatedSchema_ == null
+            ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()
+            : updatedSchema_;
       }
     }
     /**
+     *
+     *
      * 
      * If backend detects a schema update, pass it to user so that user can
      * use it to input new type of message. It will be empty when no schema
@@ -2019,21 +2293,24 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getUpdated
      * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> 
+            com.google.cloud.bigquery.storage.v1beta2.TableSchema,
+            com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>
         getUpdatedSchemaFieldBuilder() {
       if (updatedSchemaBuilder_ == null) {
-        updatedSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>(
-                getUpdatedSchema(),
-                getParentForChildren(),
-                isClean());
+        updatedSchemaBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1beta2.TableSchema,
+                com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder,
+                com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>(
+                getUpdatedSchema(), getParentForChildren(), isClean());
         updatedSchema_ = null;
       }
       return updatedSchemaBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2043,12 +2320,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse)
-  private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse();
   }
@@ -2057,27 +2335,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AppendRowsResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AppendRowsResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2092,6 +2370,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java
index 6eebce822a..5d920cd579 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AppendRowsResponseOrBuilder.java
@@ -1,40 +1,70 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
-public interface AppendRowsResponseOrBuilder extends
+public interface AppendRowsResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AppendRowsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return Whether the appendResult field is set. */ boolean hasAppendResult(); /** + * + * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * + * * @return The appendResult. */ com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult getAppendResult(); /** + * + * *
    * Result if the append is successful.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * .google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResult append_result = 1; + * */ - com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder getAppendResultOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.AppendResultOrBuilder + getAppendResultOrBuilder(); /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -53,10 +83,13 @@ public interface AppendRowsResponseOrBuilder extends
    * 
* * .google.rpc.Status error = 2; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -75,10 +108,13 @@ public interface AppendRowsResponseOrBuilder extends
    * 
* * .google.rpc.Status error = 2; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * Error returned when problems were encountered.  If present,
    * it indicates rows were not accepted into the system.
@@ -101,6 +137,8 @@ public interface AppendRowsResponseOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -108,10 +146,13 @@ public interface AppendRowsResponseOrBuilder extends
    * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; + * * @return Whether the updatedSchema field is set. */ boolean hasUpdatedSchema(); /** + * + * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -119,10 +160,13 @@ public interface AppendRowsResponseOrBuilder extends
    * 
* * .google.cloud.bigquery.storage.v1beta2.TableSchema updated_schema = 3; + * * @return The updatedSchema. */ com.google.cloud.bigquery.storage.v1beta2.TableSchema getUpdatedSchema(); /** + * + * *
    * If backend detects a schema update, pass it to user so that user can
    * use it to input new type of message. It will be empty when no schema
@@ -133,5 +177,6 @@ public interface AppendRowsResponseOrBuilder extends
    */
   com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getUpdatedSchemaOrBuilder();
 
-  public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.ResponseCase getResponseCase();
+  public com.google.cloud.bigquery.storage.v1beta2.AppendRowsResponse.ResponseCase
+      getResponseCase();
 }
diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java
new file mode 100644
index 0000000000..f0e4dbda3d
--- /dev/null
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowProto.java
@@ -0,0 +1,95 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/bigquery/storage/v1beta2/arrow.proto
+
+package com.google.cloud.bigquery.storage.v1beta2;
+
+public final class ArrowProto {
+  private ArrowProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n1google/cloud/bigquery/storage/v1beta2/"
+          + "arrow.proto\022%google.cloud.bigquery.stora"
+          + "ge.v1beta2\"(\n\013ArrowSchema\022\031\n\021serialized_"
+          + "schema\030\001 \001(\014\"3\n\020ArrowRecordBatch\022\037\n\027seri"
+          + "alized_record_batch\030\001 \001(\014\"\266\001\n\031ArrowSeria"
+          + "lizationOptions\022W\n\006format\030\001 \001(\0162G.google"
+          + ".cloud.bigquery.storage.v1beta2.ArrowSer"
+          + "ializationOptions.Format\"@\n\006Format\022\026\n\022FO"
+          + "RMAT_UNSPECIFIED\020\000\022\016\n\nARROW_0_14\020\001\022\016\n\nAR"
+          + "ROW_0_15\020\002B~\n)com.google.cloud.bigquery."
+          + "storage.v1beta2B\nArrowProtoP\001ZCcloud.goo"
+          + "gle.com/go/bigquery/storage/apiv1beta2/s"
+          + "toragepb;storagepbb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {});
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor,
+            new java.lang.String[] {
+              "SerializedSchema",
+            });
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor,
+            new java.lang.String[] {
+              "SerializedRecordBatch",
+            });
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor,
+            new java.lang.String[] {
+              "Format",
+            });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java
similarity index 65%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java
index 80590ac870..f0f649a876 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatch.java
@@ -1,61 +1,84 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/arrow.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
+ *
+ *
  * 
  * Arrow RecordBatch.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch} */ -public final class ArrowRecordBatch extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ArrowRecordBatch extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) ArrowRecordBatchOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ArrowRecordBatch.newBuilder() to construct. private ArrowRecordBatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ArrowRecordBatch() { serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ArrowRecordBatch(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.class, + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder.class); } public static final int SERIALIZED_RECORD_BATCH_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * IPC-serialized Arrow RecordBatch.
    * 
* * bytes serialized_record_batch = 1; + * * @return The serializedRecordBatch. */ @java.lang.Override @@ -64,6 +87,7 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -75,8 +99,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!serializedRecordBatch_.isEmpty()) { output.writeBytes(1, serializedRecordBatch_); } @@ -90,8 +113,7 @@ public int getSerializedSize() { size = 0; if (!serializedRecordBatch_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, serializedRecordBatch_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedRecordBatch_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -101,15 +123,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch other = (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) obj; + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch other = + (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) obj; - if (!getSerializedRecordBatch() - .equals(other.getSerializedRecordBatch())) return false; + if (!getSerializedRecordBatch().equals(other.getSerializedRecordBatch())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -129,129 +151,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Arrow RecordBatch.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.class, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.class, + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,9 +290,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowRecordBatch_descriptor; } @java.lang.Override @@ -282,8 +311,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch result = new com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch result = + new com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -299,38 +331,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ArrowRecord public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) other); } else { super.mergeFrom(other); return this; @@ -338,7 +371,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance()) + return this; if (other.getSerializedRecordBatch() != com.google.protobuf.ByteString.EMPTY) { setSerializedRecordBatch(other.getSerializedRecordBatch()); } @@ -368,17 +402,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - serializedRecordBatch_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + serializedRecordBatch_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -388,15 +424,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.ByteString serializedRecordBatch_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedRecordBatch_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; + * * @return The serializedRecordBatch. */ @java.lang.Override @@ -404,27 +445,35 @@ public com.google.protobuf.ByteString getSerializedRecordBatch() { return serializedRecordBatch_; } /** + * + * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; + * * @param value The serializedRecordBatch to set. * @return This builder for chaining. */ public Builder setSerializedRecordBatch(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } serializedRecordBatch_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * IPC-serialized Arrow RecordBatch.
      * 
* * bytes serialized_record_batch = 1; + * * @return This builder for chaining. */ public Builder clearSerializedRecordBatch() { @@ -433,9 +482,9 @@ public Builder clearSerializedRecordBatch() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -445,12 +494,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) private static final com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch(); } @@ -459,27 +508,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowRecordBatch parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowRecordBatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -494,6 +543,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java new file mode 100644 index 0000000000..925d8960ed --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowRecordBatchOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/arrow.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface ArrowRecordBatchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * IPC-serialized Arrow RecordBatch.
+   * 
+ * + * bytes serialized_record_batch = 1; + * + * @return The serializedRecordBatch. + */ + com.google.protobuf.ByteString getSerializedRecordBatch(); +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java similarity index 66% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java index 27b6db6840..0852638cea 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchema.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Arrow schema as specified in
  * https://arrow.apache.org/docs/python/api/datatypes.html
@@ -14,52 +31,57 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowSchema}
  */
-public final class ArrowSchema extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ArrowSchema extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ArrowSchema)
     ArrowSchemaOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ArrowSchema.newBuilder() to construct.
   private ArrowSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ArrowSchema() {
     serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ArrowSchema();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1beta2.ArrowProto
+        .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1beta2.ArrowProto
+        .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.class, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder.class);
+            com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.class,
+            com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder.class);
   }
 
   public static final int SERIALIZED_SCHEMA_FIELD_NUMBER = 1;
   private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
   /**
+   *
+   *
    * 
    * IPC serialized Arrow schema.
    * 
* * bytes serialized_schema = 1; + * * @return The serializedSchema. */ @java.lang.Override @@ -68,6 +90,7 @@ public com.google.protobuf.ByteString getSerializedSchema() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -79,8 +102,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!serializedSchema_.isEmpty()) { output.writeBytes(1, serializedSchema_); } @@ -94,8 +116,7 @@ public int getSerializedSize() { size = 0; if (!serializedSchema_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, serializedSchema_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedSchema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -105,15 +126,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema other = (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) obj; + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema other = + (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) obj; - if (!getSerializedSchema() - .equals(other.getSerializedSchema())) return false; + if (!getSerializedSchema().equals(other.getSerializedSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -133,96 +154,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Arrow schema as specified in
    * https://arrow.apache.org/docs/python/api/datatypes.html
@@ -233,33 +262,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowSchema}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ArrowSchema)
       com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.class, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.class,
+              com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -269,9 +297,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1beta2.ArrowProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSchema_descriptor;
     }
 
     @java.lang.Override
@@ -290,8 +318,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema buildPartial() {
-      com.google.cloud.bigquery.storage.v1beta2.ArrowSchema result = new com.google.cloud.bigquery.storage.v1beta2.ArrowSchema(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.storage.v1beta2.ArrowSchema result =
+          new com.google.cloud.bigquery.storage.v1beta2.ArrowSchema(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -307,38 +338,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ArrowSchema)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -346,7 +378,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema other) {
-      if (other == com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance())
+        return this;
       if (other.getSerializedSchema() != com.google.protobuf.ByteString.EMPTY) {
         setSerializedSchema(other.getSerializedSchema());
       }
@@ -376,17 +409,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              serializedSchema_ = input.readBytes();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                serializedSchema_ = input.readBytes();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -396,15 +431,19 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.ByteString serializedSchema_ = com.google.protobuf.ByteString.EMPTY;
     /**
+     *
+     *
      * 
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; + * * @return The serializedSchema. */ @java.lang.Override @@ -412,27 +451,35 @@ public com.google.protobuf.ByteString getSerializedSchema() { return serializedSchema_; } /** + * + * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; + * * @param value The serializedSchema to set. * @return This builder for chaining. */ public Builder setSerializedSchema(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } serializedSchema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * IPC serialized Arrow schema.
      * 
* * bytes serialized_schema = 1; + * * @return This builder for chaining. */ public Builder clearSerializedSchema() { @@ -441,9 +488,9 @@ public Builder clearSerializedSchema() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -453,12 +500,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ArrowSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ArrowSchema) private static final com.google.cloud.bigquery.storage.v1beta2.ArrowSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ArrowSchema(); } @@ -467,27 +514,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -502,6 +549,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java new file mode 100644 index 0000000000..0efaa1b6b1 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSchemaOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/arrow.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface ArrowSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * IPC serialized Arrow schema.
+   * 
+ * + * bytes serialized_schema = 1; + * + * @return The serializedSchema. + */ + com.google.protobuf.ByteString getSerializedSchema(); +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java similarity index 60% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java index 3b63dd5f3e..fa9f13c85e 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptions.java @@ -1,63 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Contains options specific to Arrow Serialization.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions} */ -public final class ArrowSerializationOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ArrowSerializationOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) ArrowSerializationOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ArrowSerializationOptions.newBuilder() to construct. private ArrowSerializationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ArrowSerializationOptions() { format_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ArrowSerializationOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.class, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.class, + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder.class); } /** + * + * *
    * The IPC format to use when serializing Arrow streams.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format} */ - public enum Format - implements com.google.protobuf.ProtocolMessageEnum { + public enum Format implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * If unspecied the IPC format as of 0.15 release will be used.
      * 
@@ -66,6 +88,8 @@ public enum Format */ FORMAT_UNSPECIFIED(0), /** + * + * *
      * Use the legacy IPC message format as of Apache Arrow Release 0.14.
      * 
@@ -74,6 +98,8 @@ public enum Format */ ARROW_0_14(1), /** + * + * *
      * Use the message format as of Apache Arrow Release 0.15.
      * 
@@ -85,6 +111,8 @@ public enum Format ; /** + * + * *
      * If unspecied the IPC format as of 0.15 release will be used.
      * 
@@ -93,6 +121,8 @@ public enum Format */ public static final int FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use the legacy IPC message format as of Apache Arrow Release 0.14.
      * 
@@ -101,6 +131,8 @@ public enum Format */ public static final int ARROW_0_14_VALUE = 1; /** + * + * *
      * Use the message format as of Apache Arrow Release 0.15.
      * 
@@ -109,7 +141,6 @@ public enum Format */ public static final int ARROW_0_15_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -134,49 +165,51 @@ public static Format valueOf(int value) { */ public static Format forNumber(int value) { switch (value) { - case 0: return FORMAT_UNSPECIFIED; - case 1: return ARROW_0_14; - case 2: return ARROW_0_15; - default: return null; + case 0: + return FORMAT_UNSPECIFIED; + case 1: + return ARROW_0_14; + case 2: + return ARROW_0_15; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Format> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Format findValueByNumber(int number) { - return Format.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Format findValueByNumber(int number) { + return Format.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDescriptor() + .getEnumTypes() + .get(0); } private static final Format[] VALUES = values(); - public static Format valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Format valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -196,30 +229,45 @@ private Format(int value) { public static final int FORMAT_FIELD_NUMBER = 1; private int format_ = 0; /** + * + * *
    * The Arrow IPC format to use.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
    * The Arrow IPC format to use.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * + * * @return The format. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format getFormat() { - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format result = com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.forNumber(format_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format getFormat() { + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format result = + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.forNumber( + format_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,9 +279,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (format_ != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.FORMAT_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (format_ + != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format + .FORMAT_UNSPECIFIED + .getNumber()) { output.writeEnum(1, format_); } getUnknownFields().writeTo(output); @@ -245,9 +295,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (format_ != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, format_); + if (format_ + != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format + .FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, format_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -257,12 +309,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions other = (com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) obj; + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions other = + (com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) obj; if (format_ != other.format_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -284,129 +337,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains options specific to Arrow Serialization.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.class, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.class, + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,14 +478,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowProto.internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ArrowSerializationOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + .getDefaultInstance(); } @java.lang.Override @@ -437,13 +501,17 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions build @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions result = new com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions result = + new com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.format_ = format_; @@ -454,46 +522,51 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ArrowSerial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + .getDefaultInstance()) return this; if (other.format_ != 0) { setFormatValue(other.getFormatValue()); } @@ -523,17 +596,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - format_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + format_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,26 +618,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int format_ = 0; /** + * + * *
      * The Arrow IPC format to use.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * + * * @return The enum numeric value on the wire for format. */ - @java.lang.Override public int getFormatValue() { + @java.lang.Override + public int getFormatValue() { return format_; } /** + * + * *
      * The Arrow IPC format to use.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * + * * @param value The enum numeric value on the wire for format to set. * @return This builder for chaining. */ @@ -573,28 +658,41 @@ public Builder setFormatValue(int value) { return this; } /** + * + * *
      * The Arrow IPC format to use.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * + * * @return The format. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format getFormat() { - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format result = com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.forNumber(format_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format result = + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.forNumber( + format_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format.UNRECOGNIZED + : result; } /** + * + * *
      * The Arrow IPC format to use.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * + * * @param value The format to set. * @return This builder for chaining. */ - public Builder setFormat(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format value) { + public Builder setFormat( + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format value) { if (value == null) { throw new NullPointerException(); } @@ -604,11 +702,15 @@ public Builder setFormat(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializ return this; } /** + * + * *
      * The Arrow IPC format to use.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * + * * @return This builder for chaining. */ public Builder clearFormat() { @@ -617,9 +719,9 @@ public Builder clearFormat() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -629,41 +731,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) - private static final com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions(); } - public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrowSerializationOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArrowSerializationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -675,9 +779,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java similarity index 51% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java index 54f3c813e5..133e8b1903 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ArrowSerializationOptionsOrBuilder.java @@ -1,27 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/arrow.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface ArrowSerializationOptionsOrBuilder extends +public interface ArrowSerializationOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Arrow IPC format to use.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * + * * @return The enum numeric value on the wire for format. */ int getFormatValue(); /** + * + * *
    * The Arrow IPC format to use.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format format = 1; + * + * * @return The format. */ com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Format getFormat(); diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java new file mode 100644 index 0000000000..b1eed9af9f --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroProto.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/avro.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public final class AvroProto { + private AvroProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/bigquery/storage/v1beta2/" + + "avro.proto\022%google.cloud.bigquery.storag" + + "e.v1beta2\"\034\n\nAvroSchema\022\016\n\006schema\030\001 \001(\t\"" + + "*\n\010AvroRows\022\036\n\026serialized_binary_rows\030\001 " + + "\001(\014B}\n)com.google.cloud.bigquery.storage" + + ".v1beta2B\tAvroProtoP\001ZCcloud.google.com/" + + "go/bigquery/storage/apiv1beta2/storagepb" + + ";storagepbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor, + new java.lang.String[] { + "Schema", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor, + new java.lang.String[] { + "SerializedBinaryRows", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java similarity index 65% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java index 3e95ce3db3..1bb668dc90 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRows.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Avro rows.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AvroRows} */ -public final class AvroRows extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AvroRows extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AvroRows) AvroRowsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroRows.newBuilder() to construct. private AvroRows(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AvroRows() { serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AvroRows(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AvroRows.class, com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AvroRows.class, + com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder.class); } public static final int SERIALIZED_BINARY_ROWS_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
    * Binary serialized rows in a block.
    * 
* * bytes serialized_binary_rows = 1; + * * @return The serializedBinaryRows. */ @java.lang.Override @@ -64,6 +87,7 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -75,8 +99,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!serializedBinaryRows_.isEmpty()) { output.writeBytes(1, serializedBinaryRows_); } @@ -90,8 +113,7 @@ public int getSerializedSize() { size = 0; if (!serializedBinaryRows_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, serializedBinaryRows_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, serializedBinaryRows_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -101,15 +123,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AvroRows)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.AvroRows other = (com.google.cloud.bigquery.storage.v1beta2.AvroRows) obj; + com.google.cloud.bigquery.storage.v1beta2.AvroRows other = + (com.google.cloud.bigquery.storage.v1beta2.AvroRows) obj; - if (!getSerializedBinaryRows() - .equals(other.getSerializedBinaryRows())) return false; + if (!getSerializedBinaryRows().equals(other.getSerializedBinaryRows())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -129,129 +151,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroRows parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AvroRows prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Avro rows.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AvroRows} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AvroRows) com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AvroRows.class, com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AvroRows.class, + com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.AvroRows.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,9 +289,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AvroRows_descriptor; } @java.lang.Override @@ -282,8 +310,11 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRows build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroRows buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AvroRows result = new com.google.cloud.bigquery.storage.v1beta2.AvroRows(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.AvroRows result = + new com.google.cloud.bigquery.storage.v1beta2.AvroRows(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -299,38 +330,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AvroRows re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AvroRows) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AvroRows)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AvroRows) other); } else { super.mergeFrom(other); return this; @@ -338,7 +370,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AvroRows other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance()) + return this; if (other.getSerializedBinaryRows() != com.google.protobuf.ByteString.EMPTY) { setSerializedBinaryRows(other.getSerializedBinaryRows()); } @@ -368,17 +401,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - serializedBinaryRows_ = input.readBytes(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + serializedBinaryRows_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -388,15 +423,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.ByteString serializedBinaryRows_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString serializedBinaryRows_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; + * * @return The serializedBinaryRows. */ @java.lang.Override @@ -404,27 +444,35 @@ public com.google.protobuf.ByteString getSerializedBinaryRows() { return serializedBinaryRows_; } /** + * + * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; + * * @param value The serializedBinaryRows to set. * @return This builder for chaining. */ public Builder setSerializedBinaryRows(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } serializedBinaryRows_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Binary serialized rows in a block.
      * 
* * bytes serialized_binary_rows = 1; + * * @return This builder for chaining. */ public Builder clearSerializedBinaryRows() { @@ -433,9 +481,9 @@ public Builder clearSerializedBinaryRows() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -445,12 +493,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AvroRows) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AvroRows) private static final com.google.cloud.bigquery.storage.v1beta2.AvroRows DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AvroRows(); } @@ -459,27 +507,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.AvroRows getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroRows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroRows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -494,6 +542,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.AvroRows getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java new file mode 100644 index 0000000000..04aefb5227 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroRowsOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/avro.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface AvroRowsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AvroRows) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Binary serialized rows in a block.
+   * 
+ * + * bytes serialized_binary_rows = 1; + * + * @return The serializedBinaryRows. + */ + com.google.protobuf.ByteString getSerializedBinaryRows(); +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java similarity index 66% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java index f965a6fb09..25fae92701 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchema.java @@ -1,63 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Avro schema.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AvroSchema} */ -public final class AvroSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AvroSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.AvroSchema) AvroSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroSchema.newBuilder() to construct. private AvroSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AvroSchema() { schema_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AvroSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.class, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.class, + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** + * + * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; + * * @return The schema. */ @java.lang.Override @@ -66,30 +89,30 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** + * + * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; + * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -98,6 +121,7 @@ public java.lang.String getSchema() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +133,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -134,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.AvroSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.AvroSchema other = (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) obj; + com.google.cloud.bigquery.storage.v1beta2.AvroSchema other = + (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) obj; - if (!getSchema() - .equals(other.getSchema())) return false; + if (!getSchema().equals(other.getSchema())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +185,135 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.AvroSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Avro schema.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.AvroSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.AvroSchema) com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.AvroSchema.class, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.class, + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.AvroSchema.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +323,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.AvroProto.internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.AvroProto + .internal_static_google_cloud_bigquery_storage_v1beta2_AvroSchema_descriptor; } @java.lang.Override @@ -315,8 +344,11 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.AvroSchema result = new com.google.cloud.bigquery.storage.v1beta2.AvroSchema(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.AvroSchema result = + new com.google.cloud.bigquery.storage.v1beta2.AvroSchema(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +364,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.AvroSchema public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.AvroSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AvroSchema)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.AvroSchema) other); } else { super.mergeFrom(other); return this; @@ -371,7 +404,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.AvroSchema other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) + return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -403,17 +437,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +459,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object schema_ = ""; /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; + * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -448,21 +487,22 @@ public java.lang.String getSchema() { } } /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; + * * @return The bytes for schema. */ - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -470,30 +510,37 @@ public java.lang.String getSchema() { } } /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; + * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; + * * @return This builder for chaining. */ public Builder clearSchema() { @@ -503,27 +550,31 @@ public Builder clearSchema() { return this; } /** + * + * *
      * Json serialized schema, as described at
      * https://avro.apache.org/docs/1.8.1/spec.html.
      * 
* * string schema = 1; + * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.AvroSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.AvroSchema) private static final com.google.cloud.bigquery.storage.v1beta2.AvroSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.AvroSchema(); } @@ -547,27 +598,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.AvroSchema getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.AvroSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java similarity index 51% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java index 410287e41a..03ac8890e5 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/AvroSchemaOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/avro.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface AvroSchemaOrBuilder extends +public interface AvroSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.AvroSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; + * * @return The schema. */ java.lang.String getSchema(); /** + * + * *
    * Json serialized schema, as described at
    * https://avro.apache.org/docs/1.8.1/spec.html.
    * 
* * string schema = 1; + * * @return The bytes for schema. */ - com.google.protobuf.ByteString - getSchemaBytes(); + com.google.protobuf.ByteString getSchemaBytes(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java similarity index 66% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java index a41f14e28d..e62b521218 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Request message for `BatchCommitWriteStreams`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest} */ -public final class BatchCommitWriteStreamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchCommitWriteStreamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) BatchCommitWriteStreamsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchCommitWriteStreamsRequest.newBuilder() to construct. - private BatchCommitWriteStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCommitWriteStreamsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchCommitWriteStreamsRequest() { parent_ = ""; writeStreams_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,39 +45,44 @@ private BatchCommitWriteStreamsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchCommitWriteStreamsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Parent table that all the streams should belong to, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -67,30 +91,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Parent table that all the streams should belong to, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -99,37 +123,46 @@ public java.lang.String getParent() { } public static final int WRITE_STREAMS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList writeStreams_; /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the writeStreams. */ - public com.google.protobuf.ProtocolStringList - getWriteStreamsList() { + public com.google.protobuf.ProtocolStringList getWriteStreamsList() { return writeStreams_; } /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of writeStreams. */ public int getWriteStreamsCount() { return writeStreams_.size(); } /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The writeStreams at the given index. */ @@ -137,20 +170,23 @@ public java.lang.String getWriteStreams(int index) { return writeStreams_.get(index); } /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - public com.google.protobuf.ByteString - getWriteStreamsBytes(int index) { + public com.google.protobuf.ByteString getWriteStreamsBytes(int index) { return writeStreams_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -162,8 +198,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -198,17 +233,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest)) { + if (!(obj + instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest other = (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest other = + (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getWriteStreamsList() - .equals(other.getWriteStreamsList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getWriteStreamsList().equals(other.getWriteStreamsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,129 +267,139 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `BatchCommitWriteStreams`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.class, + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,19 +411,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest build() { - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -387,14 +435,18 @@ public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result = new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest(this); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result = + new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result) { if (((bitField0_ & 0x00000002) != 0)) { writeStreams_ = writeStreams_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); @@ -402,7 +454,8 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta result.writeStreams_ = writeStreams_; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -413,46 +466,52 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.BatchCommit public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest)other); + if (other + instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -494,23 +553,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureWriteStreamsIsMutable(); - writeStreams_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWriteStreamsIsMutable(); + writeStreams_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -520,23 +582,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent table that all the streams should belong to, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -545,21 +610,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent table that all the streams should belong to, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -567,30 +633,37 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent table that all the streams should belong to, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Parent table that all the streams should belong to, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { @@ -600,18 +673,22 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Parent table that all the streams should belong to, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -619,42 +696,52 @@ public Builder setParentBytes( return this; } - private com.google.protobuf.LazyStringList writeStreams_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList writeStreams_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureWriteStreamsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { writeStreams_ = new com.google.protobuf.LazyStringArrayList(writeStreams_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the writeStreams. */ - public com.google.protobuf.ProtocolStringList - getWriteStreamsList() { + public com.google.protobuf.ProtocolStringList getWriteStreamsList() { return writeStreams_.getUnmodifiableView(); } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of writeStreams. */ public int getWriteStreamsCount() { return writeStreams_.size(); } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The writeStreams at the given index. */ @@ -662,76 +749,90 @@ public java.lang.String getWriteStreams(int index) { return writeStreams_.get(index); } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - public com.google.protobuf.ByteString - getWriteStreamsBytes(int index) { + public com.google.protobuf.ByteString getWriteStreamsBytes(int index) { return writeStreams_.getByteString(index); } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index to set the value at. * @param value The writeStreams to set. * @return This builder for chaining. */ - public Builder setWriteStreams( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStreams(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureWriteStreamsIsMutable(); writeStreams_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The writeStreams to add. * @return This builder for chaining. */ - public Builder addWriteStreams( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addWriteStreams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureWriteStreamsIsMutable(); writeStreams_.add(value); onChanged(); return this; } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param values The writeStreams to add. * @return This builder for chaining. */ - public Builder addAllWriteStreams( - java.lang.Iterable values) { + public Builder addAllWriteStreams(java.lang.Iterable values) { ensureWriteStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, writeStreams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, writeStreams_); onChanged(); return this; } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearWriteStreams() { @@ -741,26 +842,30 @@ public Builder clearWriteStreams() { return this; } /** + * + * *
      * Required. The group of streams that will be committed atomically.
      * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes of the writeStreams to add. * @return This builder for chaining. */ - public Builder addWriteStreamsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addWriteStreamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureWriteStreamsIsMutable(); writeStreams_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -770,41 +875,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCommitWriteStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCommitWriteStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -816,9 +924,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java index 2f98d380cc..d06e88a517 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsRequestOrBuilder.java @@ -1,72 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface BatchCommitWriteStreamsRequestOrBuilder extends +public interface BatchCommitWriteStreamsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent table that all the streams should belong to, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Parent table that all the streams should belong to, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return A list containing the writeStreams. */ - java.util.List - getWriteStreamsList(); + java.util.List getWriteStreamsList(); /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The count of writeStreams. */ int getWriteStreamsCount(); /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the element to return. * @return The writeStreams at the given index. */ java.lang.String getWriteStreams(int index); /** + * + * *
    * Required. The group of streams that will be committed atomically.
    * 
* * repeated string write_streams = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param index The index of the value to return. * @return The bytes of the writeStreams at the given index. */ - com.google.protobuf.ByteString - getWriteStreamsBytes(int index); + com.google.protobuf.ByteString getWriteStreamsBytes(int index); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java similarity index 73% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java index 1f0863fd66..1a42ef4ec9 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponse.java @@ -1,56 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Response message for `BatchCommitWriteStreams`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse} */ -public final class BatchCommitWriteStreamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BatchCommitWriteStreamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) BatchCommitWriteStreamsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BatchCommitWriteStreamsResponse.newBuilder() to construct. - private BatchCommitWriteStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private BatchCommitWriteStreamsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BatchCommitWriteStreamsResponse() { streamErrors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BatchCommitWriteStreamsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.Builder + .class); } public static final int COMMIT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp commitTime_; /** + * + * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -58,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return Whether the commitTime field is set. */ @java.lang.Override @@ -65,6 +89,8 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** + * + * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -72,6 +98,7 @@ public boolean hasCommitTime() {
    * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return The commitTime. */ @java.lang.Override @@ -79,6 +106,8 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** + * + * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -93,9 +122,12 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
   }
 
   public static final int STREAM_ERRORS_FIELD_NUMBER = 2;
+
   @SuppressWarnings("serial")
   private java.util.List streamErrors_;
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -107,10 +139,13 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
    * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
    */
   @java.lang.Override
-  public java.util.List getStreamErrorsList() {
+  public java.util.List
+      getStreamErrorsList() {
     return streamErrors_;
   }
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -122,11 +157,13 @@ public java.util.List ge
    * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getStreamErrorsOrBuilderList() {
     return streamErrors_;
   }
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -142,6 +179,8 @@ public int getStreamErrorsCount() {
     return streamErrors_.size();
   }
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -157,6 +196,8 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError getStreamErrors(in
     return streamErrors_.get(index);
   }
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -174,6 +215,7 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder getStream
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -185,8 +227,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (commitTime_ != null) {
       output.writeMessage(1, getCommitTime());
     }
@@ -203,12 +244,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (commitTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getCommitTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommitTime());
     }
     for (int i = 0; i < streamErrors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, streamErrors_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, streamErrors_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -218,20 +257,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
-    if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)) {
+    if (!(obj
+        instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse other = (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) obj;
+    com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse other =
+        (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) obj;
 
     if (hasCommitTime() != other.hasCommitTime()) return false;
     if (hasCommitTime()) {
-      if (!getCommitTime()
-          .equals(other.getCommitTime())) return false;
+      if (!getCommitTime().equals(other.getCommitTime())) return false;
     }
-    if (!getStreamErrorsList()
-        .equals(other.getStreamErrorsList())) return false;
+    if (!getStreamErrorsList().equals(other.getStreamErrorsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -257,129 +296,139 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Response message for `BatchCommitWriteStreams`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.class, + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -400,19 +449,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse build() { - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -420,15 +472,20 @@ public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result = new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse(this); + public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse + buildPartial() { + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result = + new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result) { if (streamErrorsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { streamErrors_ = java.util.Collections.unmodifiableList(streamErrors_); @@ -440,12 +497,11 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta } } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.commitTime_ = commitTimeBuilder_ == null - ? commitTime_ - : commitTimeBuilder_.build(); + result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); } } @@ -453,46 +509,52 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.BatchCommit public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)other); + if (other + instanceof com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse + .getDefaultInstance()) return this; if (other.hasCommitTime()) { mergeCommitTime(other.getCommitTime()); } @@ -514,9 +576,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.BatchCommitWr streamErrorsBuilder_ = null; streamErrors_ = other.streamErrors_; bitField0_ = (bitField0_ & ~0x00000002); - streamErrorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStreamErrorsFieldBuilder() : null; + streamErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStreamErrorsFieldBuilder() + : null; } else { streamErrorsBuilder_.addAllMessages(other.streamErrors_); } @@ -548,32 +611,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCommitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.bigquery.storage.v1beta2.StorageError m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta2.StorageError.parser(), - extensionRegistry); - if (streamErrorsBuilder_ == null) { - ensureStreamErrorsIsMutable(); - streamErrors_.add(m); - } else { - streamErrorsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.bigquery.storage.v1beta2.StorageError m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta2.StorageError.parser(), + extensionRegistry); + if (streamErrorsBuilder_ == null) { + ensureStreamErrorsIsMutable(); + streamErrors_.add(m); + } else { + streamErrorsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -583,12 +647,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + commitTimeBuilder_; /** + * + * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -596,12 +666,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -609,16 +682,21 @@ public boolean hasCommitTime() {
      * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** + * + * *
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -641,6 +719,8 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -649,8 +729,7 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp commit_time = 1;
      */
-    public Builder setCommitTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (commitTimeBuilder_ == null) {
         commitTime_ = builderForValue.build();
       } else {
@@ -661,6 +740,8 @@ public Builder setCommitTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -671,9 +752,9 @@ public Builder setCommitTime(
      */
     public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
       if (commitTimeBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          commitTime_ != null &&
-          commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && commitTime_ != null
+            && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
           getCommitTimeBuilder().mergeFrom(value);
         } else {
           commitTime_ = value;
@@ -686,6 +767,8 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -705,6 +788,8 @@ public Builder clearCommitTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -719,6 +804,8 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() {
       return getCommitTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -731,11 +818,14 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
       if (commitTimeBuilder_ != null) {
         return commitTimeBuilder_.getMessageOrBuilder();
       } else {
-        return commitTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_;
+        return commitTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : commitTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time at which streams were committed in microseconds granularity.
      * This field will only exist when there are no stream errors.
@@ -745,32 +835,43 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * .google.protobuf.Timestamp commit_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getCommitTimeFieldBuilder() {
       if (commitTimeBuilder_ == null) {
-        commitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getCommitTime(),
-                getParentForChildren(),
-                isClean());
+        commitTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getCommitTime(), getParentForChildren(), isClean());
         commitTime_ = null;
       }
       return commitTimeBuilder_;
     }
 
     private java.util.List streamErrors_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureStreamErrorsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        streamErrors_ = new java.util.ArrayList(streamErrors_);
+        streamErrors_ =
+            new java.util.ArrayList(
+                streamErrors_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.StorageError, com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder, com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder> streamErrorsBuilder_;
+            com.google.cloud.bigquery.storage.v1beta2.StorageError,
+            com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder>
+        streamErrorsBuilder_;
 
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -781,7 +882,8 @@ private void ensureStreamErrorsIsMutable() {
      *
      * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
      */
-    public java.util.List getStreamErrorsList() {
+    public java.util.List
+        getStreamErrorsList() {
       if (streamErrorsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(streamErrors_);
       } else {
@@ -789,6 +891,8 @@ public java.util.List ge
       }
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -807,6 +911,8 @@ public int getStreamErrorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -825,6 +931,8 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError getStreamErrors(in
       }
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -850,6 +958,8 @@ public Builder setStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -872,6 +982,8 @@ public Builder setStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -896,6 +1008,8 @@ public Builder addStreamErrors(com.google.cloud.bigquery.storage.v1beta2.Storage
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -921,6 +1035,8 @@ public Builder addStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -943,6 +1059,8 @@ public Builder addStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -965,6 +1083,8 @@ public Builder addStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -976,11 +1096,11 @@ public Builder addStreamErrors(
      * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
      */
     public Builder addAllStreamErrors(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (streamErrorsBuilder_ == null) {
         ensureStreamErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, streamErrors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streamErrors_);
         onChanged();
       } else {
         streamErrorsBuilder_.addAllMessages(values);
@@ -988,6 +1108,8 @@ public Builder addAllStreamErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1009,6 +1131,8 @@ public Builder clearStreamErrors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1030,6 +1154,8 @@ public Builder removeStreamErrors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1045,6 +1171,8 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder getStreamE
       return getStreamErrorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1058,11 +1186,14 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder getStreamE
     public com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder getStreamErrorsOrBuilder(
         int index) {
       if (streamErrorsBuilder_ == null) {
-        return streamErrors_.get(index);  } else {
+        return streamErrors_.get(index);
+      } else {
         return streamErrorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1073,8 +1204,8 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder getStream
      *
      * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
      */
-    public java.util.List 
-         getStreamErrorsOrBuilderList() {
+    public java.util.List
+        getStreamErrorsOrBuilderList() {
       if (streamErrorsBuilder_ != null) {
         return streamErrorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1082,6 +1213,8 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder getStream
       }
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1093,10 +1226,12 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder getStream
      * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
      */
     public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder addStreamErrorsBuilder() {
-      return getStreamErrorsFieldBuilder().addBuilder(
-          com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance());
+      return getStreamErrorsFieldBuilder()
+          .addBuilder(com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1109,10 +1244,13 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder addStreamE
      */
     public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder addStreamErrorsBuilder(
         int index) {
-      return getStreamErrorsFieldBuilder().addBuilder(
-          index, com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance());
+      return getStreamErrorsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Stream level error if commit failed. Only streams with error will be in
      * the list.
@@ -1123,27 +1261,30 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder addStreamE
      *
      * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
      */
-    public java.util.List 
-         getStreamErrorsBuilderList() {
+    public java.util.List
+        getStreamErrorsBuilderList() {
       return getStreamErrorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.StorageError, com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder, com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder> 
+            com.google.cloud.bigquery.storage.v1beta2.StorageError,
+            com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder>
         getStreamErrorsFieldBuilder() {
       if (streamErrorsBuilder_ == null) {
-        streamErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.StorageError, com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder, com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder>(
-                streamErrors_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        streamErrorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1beta2.StorageError,
+                com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder,
+                com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder>(
+                streamErrors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         streamErrors_ = null;
       }
       return streamErrorsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1153,41 +1294,44 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)
-  private static final com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
+      DEFAULT_INSTANCE;
+
   static {
-    DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse();
+    DEFAULT_INSTANCE =
+        new com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse();
   }
 
-  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse getDefaultInstance() {
+  public static com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BatchCommitWriteStreamsResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BatchCommitWriteStreamsResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1199,9 +1343,8 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse getDefaultInstanceForType() {
+  public com.google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java
index e16034d461..4ee30d3923 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/BatchCommitWriteStreamsResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
-public interface BatchCommitWriteStreamsResponseOrBuilder extends
+public interface BatchCommitWriteStreamsResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.BatchCommitWriteStreamsResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -15,10 +33,13 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** + * + * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -26,10 +47,13 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    * 
* * .google.protobuf.Timestamp commit_time = 1; + * * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** + * + * *
    * The time at which streams were committed in microseconds granularity.
    * This field will only exist when there are no stream errors.
@@ -41,6 +65,8 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -51,9 +77,10 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    *
    * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
    */
-  java.util.List 
-      getStreamErrorsList();
+  java.util.List getStreamErrorsList();
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -66,6 +93,8 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    */
   com.google.cloud.bigquery.storage.v1beta2.StorageError getStreamErrors(int index);
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -78,6 +107,8 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    */
   int getStreamErrorsCount();
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
@@ -88,9 +119,11 @@ public interface BatchCommitWriteStreamsResponseOrBuilder extends
    *
    * repeated .google.cloud.bigquery.storage.v1beta2.StorageError stream_errors = 2;
    */
-  java.util.List 
+  java.util.List
       getStreamErrorsOrBuilderList();
   /**
+   *
+   *
    * 
    * Stream level error if commit failed. Only streams with error will be in
    * the list.
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java
similarity index 61%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java
index 35fed86db0..36b64bd143 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequest.java
@@ -1,63 +1,88 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
+ *
+ *
  * 
  * Request message for `CreateReadSession`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest} */ -public final class CreateReadSessionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateReadSessionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) CreateReadSessionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateReadSessionRequest.newBuilder() to construct. private CreateReadSessionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateReadSessionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateReadSessionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.class, + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +127,16 @@ public java.lang.String getParent() { public static final int READ_SESSION_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta2.ReadSession readSession_; /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the readSession field is set. */ @java.lang.Override @@ -112,32 +144,47 @@ public boolean hasReadSession() { return readSession_ != null; } /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The readSession. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession getReadSession() { - return readSession_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() : readSession_; + return readSession_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() + : readSession_; } /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder getReadSessionOrBuilder() { - return readSession_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() : readSession_; + return readSession_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() + : readSession_; } public static final int MAX_STREAM_COUNT_FIELD_NUMBER = 3; private int maxStreamCount_ = 0; /** + * + * *
    * Max initial number of streams. If unset or zero, the server will
    * provide a value of streams so as to produce reasonable throughput. Must be
@@ -149,6 +196,7 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder getReadSes
    * 
* * int32 max_stream_count = 3; + * * @return The maxStreamCount. */ @java.lang.Override @@ -157,6 +205,7 @@ public int getMaxStreamCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +217,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -192,12 +240,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (readSession_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getReadSession()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadSession()); } if (maxStreamCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxStreamCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxStreamCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -207,22 +253,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest other = (com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest other = + (com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasReadSession() != other.hasReadSession()) return false; if (hasReadSession()) { - if (!getReadSession() - .equals(other.getReadSession())) return false; + if (!getReadSession().equals(other.getReadSession())) return false; } - if (getMaxStreamCount() - != other.getMaxStreamCount()) return false; + if (getMaxStreamCount() != other.getMaxStreamCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -248,129 +292,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `CreateReadSession`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.class, com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.class, + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,14 +439,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest + .getDefaultInstance(); } @java.lang.Override @@ -407,21 +462,24 @@ public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest build( @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest result = new com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest result = + new com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.readSession_ = readSessionBuilder_ == null - ? readSession_ - : readSessionBuilder_.build(); + result.readSession_ = + readSessionBuilder_ == null ? readSession_ : readSessionBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxStreamCount_ = maxStreamCount_; @@ -432,46 +490,51 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.CreateReadS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -509,29 +572,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getReadSessionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - maxStreamCount_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getReadSessionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + maxStreamCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -541,23 +606,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -566,21 +636,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -588,30 +661,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -621,18 +705,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The request project that owns the session, in the form of
      * `projects/{project_id}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -642,39 +732,58 @@ public Builder setParentBytes( private com.google.cloud.bigquery.storage.v1beta2.ReadSession readSession_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession, com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder> readSessionBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ReadSession, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder> + readSessionBuilder_; /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the readSession field is set. */ public boolean hasReadSession() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The readSession. */ public com.google.cloud.bigquery.storage.v1beta2.ReadSession getReadSession() { if (readSessionBuilder_ == null) { - return readSession_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() : readSession_; + return readSession_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() + : readSession_; } else { return readSessionBuilder_.getMessage(); } } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReadSession(com.google.cloud.bigquery.storage.v1beta2.ReadSession value) { if (readSessionBuilder_ == null) { @@ -690,11 +799,15 @@ public Builder setReadSession(com.google.cloud.bigquery.storage.v1beta2.ReadSess return this; } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setReadSession( com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder builderForValue) { @@ -708,17 +821,22 @@ public Builder setReadSession( return this; } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeReadSession(com.google.cloud.bigquery.storage.v1beta2.ReadSession value) { if (readSessionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - readSession_ != null && - readSession_ != com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && readSession_ != null + && readSession_ + != com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance()) { getReadSessionBuilder().mergeFrom(value); } else { readSession_ = value; @@ -731,11 +849,15 @@ public Builder mergeReadSession(com.google.cloud.bigquery.storage.v1beta2.ReadSe return this; } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearReadSession() { bitField0_ = (bitField0_ & ~0x00000002); @@ -748,11 +870,15 @@ public Builder clearReadSession() { return this; } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder getReadSessionBuilder() { bitField0_ |= 0x00000002; @@ -760,43 +886,58 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder getReadSess return getReadSessionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder getReadSessionOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder + getReadSessionOrBuilder() { if (readSessionBuilder_ != null) { return readSessionBuilder_.getMessageOrBuilder(); } else { - return readSession_ == null ? - com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() : readSession_; + return readSession_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance() + : readSession_; } } /** + * + * *
      * Required. Session to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession, com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ReadSession, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder> getReadSessionFieldBuilder() { if (readSessionBuilder_ == null) { - readSessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession, com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder>( - getReadSession(), - getParentForChildren(), - isClean()); + readSessionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ReadSession, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder>( + getReadSession(), getParentForChildren(), isClean()); readSession_ = null; } return readSessionBuilder_; } - private int maxStreamCount_ ; + private int maxStreamCount_; /** + * + * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -808,6 +949,7 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder getReadSes
      * 
* * int32 max_stream_count = 3; + * * @return The maxStreamCount. */ @java.lang.Override @@ -815,6 +957,8 @@ public int getMaxStreamCount() { return maxStreamCount_; } /** + * + * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -826,17 +970,20 @@ public int getMaxStreamCount() {
      * 
* * int32 max_stream_count = 3; + * * @param value The maxStreamCount to set. * @return This builder for chaining. */ public Builder setMaxStreamCount(int value) { - + maxStreamCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Max initial number of streams. If unset or zero, the server will
      * provide a value of streams so as to produce reasonable throughput. Must be
@@ -848,6 +995,7 @@ public Builder setMaxStreamCount(int value) {
      * 
* * int32 max_stream_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxStreamCount() { @@ -856,9 +1004,9 @@ public Builder clearMaxStreamCount() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -868,41 +1016,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReadSessionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReadSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -914,9 +1064,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java index 91c0fe9601..3ce93c86fd 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateReadSessionRequestOrBuilder.java @@ -1,62 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface CreateReadSessionRequestOrBuilder extends +public interface CreateReadSessionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.CreateReadSessionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The request project that owns the session, in the form of
    * `projects/{project_id}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the readSession field is set. */ boolean hasReadSession(); /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The readSession. */ com.google.cloud.bigquery.storage.v1beta2.ReadSession getReadSession(); /** + * + * *
    * Required. Session to be created.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession read_session = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder getReadSessionOrBuilder(); /** + * + * *
    * Max initial number of streams. If unset or zero, the server will
    * provide a value of streams so as to produce reasonable throughput. Must be
@@ -68,6 +109,7 @@ public interface CreateReadSessionRequestOrBuilder extends
    * 
* * int32 max_stream_count = 3; + * * @return The maxStreamCount. */ int getMaxStreamCount(); diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java similarity index 58% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java index 49de91d80c..d1c9cadbcc 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Request message for `CreateWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest} */ -public final class CreateWriteStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) CreateWriteStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateWriteStreamRequest.newBuilder() to construct. private CreateWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateWriteStreamRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. Reference to the table to which the stream belongs, in the format
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Reference to the table to which the stream belongs, in the format
    * of `projects/{project}/datasets/{dataset}/tables/{table}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -100,11 +127,16 @@ public java.lang.String getParent() { public static final int WRITE_STREAM_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta2.WriteStream writeStream_; /** + * + * *
    * Required. Stream to be created.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the writeStream field is set. */ @java.lang.Override @@ -112,30 +144,44 @@ public boolean hasWriteStream() { return writeStream_ != null; } /** + * + * *
    * Required. Stream to be created.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The writeStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream() { - return writeStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() : writeStream_; + return writeStream_ == null + ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() + : writeStream_; } /** + * + * *
    * Required. Stream to be created.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder getWriteStreamOrBuilder() { - return writeStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() : writeStream_; + return writeStream_ == null + ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() + : writeStream_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +193,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -168,8 +213,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (writeStream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getWriteStream()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWriteStream()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,19 +223,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest other = + (com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasWriteStream() != other.hasWriteStream()) return false; if (hasWriteStream()) { - if (!getWriteStream() - .equals(other.getWriteStream())) return false; + if (!getWriteStream().equals(other.getWriteStream())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,129 +259,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `CreateWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,14 +405,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest + .getDefaultInstance(); } @java.lang.Override @@ -374,21 +428,24 @@ public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest build( @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest result = + new com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.writeStream_ = writeStreamBuilder_ == null - ? writeStream_ - : writeStreamBuilder_.build(); + result.writeStream_ = + writeStreamBuilder_ == null ? writeStream_ : writeStreamBuilder_.build(); } } @@ -396,46 +453,51 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.CreateWrite public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -470,24 +532,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getWriteStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getWriteStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,23 +560,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -522,21 +590,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -544,30 +615,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -577,18 +659,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. Reference to the table to which the stream belongs, in the format
      * of `projects/{project}/datasets/{dataset}/tables/{table}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -598,39 +686,58 @@ public Builder setParentBytes( private com.google.cloud.bigquery.storage.v1beta2.WriteStream writeStream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.WriteStream, com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder> writeStreamBuilder_; + com.google.cloud.bigquery.storage.v1beta2.WriteStream, + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, + com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder> + writeStreamBuilder_; /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the writeStream field is set. */ public boolean hasWriteStream() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The writeStream. */ public com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream() { if (writeStreamBuilder_ == null) { - return writeStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() : writeStream_; + return writeStream_ == null + ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() + : writeStream_; } else { return writeStreamBuilder_.getMessage(); } } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWriteStream(com.google.cloud.bigquery.storage.v1beta2.WriteStream value) { if (writeStreamBuilder_ == null) { @@ -646,11 +753,15 @@ public Builder setWriteStream(com.google.cloud.bigquery.storage.v1beta2.WriteStr return this; } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setWriteStream( com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder builderForValue) { @@ -664,17 +775,22 @@ public Builder setWriteStream( return this; } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeWriteStream(com.google.cloud.bigquery.storage.v1beta2.WriteStream value) { if (writeStreamBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - writeStream_ != null && - writeStream_ != com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && writeStream_ != null + && writeStream_ + != com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance()) { getWriteStreamBuilder().mergeFrom(value); } else { writeStream_ = value; @@ -687,11 +803,15 @@ public Builder mergeWriteStream(com.google.cloud.bigquery.storage.v1beta2.WriteS return this; } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearWriteStream() { bitField0_ = (bitField0_ & ~0x00000002); @@ -704,11 +824,15 @@ public Builder clearWriteStream() { return this; } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder getWriteStreamBuilder() { bitField0_ |= 0x00000002; @@ -716,43 +840,56 @@ public com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder getWriteStr return getWriteStreamFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder getWriteStreamOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder + getWriteStreamOrBuilder() { if (writeStreamBuilder_ != null) { return writeStreamBuilder_.getMessageOrBuilder(); } else { - return writeStream_ == null ? - com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() : writeStream_; + return writeStream_ == null + ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance() + : writeStream_; } } /** + * + * *
      * Required. Stream to be created.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.WriteStream, com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.WriteStream, + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, + com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder> getWriteStreamFieldBuilder() { if (writeStreamBuilder_ == null) { - writeStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.WriteStream, com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder>( - getWriteStream(), - getParentForChildren(), - isClean()); + writeStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.WriteStream, + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder, + com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder>( + getWriteStream(), getParentForChildren(), isClean()); writeStream_ = null; } return writeStreamBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -762,41 +899,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,9 +947,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java new file mode 100644 index 0000000000..a3da6246c0 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/CreateWriteStreamRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface CreateWriteStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.CreateWriteStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Reference to the table to which the stream belongs, in the format
+   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Reference to the table to which the stream belongs, in the format
+   * of `projects/{project}/datasets/{dataset}/tables/{table}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Stream to be created.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the writeStream field is set. + */ + boolean hasWriteStream(); + /** + * + * + *
+   * Required. Stream to be created.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The writeStream. + */ + com.google.cloud.bigquery.storage.v1beta2.WriteStream getWriteStream(); + /** + * + * + *
+   * Required. Stream to be created.
+   * 
+ * + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream write_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder getWriteStreamOrBuilder(); +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java similarity index 65% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java index 788f735937..16f9360238 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/DataFormat.java @@ -1,22 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Data format for input or output data.
  * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.DataFormat} */ -public enum DataFormat - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DATA_FORMAT_UNSPECIFIED = 0; - */ +public enum DataFormat implements com.google.protobuf.ProtocolMessageEnum { + /** DATA_FORMAT_UNSPECIFIED = 0; */ DATA_FORMAT_UNSPECIFIED(0), /** + * + * *
    * Avro is a standard open source row based file format.
    * See https://avro.apache.org/ for more details.
@@ -26,6 +42,8 @@ public enum DataFormat
    */
   AVRO(1),
   /**
+   *
+   *
    * 
    * Arrow is a standard open source column-based message format.
    * See https://arrow.apache.org/ for more details.
@@ -37,11 +55,11 @@ public enum DataFormat
   UNRECOGNIZED(-1),
   ;
 
-  /**
-   * DATA_FORMAT_UNSPECIFIED = 0;
-   */
+  /** DATA_FORMAT_UNSPECIFIED = 0; */
   public static final int DATA_FORMAT_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * Avro is a standard open source row based file format.
    * See https://avro.apache.org/ for more details.
@@ -51,6 +69,8 @@ public enum DataFormat
    */
   public static final int AVRO_VALUE = 1;
   /**
+   *
+   *
    * 
    * Arrow is a standard open source column-based message format.
    * See https://arrow.apache.org/ for more details.
@@ -60,7 +80,6 @@ public enum DataFormat
    */
   public static final int ARROW_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -85,49 +104,51 @@ public static DataFormat valueOf(int value) {
    */
   public static DataFormat forNumber(int value) {
     switch (value) {
-      case 0: return DATA_FORMAT_UNSPECIFIED;
-      case 1: return AVRO;
-      case 2: return ARROW;
-      default: return null;
+      case 0:
+        return DATA_FORMAT_UNSPECIFIED;
+      case 1:
+        return AVRO;
+      case 2:
+        return ARROW;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      DataFormat> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public DataFormat findValueByNumber(int number) {
-            return DataFormat.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public DataFormat findValueByNumber(int number) {
+          return DataFormat.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor().getEnumTypes().get(0);
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor()
+        .getEnumTypes()
+        .get(0);
   }
 
   private static final DataFormat[] VALUES = values();
 
-  public static DataFormat valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static DataFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -143,4 +164,3 @@ private DataFormat(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1beta2.DataFormat)
 }
-
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java
similarity index 59%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java
index b3292e961a..75875b945f 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequest.java
@@ -1,63 +1,88 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
+ *
+ *
  * 
  * Request message for invoking `FinalizeWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest} */ -public final class FinalizeWriteStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FinalizeWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) FinalizeWriteStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FinalizeWriteStreamRequest.newBuilder() to construct. private FinalizeWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FinalizeWriteStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FinalizeWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the stream to finalize, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the stream to finalize, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -134,15 +161,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest other = + (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,138 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for invoking `FinalizeWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,14 +330,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest + .getDefaultInstance(); } @java.lang.Override @@ -315,13 +353,17 @@ public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest buil @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest result = + new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -332,46 +374,51 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FinalizeWri public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -403,17 +450,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +472,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,21 +502,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -470,30 +527,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -503,27 +571,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the stream to finalize, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,41 +607,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FinalizeWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinalizeWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,9 +655,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java new file mode 100644 index 0000000000..97b7766ee2 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface FinalizeWriteStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the stream to finalize, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the stream to finalize, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java similarity index 60% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java index 21958af51e..c5dfa7acfc 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponse.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Response message for `FinalizeWriteStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse} */ -public final class FinalizeWriteStreamResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FinalizeWriteStreamResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) FinalizeWriteStreamResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FinalizeWriteStreamResponse.newBuilder() to construct. private FinalizeWriteStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FinalizeWriteStreamResponse() { - } + + private FinalizeWriteStreamResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FinalizeWriteStreamResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.Builder.class); } public static final int ROW_COUNT_FIELD_NUMBER = 1; private long rowCount_ = 0L; /** + * + * *
    * Number of rows in the finalized stream.
    * 
* * int64 row_count = 1; + * * @return The rowCount. */ @java.lang.Override @@ -63,6 +84,7 @@ public long getRowCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (rowCount_ != 0L) { output.writeInt64(1, rowCount_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, rowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, rowCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,15 +120,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse other = (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) obj; + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse other = + (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) obj; - if (getRowCount() - != other.getRowCount()) return false; + if (getRowCount() != other.getRowCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -121,137 +141,145 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for `FinalizeWriteStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.class, + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,14 +289,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse + .getDefaultInstance(); } @java.lang.Override @@ -282,13 +312,17 @@ public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse bui @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse result = new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse result = + new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.rowCount_ = rowCount_; @@ -299,46 +333,51 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FinalizeWri public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse + .getDefaultInstance()) return this; if (other.getRowCount() != 0L) { setRowCount(other.getRowCount()); } @@ -368,17 +407,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - rowCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + rowCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -388,15 +429,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long rowCount_ ; + private long rowCount_; /** + * + * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; + * * @return The rowCount. */ @java.lang.Override @@ -404,27 +449,33 @@ public long getRowCount() { return rowCount_; } /** + * + * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; + * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Number of rows in the finalized stream.
      * 
* * int64 row_count = 1; + * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -433,9 +484,9 @@ public Builder clearRowCount() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -445,41 +496,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) - private static final com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse(); } - public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FinalizeWriteStreamResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinalizeWriteStreamResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -491,9 +544,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java new file mode 100644 index 0000000000..edde5731e3 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FinalizeWriteStreamResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface FinalizeWriteStreamResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FinalizeWriteStreamResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Number of rows in the finalized stream.
+   * 
+ * + * int64 row_count = 1; + * + * @return The rowCount. + */ + long getRowCount(); +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java similarity index 67% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java index 0e36e5633a..c1664eecaf 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Request message for `FlushRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FlushRowsRequest} */ -public final class FlushRowsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FlushRowsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) FlushRowsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FlushRowsRequest.newBuilder() to construct. private FlushRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FlushRowsRequest() { writeStream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FlushRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.Builder.class); } public static final int WRITE_STREAM_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object writeStream_ = ""; /** + * + * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getWriteStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; } } /** + * + * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ @java.lang.Override - public com.google.protobuf.ByteString - getWriteStreamBytes() { + public com.google.protobuf.ByteString getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeStream_ = b; return b; } else { @@ -98,12 +125,15 @@ public java.lang.String getWriteStream() { public static final int OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Int64Value offset_; /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ @java.lang.Override @@ -111,12 +141,15 @@ public boolean hasOffset() { return offset_ != null; } /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ @java.lang.Override @@ -124,6 +157,8 @@ public com.google.protobuf.Int64Value getOffset() { return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_; } /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
@@ -137,6 +172,7 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -148,8 +184,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writeStream_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, writeStream_);
     }
@@ -169,8 +204,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, writeStream_);
     }
     if (offset_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getOffset());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOffset());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -180,19 +214,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest other = (com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) obj;
+    com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest other =
+        (com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) obj;
 
-    if (!getWriteStream()
-        .equals(other.getWriteStream())) return false;
+    if (!getWriteStream().equals(other.getWriteStream())) return false;
     if (hasOffset() != other.hasOffset()) return false;
     if (hasOffset()) {
-      if (!getOffset()
-          .equals(other.getOffset())) return false;
+      if (!getOffset().equals(other.getOffset())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -217,129 +250,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Request message for `FlushRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FlushRowsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.class, + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; } @java.lang.Override @@ -375,8 +415,11 @@ public com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest result = new com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest result = + new com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -387,9 +430,7 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRe result.writeStream_ = writeStream_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.offset_ = offsetBuilder_ == null - ? offset_ - : offsetBuilder_.build(); + result.offset_ = offsetBuilder_ == null ? offset_ : offsetBuilder_.build(); } } @@ -397,38 +438,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest) other); } else { super.mergeFrom(other); return this; @@ -436,7 +478,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest.getDefaultInstance()) + return this; if (!other.getWriteStream().isEmpty()) { writeStream_ = other.writeStream_; bitField0_ |= 0x00000001; @@ -471,24 +514,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - writeStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getOffsetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + writeStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getOffsetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -498,22 +542,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object writeStream_ = ""; /** + * + * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ public java.lang.String getWriteStream() { java.lang.Object ref = writeStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); writeStream_ = s; return s; @@ -522,20 +571,23 @@ public java.lang.String getWriteStream() { } } /** + * + * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ - public com.google.protobuf.ByteString - getWriteStreamBytes() { + public com.google.protobuf.ByteString getWriteStreamBytes() { java.lang.Object ref = writeStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); writeStream_ = b; return b; } else { @@ -543,28 +595,39 @@ public java.lang.String getWriteStream() { } } /** + * + * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStream( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStream(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } writeStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearWriteStream() { @@ -574,17 +637,23 @@ public Builder clearWriteStream() { return this; } /** + * + * *
      * Required. The stream that is the target of the flush operation.
      * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for writeStream to set. * @return This builder for chaining. */ - public Builder setWriteStreamBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setWriteStreamBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); writeStream_ = value; bitField0_ |= 0x00000001; @@ -594,26 +663,35 @@ public Builder setWriteStreamBytes( private com.google.protobuf.Int64Value offset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> offsetBuilder_; + com.google.protobuf.Int64Value, + com.google.protobuf.Int64Value.Builder, + com.google.protobuf.Int64ValueOrBuilder> + offsetBuilder_; /** + * + * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
      * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
      * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ public com.google.protobuf.Int64Value getOffset() { @@ -624,6 +702,8 @@ public com.google.protobuf.Int64Value getOffset() { } } /** + * + * *
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -645,6 +725,8 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -652,8 +734,7 @@ public Builder setOffset(com.google.protobuf.Int64Value value) {
      *
      * .google.protobuf.Int64Value offset = 2;
      */
-    public Builder setOffset(
-        com.google.protobuf.Int64Value.Builder builderForValue) {
+    public Builder setOffset(com.google.protobuf.Int64Value.Builder builderForValue) {
       if (offsetBuilder_ == null) {
         offset_ = builderForValue.build();
       } else {
@@ -664,6 +745,8 @@ public Builder setOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -673,9 +756,9 @@ public Builder setOffset(
      */
     public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       if (offsetBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          offset_ != null &&
-          offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && offset_ != null
+            && offset_ != com.google.protobuf.Int64Value.getDefaultInstance()) {
           getOffsetBuilder().mergeFrom(value);
         } else {
           offset_ = value;
@@ -688,6 +771,8 @@ public Builder mergeOffset(com.google.protobuf.Int64Value value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -706,6 +791,8 @@ public Builder clearOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -719,6 +806,8 @@ public com.google.protobuf.Int64Value.Builder getOffsetBuilder() {
       return getOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -730,11 +819,12 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
       if (offsetBuilder_ != null) {
         return offsetBuilder_.getMessageOrBuilder();
       } else {
-        return offset_ == null ?
-            com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
+        return offset_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : offset_;
       }
     }
     /**
+     *
+     *
      * 
      * Ending offset of the flush operation. Rows before this offset(including
      * this offset) will be flushed.
@@ -743,21 +833,24 @@ public com.google.protobuf.Int64ValueOrBuilder getOffsetOrBuilder() {
      * .google.protobuf.Int64Value offset = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> 
+            com.google.protobuf.Int64Value,
+            com.google.protobuf.Int64Value.Builder,
+            com.google.protobuf.Int64ValueOrBuilder>
         getOffsetFieldBuilder() {
       if (offsetBuilder_ == null) {
-        offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
-                getOffset(),
-                getParentForChildren(),
-                isClean());
+        offsetBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Int64Value,
+                com.google.protobuf.Int64Value.Builder,
+                com.google.protobuf.Int64ValueOrBuilder>(
+                getOffset(), getParentForChildren(), isClean());
         offset_ = null;
       }
       return offsetBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -767,12 +860,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.FlushRowsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.FlushRowsRequest)
   private static final com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest();
   }
@@ -781,27 +874,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public FlushRowsRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public FlushRowsRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -816,6 +909,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1beta2.FlushRowsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java
similarity index 58%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java
index 2246e97f5e..e1491363a4 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsRequestOrBuilder.java
@@ -1,53 +1,86 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
-public interface FlushRowsRequestOrBuilder extends
+public interface FlushRowsRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FlushRowsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. The stream that is the target of the flush operation.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The writeStream. */ java.lang.String getWriteStream(); /** + * + * *
    * Required. The stream that is the target of the flush operation.
    * 
* - * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string write_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for writeStream. */ - com.google.protobuf.ByteString - getWriteStreamBytes(); + com.google.protobuf.ByteString getWriteStreamBytes(); /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return Whether the offset field is set. */ boolean hasOffset(); /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
    * 
* * .google.protobuf.Int64Value offset = 2; + * * @return The offset. */ com.google.protobuf.Int64Value getOffset(); /** + * + * *
    * Ending offset of the flush operation. Rows before this offset(including
    * this offset) will be flushed.
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java
similarity index 65%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java
index 7ca2606016..09d0e513e5 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponse.java
@@ -1,60 +1,81 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
+ *
+ *
  * 
  * Respond message for `FlushRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FlushRowsResponse} */ -public final class FlushRowsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FlushRowsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) FlushRowsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FlushRowsResponse.newBuilder() to construct. private FlushRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FlushRowsResponse() { - } + + private FlushRowsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FlushRowsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.Builder.class); } public static final int OFFSET_FIELD_NUMBER = 1; private long offset_ = 0L; /** + * + * *
    * The rows before this offset (including this offset) are flushed.
    * 
* * int64 offset = 1; + * * @return The offset. */ @java.lang.Override @@ -63,6 +84,7 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -74,8 +96,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (offset_ != 0L) { output.writeInt64(1, offset_); } @@ -89,8 +110,7 @@ public int getSerializedSize() { size = 0; if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, offset_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -100,15 +120,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse other = (com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) obj; + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse other = + (com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) obj; - if (getOffset() - != other.getOffset()) return false; + if (getOffset() != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -121,137 +141,143 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Respond message for `FlushRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.FlushRowsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.class, + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,9 +287,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; } @java.lang.Override @@ -282,8 +308,11 @@ public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse result = new com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse result = + new com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -299,38 +328,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.FlushRowsRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) other); } else { super.mergeFrom(other); return this; @@ -338,7 +368,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse.getDefaultInstance()) + return this; if (other.getOffset() != 0L) { setOffset(other.getOffset()); } @@ -368,17 +399,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - offset_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -388,15 +421,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private long offset_ ; + private long offset_; /** + * + * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; + * * @return The offset. */ @java.lang.Override @@ -404,27 +441,33 @@ public long getOffset() { return offset_; } /** + * + * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; + * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The rows before this offset (including this offset) are flushed.
      * 
* * int64 offset = 1; + * * @return This builder for chaining. */ public Builder clearOffset() { @@ -433,9 +476,9 @@ public Builder clearOffset() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -445,12 +488,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) private static final com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse(); } @@ -459,27 +502,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FlushRowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlushRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -494,6 +537,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.FlushRowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java new file mode 100644 index 0000000000..4d03275479 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/FlushRowsResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface FlushRowsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.FlushRowsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The rows before this offset (including this offset) are flushed.
+   * 
+ * + * int64 offset = 1; + * + * @return The offset. + */ + long getOffset(); +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java similarity index 61% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java index 7fb4479760..412310c7a2 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Request message for `GetWriteStreamRequest`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest} */ -public final class GetWriteStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetWriteStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) GetWriteStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetWriteStreamRequest.newBuilder() to construct. private GetWriteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetWriteStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetWriteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the stream to get, in the form of
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +125,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -134,15 +161,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest other = (com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest other = + (com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GetWriteStreamRequest`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,13 +328,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.getDefaultInstance(); } @@ -315,13 +350,17 @@ public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest result = new com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest result = + new com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -332,46 +371,50 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.GetWriteStr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -403,17 +446,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +468,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -448,21 +498,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -470,30 +523,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -503,27 +567,33 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the stream to get, in the form of
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,41 +603,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetWriteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetWriteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,9 +651,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java new file mode 100644 index 0000000000..737f72b512 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/GetWriteStreamRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface GetWriteStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.GetWriteStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the stream to get, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the stream to get, in the form of
+   * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProjectName.java diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java new file mode 100644 index 0000000000..20e1c25c82 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoBufProto.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/protobuf.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public final class ProtoBufProto { + private ProtoBufProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/cloud/bigquery/storage/v1beta2/" + + "protobuf.proto\022%google.cloud.bigquery.st" + + "orage.v1beta2\032 google/protobuf/descripto" + + "r.proto\"I\n\013ProtoSchema\022:\n\020proto_descript" + + "or\030\001 \001(\0132 .google.protobuf.DescriptorPro" + + "to\"$\n\tProtoRows\022\027\n\017serialized_rows\030\001 \003(\014" + + "B\201\001\n)com.google.cloud.bigquery.storage.v" + + "1beta2B\rProtoBufProtoP\001ZCcloud.google.co" + + "m/go/bigquery/storage/apiv1beta2/storage" + + "pb;storagepbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DescriptorProtos.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor, + new java.lang.String[] { + "ProtoDescriptor", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor, + new java.lang.String[] { + "SerializedRows", + }); + com.google.protobuf.DescriptorProtos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java similarity index 68% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java index af9286fe84..4f92ff6d18 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRows.java @@ -1,53 +1,71 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto package com.google.cloud.bigquery.storage.v1beta2; -/** - * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoRows} - */ -public final class ProtoRows extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoRows} */ +public final class ProtoRows extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ProtoRows) ProtoRowsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProtoRows.newBuilder() to construct. private ProtoRows(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ProtoRows() { serializedRows_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProtoRows(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ProtoRows.class, com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ProtoRows.class, + com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder.class); } public static final int SERIALIZED_ROWS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List serializedRows_; /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -55,14 +73,16 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes serialized_rows = 1; + * * @return A list containing the serializedRows. */ @java.lang.Override - public java.util.List - getSerializedRowsList() { + public java.util.List getSerializedRowsList() { return serializedRows_; } /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -70,12 +90,15 @@ protected java.lang.Object newInstance(
    * 
* * repeated bytes serialized_rows = 1; + * * @return The count of serializedRows. */ public int getSerializedRowsCount() { return serializedRows_.size(); } /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -83,6 +106,7 @@ public int getSerializedRowsCount() {
    * 
* * repeated bytes serialized_rows = 1; + * * @param index The index of the element to return. * @return The serializedRows at the given index. */ @@ -91,6 +115,7 @@ public com.google.protobuf.ByteString getSerializedRows(int index) { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -102,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < serializedRows_.size(); i++) { output.writeBytes(1, serializedRows_.get(i)); } @@ -119,8 +143,8 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < serializedRows_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeBytesSizeNoTag(serializedRows_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeBytesSizeNoTag(serializedRows_.get(i)); } size += dataSize; size += 1 * getSerializedRowsList().size(); @@ -133,15 +157,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ProtoRows)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ProtoRows other = (com.google.cloud.bigquery.storage.v1beta2.ProtoRows) obj; + com.google.cloud.bigquery.storage.v1beta2.ProtoRows other = + (com.google.cloud.bigquery.storage.v1beta2.ProtoRows) obj; - if (!getSerializedRowsList() - .equals(other.getSerializedRowsList())) return false; + if (!getSerializedRowsList().equals(other.getSerializedRowsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -163,125 +187,127 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ProtoRows prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoRows} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoRows} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ProtoRows) com.google.cloud.bigquery.storage.v1beta2.ProtoRowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ProtoRows.class, com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ProtoRows.class, + com.google.cloud.bigquery.storage.v1beta2.ProtoRows.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ProtoRows.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -291,9 +317,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoRows_descriptor; } @java.lang.Override @@ -312,14 +338,18 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoRows build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ProtoRows buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ProtoRows result = new com.google.cloud.bigquery.storage.v1beta2.ProtoRows(this); + com.google.cloud.bigquery.storage.v1beta2.ProtoRows result = + new com.google.cloud.bigquery.storage.v1beta2.ProtoRows(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.ProtoRows result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1beta2.ProtoRows result) { if (((bitField0_ & 0x00000001) != 0)) { serializedRows_ = java.util.Collections.unmodifiableList(serializedRows_); bitField0_ = (bitField0_ & ~0x00000001); @@ -335,38 +365,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ProtoRows r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ProtoRows) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ProtoRows)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ProtoRows) other); } else { super.mergeFrom(other); return this; @@ -374,7 +405,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ProtoRows other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ProtoRows.getDefaultInstance()) + return this; if (!other.serializedRows_.isEmpty()) { if (serializedRows_.isEmpty()) { serializedRows_ = other.serializedRows_; @@ -411,18 +443,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.ByteString v = input.readBytes(); - ensureSerializedRowsIsMutable(); - serializedRows_.add(v); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.ByteString v = input.readBytes(); + ensureSerializedRowsIsMutable(); + serializedRows_.add(v); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -432,9 +466,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List serializedRows_ = java.util.Collections.emptyList(); + private java.util.List serializedRows_ = + java.util.Collections.emptyList(); + private void ensureSerializedRowsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { serializedRows_ = new java.util.ArrayList(serializedRows_); @@ -442,6 +479,8 @@ private void ensureSerializedRowsIsMutable() { } } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -449,14 +488,17 @@ private void ensureSerializedRowsIsMutable() {
      * 
* * repeated bytes serialized_rows = 1; + * * @return A list containing the serializedRows. */ - public java.util.List - getSerializedRowsList() { - return ((bitField0_ & 0x00000001) != 0) ? - java.util.Collections.unmodifiableList(serializedRows_) : serializedRows_; + public java.util.List getSerializedRowsList() { + return ((bitField0_ & 0x00000001) != 0) + ? java.util.Collections.unmodifiableList(serializedRows_) + : serializedRows_; } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -464,12 +506,15 @@ private void ensureSerializedRowsIsMutable() {
      * 
* * repeated bytes serialized_rows = 1; + * * @return The count of serializedRows. */ public int getSerializedRowsCount() { return serializedRows_.size(); } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -477,6 +522,7 @@ public int getSerializedRowsCount() {
      * 
* * repeated bytes serialized_rows = 1; + * * @param index The index of the element to return. * @return The serializedRows at the given index. */ @@ -484,6 +530,8 @@ public com.google.protobuf.ByteString getSerializedRows(int index) { return serializedRows_.get(index); } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -491,19 +539,23 @@ public com.google.protobuf.ByteString getSerializedRows(int index) {
      * 
* * repeated bytes serialized_rows = 1; + * * @param index The index to set the value at. * @param value The serializedRows to set. * @return This builder for chaining. */ - public Builder setSerializedRows( - int index, com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSerializedRows(int index, com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } ensureSerializedRowsIsMutable(); serializedRows_.set(index, value); onChanged(); return this; } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -511,17 +563,22 @@ public Builder setSerializedRows(
      * 
* * repeated bytes serialized_rows = 1; + * * @param value The serializedRows to add. * @return This builder for chaining. */ public Builder addSerializedRows(com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + if (value == null) { + throw new NullPointerException(); + } ensureSerializedRowsIsMutable(); serializedRows_.add(value); onChanged(); return this; } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -529,18 +586,20 @@ public Builder addSerializedRows(com.google.protobuf.ByteString value) {
      * 
* * repeated bytes serialized_rows = 1; + * * @param values The serializedRows to add. * @return This builder for chaining. */ public Builder addAllSerializedRows( java.lang.Iterable values) { ensureSerializedRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serializedRows_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serializedRows_); onChanged(); return this; } /** + * + * *
      * A sequence of rows serialized as a Protocol Buffer.
      * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -548,6 +607,7 @@ public Builder addAllSerializedRows(
      * 
* * repeated bytes serialized_rows = 1; + * * @return This builder for chaining. */ public Builder clearSerializedRows() { @@ -556,9 +616,9 @@ public Builder clearSerializedRows() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -568,12 +628,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ProtoRows) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ProtoRows) private static final com.google.cloud.bigquery.storage.v1beta2.ProtoRows DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ProtoRows(); } @@ -582,27 +642,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ProtoRows getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtoRows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProtoRows parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -617,6 +677,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ProtoRows getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java index 9c130fe5f8..1381178f75 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoRowsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface ProtoRowsOrBuilder extends +public interface ProtoRowsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ProtoRows) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -15,10 +33,13 @@ public interface ProtoRowsOrBuilder extends
    * 
* * repeated bytes serialized_rows = 1; + * * @return A list containing the serializedRows. */ java.util.List getSerializedRowsList(); /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -26,10 +47,13 @@ public interface ProtoRowsOrBuilder extends
    * 
* * repeated bytes serialized_rows = 1; + * * @return The count of serializedRows. */ int getSerializedRowsCount(); /** + * + * *
    * A sequence of rows serialized as a Protocol Buffer.
    * See https://developers.google.com/protocol-buffers/docs/overview for more
@@ -37,6 +61,7 @@ public interface ProtoRowsOrBuilder extends
    * 
* * repeated bytes serialized_rows = 1; + * * @param index The index of the element to return. * @return The serializedRows at the given index. */ diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java similarity index 69% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java index 8ffc47a2a6..9d3ec977ab 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchema.java @@ -1,55 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * ProtoSchema describes the schema of the serialized protocol buffer data rows.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoSchema} */ -public final class ProtoSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ProtoSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ProtoSchema) ProtoSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ProtoSchema.newBuilder() to construct. private ProtoSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ProtoSchema() { - } + + private ProtoSchema() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ProtoSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.class, com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.class, + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder.class); } public static final int PROTO_DESCRIPTOR_FIELD_NUMBER = 1; private com.google.protobuf.DescriptorProtos.DescriptorProto protoDescriptor_; /** + * + * *
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
@@ -57,6 +77,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return Whether the protoDescriptor field is set. */ @java.lang.Override @@ -64,6 +85,8 @@ public boolean hasProtoDescriptor() { return protoDescriptor_ != null; } /** + * + * *
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
@@ -71,13 +94,18 @@ public boolean hasProtoDescriptor() {
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return The protoDescriptor. */ @java.lang.Override public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor() { - return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_; + return protoDescriptor_ == null + ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() + : protoDescriptor_; } /** + * + * *
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
@@ -87,11 +115,15 @@ public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor()
    * .google.protobuf.DescriptorProto proto_descriptor = 1;
    */
   @java.lang.Override
-  public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtoDescriptorOrBuilder() {
-    return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_;
+  public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder
+      getProtoDescriptorOrBuilder() {
+    return protoDescriptor_ == null
+        ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()
+        : protoDescriptor_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -109,8 +141,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (protoDescriptor_ != null) {
       output.writeMessage(1, getProtoDescriptor());
     }
@@ -124,8 +155,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (protoDescriptor_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getProtoDescriptor());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProtoDescriptor());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -135,17 +165,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ProtoSchema)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1beta2.ProtoSchema other = (com.google.cloud.bigquery.storage.v1beta2.ProtoSchema) obj;
+    com.google.cloud.bigquery.storage.v1beta2.ProtoSchema other =
+        (com.google.cloud.bigquery.storage.v1beta2.ProtoSchema) obj;
 
     if (hasProtoDescriptor() != other.hasProtoDescriptor()) return false;
     if (hasProtoDescriptor()) {
-      if (!getProtoDescriptor()
-          .equals(other.getProtoDescriptor())) return false;
+      if (!getProtoDescriptor().equals(other.getProtoDescriptor())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -168,129 +198,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ProtoSchema prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.storage.v1beta2.ProtoSchema prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * ProtoSchema describes the schema of the serialized protocol buffer data rows.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ProtoSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ProtoSchema) com.google.cloud.bigquery.storage.v1beta2.ProtoSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.class, com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.class, + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -304,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ProtoSchema_descriptor; } @java.lang.Override @@ -325,8 +362,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ProtoSchema result = new com.google.cloud.bigquery.storage.v1beta2.ProtoSchema(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.ProtoSchema result = + new com.google.cloud.bigquery.storage.v1beta2.ProtoSchema(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -334,9 +374,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema buildPartial() { private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ProtoSchema result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.protoDescriptor_ = protoDescriptorBuilder_ == null - ? protoDescriptor_ - : protoDescriptorBuilder_.build(); + result.protoDescriptor_ = + protoDescriptorBuilder_ == null ? protoDescriptor_ : protoDescriptorBuilder_.build(); } } @@ -344,38 +383,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ProtoSchema public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ProtoSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ProtoSchema)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ProtoSchema) other); } else { super.mergeFrom(other); return this; @@ -383,7 +423,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ProtoSchema other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ProtoSchema.getDefaultInstance()) + return this; if (other.hasProtoDescriptor()) { mergeProtoDescriptor(other.getProtoDescriptor()); } @@ -418,19 +459,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getProtoDescriptorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getProtoDescriptorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -440,12 +481,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.DescriptorProtos.DescriptorProto protoDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> protoDescriptorBuilder_; + com.google.protobuf.DescriptorProtos.DescriptorProto, + com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, + com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> + protoDescriptorBuilder_; /** + * + * *
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -453,12 +500,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return Whether the protoDescriptor field is set. */ public boolean hasProtoDescriptor() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -466,16 +516,21 @@ public boolean hasProtoDescriptor() {
      * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return The protoDescriptor. */ public com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor() { if (protoDescriptorBuilder_ == null) { - return protoDescriptor_ == null ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_; + return protoDescriptor_ == null + ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() + : protoDescriptor_; } else { return protoDescriptorBuilder_.getMessage(); } } /** + * + * *
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -498,6 +553,8 @@ public Builder setProtoDescriptor(com.google.protobuf.DescriptorProtos.Descripto
       return this;
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -518,6 +575,8 @@ public Builder setProtoDescriptor(
       return this;
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -526,11 +585,13 @@ public Builder setProtoDescriptor(
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public Builder mergeProtoDescriptor(com.google.protobuf.DescriptorProtos.DescriptorProto value) {
+    public Builder mergeProtoDescriptor(
+        com.google.protobuf.DescriptorProtos.DescriptorProto value) {
       if (protoDescriptorBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          protoDescriptor_ != null &&
-          protoDescriptor_ != com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && protoDescriptor_ != null
+            && protoDescriptor_
+                != com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()) {
           getProtoDescriptorBuilder().mergeFrom(value);
         } else {
           protoDescriptor_ = value;
@@ -543,6 +604,8 @@ public Builder mergeProtoDescriptor(com.google.protobuf.DescriptorProtos.Descrip
       return this;
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -562,6 +625,8 @@ public Builder clearProtoDescriptor() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -570,12 +635,15 @@ public Builder clearProtoDescriptor() {
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getProtoDescriptorBuilder() {
+    public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder
+        getProtoDescriptorBuilder() {
       bitField0_ |= 0x00000001;
       onChanged();
       return getProtoDescriptorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -584,15 +652,19 @@ public com.google.protobuf.DescriptorProtos.DescriptorProto.Builder getProtoDesc
      *
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
-    public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtoDescriptorOrBuilder() {
+    public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder
+        getProtoDescriptorOrBuilder() {
       if (protoDescriptorBuilder_ != null) {
         return protoDescriptorBuilder_.getMessageOrBuilder();
       } else {
-        return protoDescriptor_ == null ?
-            com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance() : protoDescriptor_;
+        return protoDescriptor_ == null
+            ? com.google.protobuf.DescriptorProtos.DescriptorProto.getDefaultInstance()
+            : protoDescriptor_;
       }
     }
     /**
+     *
+     *
      * 
      * Descriptor for input message. The descriptor has to be self contained,
      * including all the nested types, excepted for proto buffer well known types
@@ -602,21 +674,24 @@ public com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder getProtoDes
      * .google.protobuf.DescriptorProto proto_descriptor = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder> 
+            com.google.protobuf.DescriptorProtos.DescriptorProto,
+            com.google.protobuf.DescriptorProtos.DescriptorProto.Builder,
+            com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>
         getProtoDescriptorFieldBuilder() {
       if (protoDescriptorBuilder_ == null) {
-        protoDescriptorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.DescriptorProtos.DescriptorProto, com.google.protobuf.DescriptorProtos.DescriptorProto.Builder, com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>(
-                getProtoDescriptor(),
-                getParentForChildren(),
-                isClean());
+        protoDescriptorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.DescriptorProtos.DescriptorProto,
+                com.google.protobuf.DescriptorProtos.DescriptorProto.Builder,
+                com.google.protobuf.DescriptorProtos.DescriptorProtoOrBuilder>(
+                getProtoDescriptor(), getParentForChildren(), isClean());
         protoDescriptor_ = null;
       }
       return protoDescriptorBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -626,12 +701,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ProtoSchema)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ProtoSchema)
   private static final com.google.cloud.bigquery.storage.v1beta2.ProtoSchema DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ProtoSchema();
   }
@@ -640,27 +715,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ProtoSchema parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ProtoSchema parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -675,6 +750,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.bigquery.storage.v1beta2.ProtoSchema getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java
index 9ad82e4562..bc76d4a88e 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ProtoSchemaOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/protobuf.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
-public interface ProtoSchemaOrBuilder extends
+public interface ProtoSchemaOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ProtoSchema)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
@@ -15,10 +33,13 @@ public interface ProtoSchemaOrBuilder extends
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return Whether the protoDescriptor field is set. */ boolean hasProtoDescriptor(); /** + * + * *
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
@@ -26,10 +47,13 @@ public interface ProtoSchemaOrBuilder extends
    * 
* * .google.protobuf.DescriptorProto proto_descriptor = 1; + * * @return The protoDescriptor. */ com.google.protobuf.DescriptorProtos.DescriptorProto getProtoDescriptor(); /** + * + * *
    * Descriptor for input message. The descriptor has to be self contained,
    * including all the nested types, excepted for proto buffer well known types
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java
similarity index 64%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java
index 56bf839134..bcd7f664c5 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequest.java
@@ -1,62 +1,87 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
+ *
+ *
  * 
  * Request message for `ReadRows`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadRowsRequest} */ -public final class ReadRowsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReadRowsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) ReadRowsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadRowsRequest.newBuilder() to construct. private ReadRowsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReadRowsRequest() { readStream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadRowsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.class, + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.Builder.class); } public static final int READ_STREAM_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object readStream_ = ""; /** + * + * *
    * Required. Stream to read rows from.
    * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The readStream. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getReadStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readStream_ = s; return s; } } /** + * + * *
    * Required. Stream to read rows from.
    * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for readStream. */ @java.lang.Override - public com.google.protobuf.ByteString - getReadStreamBytes() { + public com.google.protobuf.ByteString getReadStreamBytes() { java.lang.Object ref = readStream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); readStream_ = b; return b; } else { @@ -98,6 +125,8 @@ public java.lang.String getReadStream() { public static final int OFFSET_FIELD_NUMBER = 2; private long offset_ = 0L; /** + * + * *
    * The offset requested must be less than the last row read from Read.
    * Requesting a larger offset is undefined. If not specified, start reading
@@ -105,6 +134,7 @@ public java.lang.String getReadStream() {
    * 
* * int64 offset = 2; + * * @return The offset. */ @java.lang.Override @@ -113,6 +143,7 @@ public long getOffset() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -124,8 +155,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readStream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, readStream_); } @@ -145,8 +175,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, readStream_); } if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, offset_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, offset_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -156,17 +185,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest other = (com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest other = + (com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) obj; - if (!getReadStream() - .equals(other.getReadStream())) return false; - if (getOffset() - != other.getOffset()) return false; + if (!getReadStream().equals(other.getReadStream())) return false; + if (getOffset() != other.getOffset()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,137 +209,143 @@ public int hashCode() { hash = (37 * hash) + READ_STREAM_FIELD_NUMBER; hash = (53 * hash) + getReadStream().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `ReadRows`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadRowsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.class, com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.class, + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; } @java.lang.Override @@ -343,8 +377,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest result = new com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest result = + new com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -363,38 +400,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadRowsReq public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) other); } else { super.mergeFrom(other); return this; @@ -402,7 +440,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest.getDefaultInstance()) + return this; if (!other.getReadStream().isEmpty()) { readStream_ = other.readStream_; bitField0_ |= 0x00000001; @@ -437,22 +476,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - readStream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - offset_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + readStream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,22 +504,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object readStream_ = ""; /** + * + * *
      * Required. Stream to read rows from.
      * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The readStream. */ public java.lang.String getReadStream() { java.lang.Object ref = readStream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); readStream_ = s; return s; @@ -486,20 +533,23 @@ public java.lang.String getReadStream() { } } /** + * + * *
      * Required. Stream to read rows from.
      * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for readStream. */ - public com.google.protobuf.ByteString - getReadStreamBytes() { + public com.google.protobuf.ByteString getReadStreamBytes() { java.lang.Object ref = readStream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); readStream_ = b; return b; } else { @@ -507,28 +557,39 @@ public java.lang.String getReadStream() { } } /** + * + * *
      * Required. Stream to read rows from.
      * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The readStream to set. * @return This builder for chaining. */ - public Builder setReadStream( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReadStream(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } readStream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Stream to read rows from.
      * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearReadStream() { @@ -538,17 +599,23 @@ public Builder clearReadStream() { return this; } /** + * + * *
      * Required. Stream to read rows from.
      * 
* - * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for readStream to set. * @return This builder for chaining. */ - public Builder setReadStreamBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReadStreamBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); readStream_ = value; bitField0_ |= 0x00000001; @@ -556,8 +623,10 @@ public Builder setReadStreamBytes( return this; } - private long offset_ ; + private long offset_; /** + * + * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -565,6 +634,7 @@ public Builder setReadStreamBytes(
      * 
* * int64 offset = 2; + * * @return The offset. */ @java.lang.Override @@ -572,6 +642,8 @@ public long getOffset() { return offset_; } /** + * + * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -579,17 +651,20 @@ public long getOffset() {
      * 
* * int64 offset = 2; + * * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { - + offset_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The offset requested must be less than the last row read from Read.
      * Requesting a larger offset is undefined. If not specified, start reading
@@ -597,6 +672,7 @@ public Builder setOffset(long value) {
      * 
* * int64 offset = 2; + * * @return This builder for chaining. */ public Builder clearOffset() { @@ -605,9 +681,9 @@ public Builder clearOffset() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +693,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) private static final com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest(); } @@ -631,27 +707,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadRowsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRowsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,6 +742,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ReadRowsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java new file mode 100644 index 0000000000..614fa22b13 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface ReadRowsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadRowsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Stream to read rows from.
+   * 
+ * + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The readStream. + */ + java.lang.String getReadStream(); + /** + * + * + *
+   * Required. Stream to read rows from.
+   * 
+ * + * + * string read_stream = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for readStream. + */ + com.google.protobuf.ByteString getReadStreamBytes(); + + /** + * + * + *
+   * The offset requested must be less than the last row read from Read.
+   * Requesting a larger offset is undefined. If not specified, start reading
+   * from offset zero.
+   * 
+ * + * int64 offset = 2; + * + * @return The offset. + */ + long getOffset(); +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java similarity index 68% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java index 57bf5c493d..69a977cecd 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Response from calling `ReadRows` may include row data, progress and
  * throttling information.
@@ -11,52 +28,56 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadRowsResponse}
  */
-public final class ReadRowsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReadRowsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadRowsResponse)
     ReadRowsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReadRowsResponse.newBuilder() to construct.
   private ReadRowsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ReadRowsResponse() {
-  }
+
+  private ReadRowsResponse() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReadRowsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+        .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+        .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.Builder.class);
+            com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.class,
+            com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.Builder.class);
   }
 
   private int rowsCase_ = 0;
   private java.lang.Object rows_;
+
   public enum RowsCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AVRO_ROWS(3),
     ARROW_RECORD_BATCH(4),
     ROWS_NOT_SET(0);
     private final int value;
+
     private RowsCase(int value) {
       this.value = value;
     }
@@ -72,32 +93,38 @@ public static RowsCase valueOf(int value) {
 
     public static RowsCase forNumber(int value) {
       switch (value) {
-        case 3: return AVRO_ROWS;
-        case 4: return ARROW_RECORD_BATCH;
-        case 0: return ROWS_NOT_SET;
-        default: return null;
+        case 3:
+          return AVRO_ROWS;
+        case 4:
+          return ARROW_RECORD_BATCH;
+        case 0:
+          return ROWS_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RowsCase
-  getRowsCase() {
-    return RowsCase.forNumber(
-        rowsCase_);
+  public RowsCase getRowsCase() {
+    return RowsCase.forNumber(rowsCase_);
   }
 
   private int schemaCase_ = 0;
   private java.lang.Object schema_;
+
   public enum SchemaCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     AVRO_SCHEMA(7),
     ARROW_SCHEMA(8),
     SCHEMA_NOT_SET(0);
     private final int value;
+
     private SchemaCase(int value) {
       this.value = value;
     }
@@ -113,30 +140,36 @@ public static SchemaCase valueOf(int value) {
 
     public static SchemaCase forNumber(int value) {
       switch (value) {
-        case 7: return AVRO_SCHEMA;
-        case 8: return ARROW_SCHEMA;
-        case 0: return SCHEMA_NOT_SET;
-        default: return null;
+        case 7:
+          return AVRO_SCHEMA;
+        case 8:
+          return ARROW_SCHEMA;
+        case 0:
+          return SCHEMA_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public SchemaCase
-  getSchemaCase() {
-    return SchemaCase.forNumber(
-        schemaCase_);
+  public SchemaCase getSchemaCase() {
+    return SchemaCase.forNumber(schemaCase_);
   }
 
   public static final int AVRO_ROWS_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; + * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -144,21 +177,26 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** + * + * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; + * * @return The avroRows. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroRows getAvroRows() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance(); } /** + * + * *
    * Serialized row data in AVRO format.
    * 
@@ -168,18 +206,21 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRows getAvroRows() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder getAvroRowsOrBuilder() { if (rowsCase_ == 3) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_; } return com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance(); } public static final int ARROW_RECORD_BATCH_FIELD_NUMBER = 4; /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; + * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -187,21 +228,26 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; + * * @return The arrowRecordBatch. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getArrowRecordBatch() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance(); } /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
@@ -209,9 +255,10 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getArrowRecord * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder + getArrowRecordBatchOrBuilder() { if (rowsCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance(); } @@ -219,11 +266,14 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder getAr public static final int ROW_COUNT_FIELD_NUMBER = 6; private long rowCount_ = 0L; /** + * + * *
    * Number of serialized rows in the rows block.
    * 
* * int64 row_count = 6; + * * @return The rowCount. */ @java.lang.Override @@ -234,11 +284,14 @@ public long getRowCount() { public static final int STATS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta2.StreamStats stats_; /** + * + * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; + * * @return Whether the stats field is set. */ @java.lang.Override @@ -246,18 +299,25 @@ public boolean hasStats() { return stats_ != null; } /** + * + * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; + * * @return The stats. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StreamStats getStats() { - return stats_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() : stats_; + return stats_ == null + ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() + : stats_; } /** + * + * *
    * Statistics for the stream.
    * 
@@ -266,18 +326,23 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats getStats() { */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder getStatsOrBuilder() { - return stats_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() : stats_; + return stats_ == null + ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() + : stats_; } public static final int THROTTLE_STATE_FIELD_NUMBER = 5; private com.google.cloud.bigquery.storage.v1beta2.ThrottleState throttleState_; /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; + * * @return Whether the throttleState field is set. */ @java.lang.Override @@ -285,19 +350,26 @@ public boolean hasThrottleState() { return throttleState_ != null; } /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; + * * @return The throttleState. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ThrottleState getThrottleState() { - return throttleState_ == null ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() : throttleState_; + return throttleState_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() + : throttleState_; } /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
@@ -306,17 +378,25 @@ public com.google.cloud.bigquery.storage.v1beta2.ThrottleState getThrottleState(
    * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder getThrottleStateOrBuilder() {
-    return throttleState_ == null ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() : throttleState_;
+  public com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder
+      getThrottleStateOrBuilder() {
+    return throttleState_ == null
+        ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()
+        : throttleState_;
   }
 
   public static final int AVRO_SCHEMA_FIELD_NUMBER = 7;
   /**
+   *
+   *
    * 
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -324,42 +404,56 @@ public boolean hasAvroSchema() { return schemaCase_ == 7; } /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema() { if (schemaCase_ == 7) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { if (schemaCase_ == 7) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } public static final int ARROW_SCHEMA_FIELD_NUMBER = 8; /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -367,36 +461,46 @@ public boolean hasArrowSchema() { return schemaCase_ == 8; } /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema() { if (schemaCase_ == 8) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if (schemaCase_ == 8) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -408,8 +512,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (stats_ != null) { output.writeMessage(2, getStats()); } @@ -441,32 +544,33 @@ public int getSerializedSize() { size = 0; if (stats_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStats()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStats()); } if (rowsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_); } if (rowsCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_); } if (throttleState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getThrottleState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getThrottleState()); } if (rowCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, rowCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, rowCount_); } if (schemaCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_); } if (schemaCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -476,34 +580,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse other = (com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse other = + (com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) obj; - if (getRowCount() - != other.getRowCount()) return false; + if (getRowCount() != other.getRowCount()) return false; if (hasStats() != other.hasStats()) return false; if (hasStats()) { - if (!getStats() - .equals(other.getStats())) return false; + if (!getStats().equals(other.getStats())) return false; } if (hasThrottleState() != other.hasThrottleState()) return false; if (hasThrottleState()) { - if (!getThrottleState() - .equals(other.getThrottleState())) return false; + if (!getThrottleState().equals(other.getThrottleState())) return false; } if (!getRowsCase().equals(other.getRowsCase())) return false; switch (rowsCase_) { case 3: - if (!getAvroRows() - .equals(other.getAvroRows())) return false; + if (!getAvroRows().equals(other.getAvroRows())) return false; break; case 4: - if (!getArrowRecordBatch() - .equals(other.getArrowRecordBatch())) return false; + if (!getArrowRecordBatch().equals(other.getArrowRecordBatch())) return false; break; case 0: default: @@ -511,12 +611,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 7: - if (!getAvroSchema() - .equals(other.getAvroSchema())) return false; + if (!getAvroSchema().equals(other.getAvroSchema())) return false; break; case 8: - if (!getArrowSchema() - .equals(other.getArrowSchema())) return false; + if (!getArrowSchema().equals(other.getArrowSchema())) return false; break; case 0: default: @@ -533,8 +631,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getRowCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRowCount()); if (hasStats()) { hash = (37 * hash) + STATS_FIELD_NUMBER; hash = (53 * hash) + getStats().hashCode(); @@ -573,96 +670,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response from calling `ReadRows` may include row data, progress and
    * throttling information.
@@ -670,33 +775,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadRowsResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadRowsResponse)
       com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.class, com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.class,
+              com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -732,9 +836,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -753,8 +857,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse buildPartial() {
-      com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse result = new com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse result =
+          new com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -766,36 +873,30 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRes
         result.rowCount_ = rowCount_;
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.stats_ = statsBuilder_ == null
-            ? stats_
-            : statsBuilder_.build();
+        result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
-        result.throttleState_ = throttleStateBuilder_ == null
-            ? throttleState_
-            : throttleStateBuilder_.build();
+        result.throttleState_ =
+            throttleStateBuilder_ == null ? throttleState_ : throttleStateBuilder_.build();
       }
     }
 
-    private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse result) {
+    private void buildPartialOneofs(
+        com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse result) {
       result.rowsCase_ = rowsCase_;
       result.rows_ = this.rows_;
-      if (rowsCase_ == 3 &&
-          avroRowsBuilder_ != null) {
+      if (rowsCase_ == 3 && avroRowsBuilder_ != null) {
         result.rows_ = avroRowsBuilder_.build();
       }
-      if (rowsCase_ == 4 &&
-          arrowRecordBatchBuilder_ != null) {
+      if (rowsCase_ == 4 && arrowRecordBatchBuilder_ != null) {
         result.rows_ = arrowRecordBatchBuilder_.build();
       }
       result.schemaCase_ = schemaCase_;
       result.schema_ = this.schema_;
-      if (schemaCase_ == 7 &&
-          avroSchemaBuilder_ != null) {
+      if (schemaCase_ == 7 && avroSchemaBuilder_ != null) {
         result.schema_ = avroSchemaBuilder_.build();
       }
-      if (schemaCase_ == 8 &&
-          arrowSchemaBuilder_ != null) {
+      if (schemaCase_ == 8 && arrowSchemaBuilder_ != null) {
         result.schema_ = arrowSchemaBuilder_.build();
       }
     }
@@ -804,38 +905,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.ReadRo
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -843,7 +945,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse other) {
-      if (other == com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse.getDefaultInstance())
+        return this;
       if (other.getRowCount() != 0L) {
         setRowCount(other.getRowCount());
       }
@@ -854,30 +957,36 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadRowsRespo
         mergeThrottleState(other.getThrottleState());
       }
       switch (other.getRowsCase()) {
-        case AVRO_ROWS: {
-          mergeAvroRows(other.getAvroRows());
-          break;
-        }
-        case ARROW_RECORD_BATCH: {
-          mergeArrowRecordBatch(other.getArrowRecordBatch());
-          break;
-        }
-        case ROWS_NOT_SET: {
-          break;
-        }
+        case AVRO_ROWS:
+          {
+            mergeAvroRows(other.getAvroRows());
+            break;
+          }
+        case ARROW_RECORD_BATCH:
+          {
+            mergeArrowRecordBatch(other.getArrowRecordBatch());
+            break;
+          }
+        case ROWS_NOT_SET:
+          {
+            break;
+          }
       }
       switch (other.getSchemaCase()) {
-        case AVRO_SCHEMA: {
-          mergeAvroSchema(other.getAvroSchema());
-          break;
-        }
-        case ARROW_SCHEMA: {
-          mergeArrowSchema(other.getArrowSchema());
-          break;
-        }
-        case SCHEMA_NOT_SET: {
-          break;
-        }
+        case AVRO_SCHEMA:
+          {
+            mergeAvroSchema(other.getAvroSchema());
+            break;
+          }
+        case ARROW_SCHEMA:
+          {
+            mergeArrowSchema(other.getArrowSchema());
+            break;
+          }
+        case SCHEMA_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -905,59 +1014,56 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 18: {
-              input.readMessage(
-                  getStatsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getAvroRowsFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              rowsCase_ = 3;
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getArrowRecordBatchFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              rowsCase_ = 4;
-              break;
-            } // case 34
-            case 42: {
-              input.readMessage(
-                  getThrottleStateFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 48: {
-              rowCount_ = input.readInt64();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 48
-            case 58: {
-              input.readMessage(
-                  getAvroSchemaFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              schemaCase_ = 7;
-              break;
-            } // case 58
-            case 66: {
-              input.readMessage(
-                  getArrowSchemaFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              schemaCase_ = 8;
-              break;
-            } // case 66
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 18:
+              {
+                input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getAvroRowsFieldBuilder().getBuilder(), extensionRegistry);
+                rowsCase_ = 3;
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(
+                    getArrowRecordBatchFieldBuilder().getBuilder(), extensionRegistry);
+                rowsCase_ = 4;
+                break;
+              } // case 34
+            case 42:
+              {
+                input.readMessage(getThrottleStateFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 48:
+              {
+                rowCount_ = input.readInt64();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 48
+            case 58:
+              {
+                input.readMessage(getAvroSchemaFieldBuilder().getBuilder(), extensionRegistry);
+                schemaCase_ = 7;
+                break;
+              } // case 58
+            case 66:
+              {
+                input.readMessage(getArrowSchemaFieldBuilder().getBuilder(), extensionRegistry);
+                schemaCase_ = 8;
+                break;
+              } // case 66
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -967,12 +1073,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int rowsCase_ = 0;
     private java.lang.Object rows_;
-    public RowsCase
-        getRowsCase() {
-      return RowsCase.forNumber(
-          rowsCase_);
+
+    public RowsCase getRowsCase() {
+      return RowsCase.forNumber(rowsCase_);
     }
 
     public Builder clearRows() {
@@ -984,10 +1090,9 @@ public Builder clearRows() {
 
     private int schemaCase_ = 0;
     private java.lang.Object schema_;
-    public SchemaCase
-        getSchemaCase() {
-      return SchemaCase.forNumber(
-          schemaCase_);
+
+    public SchemaCase getSchemaCase() {
+      return SchemaCase.forNumber(schemaCase_);
     }
 
     public Builder clearSchema() {
@@ -1000,13 +1105,19 @@ public Builder clearSchema() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.AvroRows, com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder> avroRowsBuilder_;
+            com.google.cloud.bigquery.storage.v1beta2.AvroRows,
+            com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder>
+        avroRowsBuilder_;
     /**
+     *
+     *
      * 
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; + * * @return Whether the avroRows field is set. */ @java.lang.Override @@ -1014,11 +1125,14 @@ public boolean hasAvroRows() { return rowsCase_ == 3; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; + * * @return The avroRows. */ @java.lang.Override @@ -1036,6 +1150,8 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRows getAvroRows() { } } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1056,6 +1172,8 @@ public Builder setAvroRows(com.google.cloud.bigquery.storage.v1beta2.AvroRows va return this; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1074,6 +1192,8 @@ public Builder setAvroRows( return this; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1082,10 +1202,13 @@ public Builder setAvroRows( */ public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1beta2.AvroRows value) { if (avroRowsBuilder_ == null) { - if (rowsCase_ == 3 && - rows_ != com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance()) { - rows_ = com.google.cloud.bigquery.storage.v1beta2.AvroRows.newBuilder((com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_) - .mergeFrom(value).buildPartial(); + if (rowsCase_ == 3 + && rows_ != com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance()) { + rows_ = + com.google.cloud.bigquery.storage.v1beta2.AvroRows.newBuilder( + (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_) + .mergeFrom(value) + .buildPartial(); } else { rows_ = value; } @@ -1101,6 +1224,8 @@ public Builder mergeAvroRows(com.google.cloud.bigquery.storage.v1beta2.AvroRows return this; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1124,6 +1249,8 @@ public Builder clearAvroRows() { return this; } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1134,6 +1261,8 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder getAvroRowsBui return getAvroRowsFieldBuilder().getBuilder(); } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1152,6 +1281,8 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder getAvroRowsOr } } /** + * + * *
      * Serialized row data in AVRO format.
      * 
@@ -1159,14 +1290,19 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder getAvroRowsOr * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroRows, com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.AvroRows, + com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder, + com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder> getAvroRowsFieldBuilder() { if (avroRowsBuilder_ == null) { if (!(rowsCase_ == 3)) { rows_ = com.google.cloud.bigquery.storage.v1beta2.AvroRows.getDefaultInstance(); } - avroRowsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroRows, com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder>( + avroRowsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.AvroRows, + com.google.cloud.bigquery.storage.v1beta2.AvroRows.Builder, + com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.AvroRows) rows_, getParentForChildren(), isClean()); @@ -1178,13 +1314,19 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder getAvroRowsOr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder> arrowRecordBatchBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder> + arrowRecordBatchBuilder_; /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; + * * @return Whether the arrowRecordBatch field is set. */ @java.lang.Override @@ -1192,11 +1334,14 @@ public boolean hasArrowRecordBatch() { return rowsCase_ == 4; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; + * * @return The arrowRecordBatch. */ @java.lang.Override @@ -1214,13 +1359,16 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getArrowRecord } } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ - public Builder setArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch value) { + public Builder setArrowRecordBatch( + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1234,6 +1382,8 @@ public Builder setArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta2.Arr return this; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1252,18 +1402,26 @@ public Builder setArrowRecordBatch( return this; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ - public Builder mergeArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch value) { + public Builder mergeArrowRecordBatch( + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch value) { if (arrowRecordBatchBuilder_ == null) { - if (rowsCase_ == 4 && - rows_ != com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance()) { - rows_ = com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.newBuilder((com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_) - .mergeFrom(value).buildPartial(); + if (rowsCase_ == 4 + && rows_ + != com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch + .getDefaultInstance()) { + rows_ = + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.newBuilder( + (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_) + .mergeFrom(value) + .buildPartial(); } else { rows_ = value; } @@ -1279,6 +1437,8 @@ public Builder mergeArrowRecordBatch(com.google.cloud.bigquery.storage.v1beta2.A return this; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1302,16 +1462,21 @@ public Builder clearArrowRecordBatch() { return this; } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ - public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder getArrowRecordBatchBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder + getArrowRecordBatchBuilder() { return getArrowRecordBatchFieldBuilder().getBuilder(); } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1319,7 +1484,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder getArr * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder + getArrowRecordBatchOrBuilder() { if ((rowsCase_ == 4) && (arrowRecordBatchBuilder_ != null)) { return arrowRecordBatchBuilder_.getMessageOrBuilder(); } else { @@ -1330,6 +1496,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder getAr } } /** + * + * *
      * Serialized row data in Arrow RecordBatch format.
      * 
@@ -1337,14 +1505,19 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder getAr * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder> getArrowRecordBatchFieldBuilder() { if (arrowRecordBatchBuilder_ == null) { if (!(rowsCase_ == 4)) { rows_ = com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.getDefaultInstance(); } - arrowRecordBatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder>( + arrowRecordBatchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch, + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch) rows_, getParentForChildren(), isClean()); @@ -1355,13 +1528,16 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder getAr return arrowRecordBatchBuilder_; } - private long rowCount_ ; + private long rowCount_; /** + * + * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; + * * @return The rowCount. */ @java.lang.Override @@ -1369,27 +1545,33 @@ public long getRowCount() { return rowCount_; } /** + * + * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; + * * @param value The rowCount to set. * @return This builder for chaining. */ public Builder setRowCount(long value) { - + rowCount_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Number of serialized rows in the rows block.
      * 
* * int64 row_count = 6; + * * @return This builder for chaining. */ public Builder clearRowCount() { @@ -1401,34 +1583,47 @@ public Builder clearRowCount() { private com.google.cloud.bigquery.storage.v1beta2.StreamStats stats_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder> statsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.StreamStats, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, + com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder> + statsBuilder_; /** + * + * *
      * Statistics for the stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; + * * @return Whether the stats field is set. */ public boolean hasStats() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Statistics for the stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; + * * @return The stats. */ public com.google.cloud.bigquery.storage.v1beta2.StreamStats getStats() { if (statsBuilder_ == null) { - return stats_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() : stats_; + return stats_ == null + ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() + : stats_; } else { return statsBuilder_.getMessage(); } } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1449,6 +1644,8 @@ public Builder setStats(com.google.cloud.bigquery.storage.v1beta2.StreamStats va return this; } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1467,6 +1664,8 @@ public Builder setStats( return this; } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1475,9 +1674,10 @@ public Builder setStats( */ public Builder mergeStats(com.google.cloud.bigquery.storage.v1beta2.StreamStats value) { if (statsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - stats_ != null && - stats_ != com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && stats_ != null + && stats_ + != com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance()) { getStatsBuilder().mergeFrom(value); } else { stats_ = value; @@ -1490,6 +1690,8 @@ public Builder mergeStats(com.google.cloud.bigquery.storage.v1beta2.StreamStats return this; } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1507,6 +1709,8 @@ public Builder clearStats() { return this; } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1519,6 +1723,8 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder getStatsBui return getStatsFieldBuilder().getBuilder(); } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1529,11 +1735,14 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder getStatsOr if (statsBuilder_ != null) { return statsBuilder_.getMessageOrBuilder(); } else { - return stats_ == null ? - com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() : stats_; + return stats_ == null + ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance() + : stats_; } } /** + * + * *
      * Statistics for the stream.
      * 
@@ -1541,14 +1750,17 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder getStatsOr * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.StreamStats, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, + com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder> getStatsFieldBuilder() { if (statsBuilder_ == null) { - statsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder>( - getStats(), - getParentForChildren(), - isClean()); + statsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.StreamStats, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder, + com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder>( + getStats(), getParentForChildren(), isClean()); stats_ = null; } return statsBuilder_; @@ -1556,36 +1768,49 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder getStatsOr private com.google.cloud.bigquery.storage.v1beta2.ThrottleState throttleState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ThrottleState, com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder> throttleStateBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ThrottleState, + com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder, + com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder> + throttleStateBuilder_; /** + * + * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; + * * @return Whether the throttleState field is set. */ public boolean hasThrottleState() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; + * * @return The throttleState. */ public com.google.cloud.bigquery.storage.v1beta2.ThrottleState getThrottleState() { if (throttleStateBuilder_ == null) { - return throttleState_ == null ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() : throttleState_; + return throttleState_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() + : throttleState_; } else { return throttleStateBuilder_.getMessage(); } } /** + * + * *
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1607,6 +1832,8 @@ public Builder setThrottleState(com.google.cloud.bigquery.storage.v1beta2.Thrott
       return this;
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1626,6 +1853,8 @@ public Builder setThrottleState(
       return this;
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1633,11 +1862,13 @@ public Builder setThrottleState(
      *
      * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5;
      */
-    public Builder mergeThrottleState(com.google.cloud.bigquery.storage.v1beta2.ThrottleState value) {
+    public Builder mergeThrottleState(
+        com.google.cloud.bigquery.storage.v1beta2.ThrottleState value) {
       if (throttleStateBuilder_ == null) {
-        if (((bitField0_ & 0x00000010) != 0) &&
-          throttleState_ != null &&
-          throttleState_ != com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000010) != 0)
+            && throttleState_ != null
+            && throttleState_
+                != com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()) {
           getThrottleStateBuilder().mergeFrom(value);
         } else {
           throttleState_ = value;
@@ -1650,6 +1881,8 @@ public Builder mergeThrottleState(com.google.cloud.bigquery.storage.v1beta2.Thro
       return this;
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1668,6 +1901,8 @@ public Builder clearThrottleState() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1675,12 +1910,15 @@ public Builder clearThrottleState() {
      *
      * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder getThrottleStateBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder
+        getThrottleStateBuilder() {
       bitField0_ |= 0x00000010;
       onChanged();
       return getThrottleStateFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1688,15 +1926,19 @@ public com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder getThrott
      *
      * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder getThrottleStateOrBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder
+        getThrottleStateOrBuilder() {
       if (throttleStateBuilder_ != null) {
         return throttleStateBuilder_.getMessageOrBuilder();
       } else {
-        return throttleState_ == null ?
-            com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance() : throttleState_;
+        return throttleState_ == null
+            ? com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()
+            : throttleState_;
       }
     }
     /**
+     *
+     *
      * 
      * Throttling state. If unset, the latest response still describes
      * the current throttling status.
@@ -1705,27 +1947,38 @@ public com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder getThrot
      * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.ThrottleState, com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder> 
+            com.google.cloud.bigquery.storage.v1beta2.ThrottleState,
+            com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder>
         getThrottleStateFieldBuilder() {
       if (throttleStateBuilder_ == null) {
-        throttleStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.ThrottleState, com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder, com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder>(
-                getThrottleState(),
-                getParentForChildren(),
-                isClean());
+        throttleStateBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1beta2.ThrottleState,
+                com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder,
+                com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder>(
+                getThrottleState(), getParentForChildren(), isClean());
         throttleState_ = null;
       }
       return throttleStateBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> avroSchemaBuilder_;
+            com.google.cloud.bigquery.storage.v1beta2.AvroSchema,
+            com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder>
+        avroSchemaBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -1733,11 +1986,16 @@ public boolean hasAvroSchema() { return schemaCase_ == 7; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ @java.lang.Override @@ -1755,11 +2013,15 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema() { } } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchema value) { if (avroSchemaBuilder_ == null) { @@ -1775,11 +2037,15 @@ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchem return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAvroSchema( com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder builderForValue) { @@ -1793,18 +2059,26 @@ public Builder setAvroSchema( return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchema value) { if (avroSchemaBuilder_ == null) { - if (schemaCase_ == 7 && - schema_ != com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) { - schema_ = com.google.cloud.bigquery.storage.v1beta2.AvroSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_) - .mergeFrom(value).buildPartial(); + if (schemaCase_ == 7 + && schema_ + != com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) { + schema_ = + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.newBuilder( + (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -1820,11 +2094,15 @@ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSch return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearAvroSchema() { if (avroSchemaBuilder_ == null) { @@ -1843,21 +2121,29 @@ public Builder clearAvroSchema() { return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder getAvroSchemaBuilder() { return getAvroSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { @@ -1871,21 +2157,30 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSche } } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.AvroSchema, + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> getAvroSchemaFieldBuilder() { if (avroSchemaBuilder_ == null) { if (!(schemaCase_ == 7)) { schema_ = com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } - avroSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder>( + avroSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.AvroSchema, + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_, getParentForChildren(), isClean()); @@ -1897,13 +2192,21 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSche } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> arrowSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> + arrowSchemaBuilder_; /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -1911,11 +2214,16 @@ public boolean hasArrowSchema() { return schemaCase_ == 8; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ @java.lang.Override @@ -1933,11 +2241,15 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema() { } } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { @@ -1953,11 +2265,15 @@ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSch return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setArrowSchema( com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder builderForValue) { @@ -1971,18 +2287,26 @@ public Builder setArrowSchema( return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { - if (schemaCase_ == 8 && - schema_ != com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance()) { - schema_ = com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_) - .mergeFrom(value).buildPartial(); + if (schemaCase_ == 8 + && schema_ + != com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance()) { + schema_ = + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.newBuilder( + (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -1998,11 +2322,15 @@ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowS return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearArrowSchema() { if (arrowSchemaBuilder_ == null) { @@ -2021,24 +2349,33 @@ public Builder clearArrowSchema() { return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder getArrowSchemaBuilder() { return getArrowSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder + getArrowSchemaOrBuilder() { if ((schemaCase_ == 8) && (arrowSchemaBuilder_ != null)) { return arrowSchemaBuilder_.getMessageOrBuilder(); } else { @@ -2049,21 +2386,30 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSc } } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> getArrowSchemaFieldBuilder() { if (arrowSchemaBuilder_ == null) { if (!(schemaCase_ == 8)) { schema_ = com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } - arrowSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder>( + arrowSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_, getParentForChildren(), isClean()); @@ -2073,9 +2419,9 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSc onChanged(); return arrowSchemaBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2085,12 +2431,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) private static final com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse(); } @@ -2099,27 +2445,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadRowsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadRowsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2134,6 +2480,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ReadRowsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java index aae8074e96..9dac211a11 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadRowsResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface ReadRowsResponseOrBuilder extends +public interface ReadRowsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadRowsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; + * * @return Whether the avroRows field is set. */ boolean hasAvroRows(); /** + * + * *
    * Serialized row data in AVRO format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.AvroRows avro_rows = 3; + * * @return The avroRows. */ com.google.cloud.bigquery.storage.v1beta2.AvroRows getAvroRows(); /** + * + * *
    * Serialized row data in AVRO format.
    * 
@@ -35,61 +59,81 @@ public interface ReadRowsResponseOrBuilder extends com.google.cloud.bigquery.storage.v1beta2.AvroRowsOrBuilder getAvroRowsOrBuilder(); /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; + * * @return Whether the arrowRecordBatch field is set. */ boolean hasArrowRecordBatch(); /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; + * * @return The arrowRecordBatch. */ com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch getArrowRecordBatch(); /** + * + * *
    * Serialized row data in Arrow RecordBatch format.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ArrowRecordBatch arrow_record_batch = 4; */ - com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder getArrowRecordBatchOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.ArrowRecordBatchOrBuilder + getArrowRecordBatchOrBuilder(); /** + * + * *
    * Number of serialized rows in the rows block.
    * 
* * int64 row_count = 6; + * * @return The rowCount. */ long getRowCount(); /** + * + * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; + * * @return Whether the stats field is set. */ boolean hasStats(); /** + * + * *
    * Statistics for the stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats stats = 2; + * * @return The stats. */ com.google.cloud.bigquery.storage.v1beta2.StreamStats getStats(); /** + * + * *
    * Statistics for the stream.
    * 
@@ -99,26 +143,34 @@ public interface ReadRowsResponseOrBuilder extends com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder getStatsOrBuilder(); /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; + * * @return Whether the throttleState field is set. */ boolean hasThrottleState(); /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ThrottleState throttle_state = 5; + * * @return The throttleState. */ com.google.cloud.bigquery.storage.v1beta2.ThrottleState getThrottleState(); /** + * + * *
    * Throttling state. If unset, the latest response still describes
    * the current throttling status.
@@ -129,56 +181,84 @@ public interface ReadRowsResponseOrBuilder extends
   com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder getThrottleStateOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ boolean hasAvroSchema(); /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema(); /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ boolean hasArrowSchema(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder(); diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java similarity index 66% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java index 0661dd7b2c..a7d9cb4359 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSession.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Information about the ReadSession.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession} */ -public final class ReadSession extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReadSession extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadSession) ReadSessionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReadSession.newBuilder() to construct. private ReadSession(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReadSession() { name_ = ""; dataFormat_ = 0; @@ -28,52 +46,62 @@ private ReadSession() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReadSession(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.class, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder.class); } - public interface TableModifiersOrBuilder extends + public interface TableModifiersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return Whether the snapshotTime field is set. */ boolean hasSnapshotTime(); /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return The snapshotTime. */ com.google.protobuf.Timestamp getSnapshotTime(); /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -83,57 +111,63 @@ public interface TableModifiersOrBuilder extends com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder(); } /** + * + * *
    * Additional attributes when reading a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers} */ - public static final class TableModifiers extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TableModifiers extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) TableModifiersOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableModifiers.newBuilder() to construct. private TableModifiers(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TableModifiers() { - } + + private TableModifiers() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableModifiers(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.class, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder.class); } public static final int SNAPSHOT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp snapshotTime_; /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return Whether the snapshotTime field is set. */ @java.lang.Override @@ -141,18 +175,25 @@ public boolean hasSnapshotTime() { return snapshotTime_ != null; } /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return The snapshotTime. */ @java.lang.Override public com.google.protobuf.Timestamp getSnapshotTime() { - return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } /** + * + * *
      * The snapshot time of the table. If not set, interpreted as now.
      * 
@@ -161,10 +202,13 @@ public com.google.protobuf.Timestamp getSnapshotTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { - return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +220,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (snapshotTime_ != null) { output.writeMessage(1, getSnapshotTime()); } @@ -191,8 +234,7 @@ public int getSerializedSize() { size = 0; if (snapshotTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSnapshotTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnapshotTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -202,17 +244,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers other = (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers other = + (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) obj; if (hasSnapshotTime() != other.hasSnapshotTime()) return false; if (hasSnapshotTime()) { - if (!getSnapshotTime() - .equals(other.getSnapshotTime())) return false; + if (!getSnapshotTime().equals(other.getSnapshotTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -235,87 +277,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -325,39 +375,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Additional attributes when reading a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.class, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder.class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,19 +424,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers build() { - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -392,18 +448,21 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers buil @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result = new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result = + new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.snapshotTime_ = snapshotTimeBuilder_ == null - ? snapshotTime_ - : snapshotTimeBuilder_.build(); + result.snapshotTime_ = + snapshotTimeBuilder_ == null ? snapshotTime_ : snapshotTimeBuilder_.build(); } } @@ -411,46 +470,53 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadSession public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers)other); + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + .getDefaultInstance()) return this; if (other.hasSnapshotTime()) { mergeSnapshotTime(other.getSnapshotTime()); } @@ -480,19 +546,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getSnapshotTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getSnapshotTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -502,38 +568,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp snapshotTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> snapshotTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + snapshotTimeBuilder_; /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return Whether the snapshotTime field is set. */ public boolean hasSnapshotTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; + * * @return The snapshotTime. */ public com.google.protobuf.Timestamp getSnapshotTime() { if (snapshotTimeBuilder_ == null) { - return snapshotTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } else { return snapshotTimeBuilder_.getMessage(); } } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -554,14 +634,15 @@ public Builder setSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
* * .google.protobuf.Timestamp snapshot_time = 1; */ - public Builder setSnapshotTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (snapshotTimeBuilder_ == null) { snapshotTime_ = builderForValue.build(); } else { @@ -572,6 +653,8 @@ public Builder setSnapshotTime( return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -580,9 +663,9 @@ public Builder setSnapshotTime( */ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { if (snapshotTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - snapshotTime_ != null && - snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && snapshotTime_ != null + && snapshotTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getSnapshotTimeBuilder().mergeFrom(value); } else { snapshotTime_ = value; @@ -595,6 +678,8 @@ public Builder mergeSnapshotTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -612,6 +697,8 @@ public Builder clearSnapshotTime() { return this; } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -624,6 +711,8 @@ public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder() { return getSnapshotTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -634,11 +723,14 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { if (snapshotTimeBuilder_ != null) { return snapshotTimeBuilder_.getMessageOrBuilder(); } else { - return snapshotTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : snapshotTime_; + return snapshotTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : snapshotTime_; } } /** + * + * *
        * The snapshot time of the table. If not set, interpreted as now.
        * 
@@ -646,18 +738,22 @@ public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder() { * .google.protobuf.Timestamp snapshot_time = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getSnapshotTimeFieldBuilder() { if (snapshotTimeBuilder_ == null) { - snapshotTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getSnapshotTime(), - getParentForChildren(), - isClean()); + snapshotTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSnapshotTime(), getParentForChildren(), isClean()); snapshotTime_ = null; } return snapshotTimeBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -670,41 +766,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers) - private static final com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers(); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableModifiers parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableModifiers parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -716,17 +815,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface TableReadOptionsOrBuilder extends + public interface TableReadOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -735,11 +837,13 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @return A list containing the selectedFields. */ - java.util.List - getSelectedFieldsList(); + java.util.List getSelectedFieldsList(); /** + * + * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -748,10 +852,13 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @return The count of selectedFields. */ int getSelectedFieldsCount(); /** + * + * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -760,11 +867,14 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the element to return. * @return The selectedFields at the given index. */ java.lang.String getSelectedFields(int index); /** + * + * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -773,13 +883,15 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - com.google.protobuf.ByteString - getSelectedFieldsBytes(int index); + com.google.protobuf.ByteString getSelectedFieldsBytes(int index); /** + * + * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -792,10 +904,13 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * string row_restriction = 2; + * * @return The rowRestriction. */ java.lang.String getRowRestriction(); /** + * + * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -808,54 +923,73 @@ public interface TableReadOptionsOrBuilder extends
      * 
* * string row_restriction = 2; + * * @return The bytes for rowRestriction. */ - com.google.protobuf.ByteString - getRowRestrictionBytes(); + com.google.protobuf.ByteString getRowRestrictionBytes(); /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrowSerializationOptions field is set. */ boolean hasArrowSerializationOptions(); /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrowSerializationOptions. */ - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getArrowSerializationOptions(); + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + getArrowSerializationOptions(); /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder(); } /** + * + * *
    * Options dictating how we read a table.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions} */ - public static final class TableReadOptions extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class TableReadOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) TableReadOptionsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableReadOptions.newBuilder() to construct. private TableReadOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableReadOptions() { selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; rowRestriction_ = ""; @@ -863,33 +997,37 @@ private TableReadOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableReadOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.class, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder.class); } public static final int SELECTED_FIELDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList selectedFields_; /** + * + * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -898,13 +1036,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string selected_fields = 1; + * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList - getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { return selectedFields_; } /** + * + * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -913,12 +1053,15 @@ protected java.lang.Object newInstance(
      * 
* * repeated string selected_fields = 1; + * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** + * + * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -927,6 +1070,7 @@ public int getSelectedFieldsCount() {
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -934,6 +1078,8 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** + * + * *
      * Names of the fields in the table that should be read. If empty, all
      * fields will be read. If the specified field is a nested field, all
@@ -942,18 +1088,21 @@ public java.lang.String getSelectedFields(int index) {
      * 
* * repeated string selected_fields = 1; + * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString - getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } public static final int ROW_RESTRICTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object rowRestriction_ = ""; /** + * + * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -966,6 +1115,7 @@ public java.lang.String getSelectedFields(int index) {
      * 
* * string row_restriction = 2; + * * @return The rowRestriction. */ @java.lang.Override @@ -974,14 +1124,15 @@ public java.lang.String getRowRestriction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; } } /** + * + * *
      * SQL text filtering statement, similar to a WHERE clause in a query.
      * Aggregates are not supported.
@@ -994,16 +1145,15 @@ public java.lang.String getRowRestriction() {
      * 
* * string row_restriction = 2; + * * @return The bytes for rowRestriction. */ @java.lang.Override - public com.google.protobuf.ByteString - getRowRestrictionBytes() { + public com.google.protobuf.ByteString getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -1012,13 +1162,19 @@ public java.lang.String getRowRestriction() { } public static final int ARROW_SERIALIZATION_OPTIONS_FIELD_NUMBER = 3; - private com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrowSerializationOptions_; + private com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + arrowSerializationOptions_; /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrowSerializationOptions field is set. */ @java.lang.Override @@ -1026,30 +1182,46 @@ public boolean hasArrowSerializationOptions() { return arrowSerializationOptions_ != null; } /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrowSerializationOptions. */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getArrowSerializationOptions() { - return arrowSerializationOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() : arrowSerializationOptions_; + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + getArrowSerializationOptions() { + return arrowSerializationOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() + : arrowSerializationOptions_; } /** + * + * *
      * Optional. Options specific to the Apache Arrow output format.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder() { - return arrowSerializationOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() : arrowSerializationOptions_; + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder() { + return arrowSerializationOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() + : arrowSerializationOptions_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1061,8 +1233,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < selectedFields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selectedFields_.getRaw(i)); } @@ -1093,8 +1264,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rowRestriction_); } if (arrowSerializationOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getArrowSerializationOptions()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getArrowSerializationOptions()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1104,21 +1276,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions)) { + if (!(obj + instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions other = (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions other = + (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) obj; - if (!getSelectedFieldsList() - .equals(other.getSelectedFieldsList())) return false; - if (!getRowRestriction() - .equals(other.getRowRestriction())) return false; + if (!getSelectedFieldsList().equals(other.getSelectedFieldsList())) return false; + if (!getRowRestriction().equals(other.getRowRestriction())) return false; if (hasArrowSerializationOptions() != other.hasArrowSerializationOptions()) return false; if (hasArrowSerializationOptions()) { - if (!getArrowSerializationOptions() - .equals(other.getArrowSerializationOptions())) return false; + if (!getArrowSerializationOptions().equals(other.getArrowSerializationOptions())) + return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1147,87 +1319,95 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1237,39 +1417,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Options dictating how we read a table.
      * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.class, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder + .class); } - // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1286,19 +1470,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getDefaultInstanceForType() { - return com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance(); + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + getDefaultInstanceForType() { + return com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions build() { - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result = buildPartial(); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1307,14 +1494,18 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions bu @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result = new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions(this); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result = + new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result) { if (((bitField0_ & 0x00000001) != 0)) { selectedFields_ = selectedFields_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -1322,15 +1513,17 @@ private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta result.selectedFields_ = selectedFields_; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.rowRestriction_ = rowRestriction_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.arrowSerializationOptions_ = arrowSerializationOptionsBuilder_ == null - ? arrowSerializationOptions_ - : arrowSerializationOptionsBuilder_.build(); + result.arrowSerializationOptions_ = + arrowSerializationOptionsBuilder_ == null + ? arrowSerializationOptions_ + : arrowSerializationOptionsBuilder_.build(); } } @@ -1338,46 +1531,54 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadSession public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions)other); + if (other + instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) { + return mergeFrom( + (com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + .getDefaultInstance()) return this; if (!other.selectedFields_.isEmpty()) { if (selectedFields_.isEmpty()) { selectedFields_ = other.selectedFields_; @@ -1422,30 +1623,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSelectedFieldsIsMutable(); - selectedFields_.add(s); - break; - } // case 10 - case 18: { - rowRestriction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getArrowSerializationOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSelectedFieldsIsMutable(); + selectedFields_.add(s); + break; + } // case 10 + case 18: + { + rowRestriction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getArrowSerializationOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1455,16 +1659,21 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList selectedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList selectedFields_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureSelectedFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { selectedFields_ = new com.google.protobuf.LazyStringArrayList(selectedFields_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1473,13 +1682,15 @@ private void ensureSelectedFieldsIsMutable() {
        * 
* * repeated string selected_fields = 1; + * * @return A list containing the selectedFields. */ - public com.google.protobuf.ProtocolStringList - getSelectedFieldsList() { + public com.google.protobuf.ProtocolStringList getSelectedFieldsList() { return selectedFields_.getUnmodifiableView(); } /** + * + * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1488,12 +1699,15 @@ private void ensureSelectedFieldsIsMutable() {
        * 
* * repeated string selected_fields = 1; + * * @return The count of selectedFields. */ public int getSelectedFieldsCount() { return selectedFields_.size(); } /** + * + * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1502,6 +1716,7 @@ public int getSelectedFieldsCount() {
        * 
* * repeated string selected_fields = 1; + * * @param index The index of the element to return. * @return The selectedFields at the given index. */ @@ -1509,6 +1724,8 @@ public java.lang.String getSelectedFields(int index) { return selectedFields_.get(index); } /** + * + * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1517,14 +1734,16 @@ public java.lang.String getSelectedFields(int index) {
        * 
* * repeated string selected_fields = 1; + * * @param index The index of the value to return. * @return The bytes of the selectedFields at the given index. */ - public com.google.protobuf.ByteString - getSelectedFieldsBytes(int index) { + public com.google.protobuf.ByteString getSelectedFieldsBytes(int index) { return selectedFields_.getByteString(index); } /** + * + * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1533,19 +1752,23 @@ public java.lang.String getSelectedFields(int index) {
        * 
* * repeated string selected_fields = 1; + * * @param index The index to set the value at. * @param value The selectedFields to set. * @return This builder for chaining. */ - public Builder setSelectedFields( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSelectedFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSelectedFieldsIsMutable(); selectedFields_.set(index, value); onChanged(); return this; } /** + * + * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1554,18 +1777,22 @@ public Builder setSelectedFields(
        * 
* * repeated string selected_fields = 1; + * * @param value The selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFields( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSelectedFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureSelectedFieldsIsMutable(); selectedFields_.add(value); onChanged(); return this; } /** + * + * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1574,18 +1801,19 @@ public Builder addSelectedFields(
        * 
* * repeated string selected_fields = 1; + * * @param values The selectedFields to add. * @return This builder for chaining. */ - public Builder addAllSelectedFields( - java.lang.Iterable values) { + public Builder addAllSelectedFields(java.lang.Iterable values) { ensureSelectedFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, selectedFields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, selectedFields_); onChanged(); return this; } /** + * + * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1594,6 +1822,7 @@ public Builder addAllSelectedFields(
        * 
* * repeated string selected_fields = 1; + * * @return This builder for chaining. */ public Builder clearSelectedFields() { @@ -1603,6 +1832,8 @@ public Builder clearSelectedFields() { return this; } /** + * + * *
        * Names of the fields in the table that should be read. If empty, all
        * fields will be read. If the specified field is a nested field, all
@@ -1611,12 +1842,14 @@ public Builder clearSelectedFields() {
        * 
* * repeated string selected_fields = 1; + * * @param value The bytes of the selectedFields to add. * @return This builder for chaining. */ - public Builder addSelectedFieldsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addSelectedFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureSelectedFieldsIsMutable(); selectedFields_.add(value); @@ -1626,6 +1859,8 @@ public Builder addSelectedFieldsBytes( private java.lang.Object rowRestriction_ = ""; /** + * + * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -1638,13 +1873,13 @@ public Builder addSelectedFieldsBytes(
        * 
* * string row_restriction = 2; + * * @return The rowRestriction. */ public java.lang.String getRowRestriction() { java.lang.Object ref = rowRestriction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rowRestriction_ = s; return s; @@ -1653,6 +1888,8 @@ public java.lang.String getRowRestriction() { } } /** + * + * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -1665,15 +1902,14 @@ public java.lang.String getRowRestriction() {
        * 
* * string row_restriction = 2; + * * @return The bytes for rowRestriction. */ - public com.google.protobuf.ByteString - getRowRestrictionBytes() { + public com.google.protobuf.ByteString getRowRestrictionBytes() { java.lang.Object ref = rowRestriction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rowRestriction_ = b; return b; } else { @@ -1681,6 +1917,8 @@ public java.lang.String getRowRestriction() { } } /** + * + * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -1693,18 +1931,22 @@ public java.lang.String getRowRestriction() {
        * 
* * string row_restriction = 2; + * * @param value The rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestriction( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRowRestriction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } rowRestriction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -1717,6 +1959,7 @@ public Builder setRowRestriction(
        * 
* * string row_restriction = 2; + * * @return This builder for chaining. */ public Builder clearRowRestriction() { @@ -1726,6 +1969,8 @@ public Builder clearRowRestriction() { return this; } /** + * + * *
        * SQL text filtering statement, similar to a WHERE clause in a query.
        * Aggregates are not supported.
@@ -1738,12 +1983,14 @@ public Builder clearRowRestriction() {
        * 
* * string row_restriction = 2; + * * @param value The bytes for rowRestriction to set. * @return This builder for chaining. */ - public Builder setRowRestrictionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRowRestrictionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); rowRestriction_ = value; bitField0_ |= 0x00000002; @@ -1751,43 +1998,66 @@ public Builder setRowRestrictionBytes( return this; } - private com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrowSerializationOptions_; + private com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + arrowSerializationOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder> arrowSerializationOptionsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder> + arrowSerializationOptionsBuilder_; /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the arrowSerializationOptions field is set. */ public boolean hasArrowSerializationOptions() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The arrowSerializationOptions. */ - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions getArrowSerializationOptions() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + getArrowSerializationOptions() { if (arrowSerializationOptionsBuilder_ == null) { - return arrowSerializationOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() : arrowSerializationOptions_; + return arrowSerializationOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + .getDefaultInstance() + : arrowSerializationOptions_; } else { return arrowSerializationOptionsBuilder_.getMessage(); } } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setArrowSerializationOptions(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions value) { + public Builder setArrowSerializationOptions( + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions value) { if (arrowSerializationOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1801,14 +2071,19 @@ public Builder setArrowSerializationOptions(com.google.cloud.bigquery.storage.v1 return this; } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setArrowSerializationOptions( - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder + builderForValue) { if (arrowSerializationOptionsBuilder_ == null) { arrowSerializationOptions_ = builderForValue.build(); } else { @@ -1819,17 +2094,24 @@ public Builder setArrowSerializationOptions( return this; } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeArrowSerializationOptions(com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions value) { + public Builder mergeArrowSerializationOptions( + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions value) { if (arrowSerializationOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - arrowSerializationOptions_ != null && - arrowSerializationOptions_ != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && arrowSerializationOptions_ != null + && arrowSerializationOptions_ + != com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + .getDefaultInstance()) { getArrowSerializationOptionsBuilder().mergeFrom(value); } else { arrowSerializationOptions_ = value; @@ -1842,11 +2124,15 @@ public Builder mergeArrowSerializationOptions(com.google.cloud.bigquery.storage. return this; } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearArrowSerializationOptions() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1859,52 +2145,72 @@ public Builder clearArrowSerializationOptions() { return this; } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder getArrowSerializationOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder + getArrowSerializationOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getArrowSerializationOptionsFieldBuilder().getBuilder(); } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder getArrowSerializationOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder + getArrowSerializationOptionsOrBuilder() { if (arrowSerializationOptionsBuilder_ != null) { return arrowSerializationOptionsBuilder_.getMessageOrBuilder(); } else { - return arrowSerializationOptions_ == null ? - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.getDefaultInstance() : arrowSerializationOptions_; + return arrowSerializationOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions + .getDefaultInstance() + : arrowSerializationOptions_; } } /** + * + * *
        * Optional. Options specific to the Apache Arrow output format.
        * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions arrow_serialization_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder> getArrowSerializationOptionsFieldBuilder() { if (arrowSerializationOptionsBuilder_ == null) { - arrowSerializationOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder>( - getArrowSerializationOptions(), - getParentForChildren(), - isClean()); + arrowSerializationOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions, + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptions.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowSerializationOptionsOrBuilder>( + getArrowSerializationOptions(), getParentForChildren(), isClean()); arrowSerializationOptions_ = null; } return arrowSerializationOptionsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1917,41 +2223,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions) - private static final com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions(); + DEFAULT_INSTANCE = + new com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions(); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableReadOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableReadOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1963,21 +2273,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int schemaCase_ = 0; private java.lang.Object schema_; + public enum SchemaCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AVRO_SCHEMA(4), ARROW_SCHEMA(5), SCHEMA_NOT_SET(0); private final int value; + private SchemaCase(int value) { this.value = value; } @@ -1993,33 +2306,40 @@ public static SchemaCase valueOf(int value) { public static SchemaCase forNumber(int value) { switch (value) { - case 4: return AVRO_SCHEMA; - case 5: return ARROW_SCHEMA; - case 0: return SCHEMA_NOT_SET; - default: return null; + case 4: + return AVRO_SCHEMA; + case 5: + return ARROW_SCHEMA; + case 0: + return SCHEMA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SchemaCase - getSchemaCase() { - return SchemaCase.forNumber( - schemaCase_); + public SchemaCase getSchemaCase() { + return SchemaCase.forNumber(schemaCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -2028,30 +2348,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2062,13 +2382,17 @@ public java.lang.String getName() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -2076,13 +2400,17 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -2090,13 +2418,16 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -2106,36 +2437,56 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { public static final int DATA_FORMAT_FIELD_NUMBER = 3; private int dataFormat_ = 0; /** + * + * *
    * Immutable. Data format of the output data.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override public int getDataFormatValue() { + @java.lang.Override + public int getDataFormatValue() { return dataFormat_; } /** + * + * *
    * Immutable. Data format of the output data.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The dataFormat. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.DataFormat getDataFormat() { - com.google.cloud.bigquery.storage.v1beta2.DataFormat result = com.google.cloud.bigquery.storage.v1beta2.DataFormat.forNumber(dataFormat_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.DataFormat.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1beta2.DataFormat getDataFormat() { + com.google.cloud.bigquery.storage.v1beta2.DataFormat result = + com.google.cloud.bigquery.storage.v1beta2.DataFormat.forNumber(dataFormat_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.DataFormat.UNRECOGNIZED + : result; } public static final int AVRO_SCHEMA_FIELD_NUMBER = 4; /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -2143,42 +2494,56 @@ public boolean hasAvroSchema() { return schemaCase_ == 4; } /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema() { if (schemaCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { if (schemaCase_ == 4) { - return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } public static final int ARROW_SCHEMA_FIELD_NUMBER = 5; /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -2186,45 +2551,60 @@ public boolean hasArrowSchema() { return schemaCase_ == 5; } /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { if (schemaCase_ == 5) { - return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; + return (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_; } return com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } public static final int TABLE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** + * + * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
    * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The table. */ @java.lang.Override @@ -2233,30 +2613,32 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
    * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -2267,11 +2649,16 @@ public java.lang.String getTable() { public static final int TABLE_MODIFIERS_FIELD_NUMBER = 7; private com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers tableModifiers_; /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tableModifiers field is set. */ @java.lang.Override @@ -2279,37 +2666,56 @@ public boolean hasTableModifiers() { return tableModifiers_ != null; } /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tableModifiers. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getTableModifiers() { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() + : tableModifiers_; } /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder() { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder + getTableModifiersOrBuilder() { + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() + : tableModifiers_; } public static final int READ_OPTIONS_FIELD_NUMBER = 8; private com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions readOptions_; /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readOptions field is set. */ @java.lang.Override @@ -2317,33 +2723,52 @@ public boolean hasReadOptions() { return readOptions_ != null; } /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readOptions. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getReadOptions() { - return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + .getDefaultInstance() + : readOptions_; } /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { - return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder + getReadOptionsOrBuilder() { + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + .getDefaultInstance() + : readOptions_; } public static final int STREAMS_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private java.util.List streams_; /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -2352,13 +2777,17 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrB
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getStreamsList() { return streams_; } /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -2367,14 +2796,18 @@ public java.util.List getS
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getStreamsOrBuilderList() { return streams_; } /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -2383,13 +2816,17 @@ public java.util.List getS
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getStreamsCount() { return streams_.size(); } /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -2398,13 +2835,17 @@ public int getStreamsCount() {
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index) { return streams_.get(index); } /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -2413,7 +2854,9 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsOrBuilder( @@ -2422,6 +2865,7 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2433,15 +2877,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (expireTime_ != null) { output.writeMessage(2, getExpireTime()); } - if (dataFormat_ != com.google.cloud.bigquery.storage.v1beta2.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { + if (dataFormat_ + != com.google.cloud.bigquery.storage.v1beta2.DataFormat.DATA_FORMAT_UNSPECIFIED + .getNumber()) { output.writeEnum(3, dataFormat_); } if (schemaCase_ == 4) { @@ -2475,35 +2920,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } - if (dataFormat_ != com.google.cloud.bigquery.storage.v1beta2.DataFormat.DATA_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, dataFormat_); + if (dataFormat_ + != com.google.cloud.bigquery.storage.v1beta2.DataFormat.DATA_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, dataFormat_); } if (schemaCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_); } if (schemaCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, table_); } if (tableModifiers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getTableModifiers()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getTableModifiers()); } if (readOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getReadOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getReadOptions()); } for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, streams_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2513,44 +2957,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadSession other = (com.google.cloud.bigquery.storage.v1beta2.ReadSession) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadSession other = + (com.google.cloud.bigquery.storage.v1beta2.ReadSession) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; + if (!getExpireTime().equals(other.getExpireTime())) return false; } if (dataFormat_ != other.dataFormat_) return false; - if (!getTable() - .equals(other.getTable())) return false; + if (!getTable().equals(other.getTable())) return false; if (hasTableModifiers() != other.hasTableModifiers()) return false; if (hasTableModifiers()) { - if (!getTableModifiers() - .equals(other.getTableModifiers())) return false; + if (!getTableModifiers().equals(other.getTableModifiers())) return false; } if (hasReadOptions() != other.hasReadOptions()) return false; if (hasReadOptions()) { - if (!getReadOptions() - .equals(other.getReadOptions())) return false; + if (!getReadOptions().equals(other.getReadOptions())) return false; } - if (!getStreamsList() - .equals(other.getStreamsList())) return false; + if (!getStreamsList().equals(other.getStreamsList())) return false; if (!getSchemaCase().equals(other.getSchemaCase())) return false; switch (schemaCase_) { case 4: - if (!getAvroSchema() - .equals(other.getAvroSchema())) return false; + if (!getAvroSchema().equals(other.getAvroSchema())) return false; break; case 5: - if (!getArrowSchema() - .equals(other.getArrowSchema())) return false; + if (!getArrowSchema().equals(other.getArrowSchema())) return false; break; case 0: default: @@ -2606,129 +3043,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadSession parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadSession prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.ReadSession prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about the ReadSession.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadSession} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadSession) com.google.cloud.bigquery.storage.v1beta2.ReadSessionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.class, com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.class, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadSession.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2770,9 +3214,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; } @java.lang.Override @@ -2791,15 +3235,19 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadSession buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ReadSession result = new com.google.cloud.bigquery.storage.v1beta2.ReadSession(this); + com.google.cloud.bigquery.storage.v1beta2.ReadSession result = + new com.google.cloud.bigquery.storage.v1beta2.ReadSession(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.ReadSession result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1beta2.ReadSession result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -2817,9 +3265,7 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadSession result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.dataFormat_ = dataFormat_; @@ -2828,26 +3274,22 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadSession result.table_ = table_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.tableModifiers_ = tableModifiersBuilder_ == null - ? tableModifiers_ - : tableModifiersBuilder_.build(); + result.tableModifiers_ = + tableModifiersBuilder_ == null ? tableModifiers_ : tableModifiersBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { - result.readOptions_ = readOptionsBuilder_ == null - ? readOptions_ - : readOptionsBuilder_.build(); + result.readOptions_ = + readOptionsBuilder_ == null ? readOptions_ : readOptionsBuilder_.build(); } } private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.ReadSession result) { result.schemaCase_ = schemaCase_; result.schema_ = this.schema_; - if (schemaCase_ == 4 && - avroSchemaBuilder_ != null) { + if (schemaCase_ == 4 && avroSchemaBuilder_ != null) { result.schema_ = avroSchemaBuilder_.build(); } - if (schemaCase_ == 5 && - arrowSchemaBuilder_ != null) { + if (schemaCase_ == 5 && arrowSchemaBuilder_ != null) { result.schema_ = arrowSchemaBuilder_.build(); } } @@ -2856,38 +3298,39 @@ private void buildPartialOneofs(com.google.cloud.bigquery.storage.v1beta2.ReadSe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadSession) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadSession)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadSession) other); } else { super.mergeFrom(other); return this; @@ -2895,7 +3338,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadSession other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ReadSession.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -2936,26 +3380,30 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadSession o streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000100); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStreamsFieldBuilder() : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStreamsFieldBuilder() + : null; } else { streamsBuilder_.addAllMessages(other.streams_); } } } switch (other.getSchemaCase()) { - case AVRO_SCHEMA: { - mergeAvroSchema(other.getAvroSchema()); - break; - } - case ARROW_SCHEMA: { - mergeArrowSchema(other.getArrowSchema()); - break; - } - case SCHEMA_NOT_SET: { - break; - } + case AVRO_SCHEMA: + { + mergeAvroSchema(other.getAvroSchema()); + break; + } + case ARROW_SCHEMA: + { + mergeArrowSchema(other.getArrowSchema()); + break; + } + case SCHEMA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2974,84 +3422,84 @@ public Builder mergeFrom( throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - dataFormat_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getAvroSchemaFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getArrowSchemaFieldBuilder().getBuilder(), - extensionRegistry); - schemaCase_ = 5; - break; - } // case 42 - case 50: { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getTableModifiersFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getReadOptionsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 82: { - com.google.cloud.bigquery.storage.v1beta2.ReadStream m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta2.ReadStream.parser(), - extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + dataFormat_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage(getAvroSchemaFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getArrowSchemaFieldBuilder().getBuilder(), extensionRegistry); + schemaCase_ = 5; + break; + } // case 42 + case 50: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getTableModifiersFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getReadOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 82: + { + com.google.cloud.bigquery.storage.v1beta2.ReadStream m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta2.ReadStream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3061,12 +3509,12 @@ public Builder mergeFrom( } // finally return this; } + private int schemaCase_ = 0; private java.lang.Object schema_; - public SchemaCase - getSchemaCase() { - return SchemaCase.forNumber( - schemaCase_); + + public SchemaCase getSchemaCase() { + return SchemaCase.forNumber(schemaCase_); } public Builder clearSchema() { @@ -3080,19 +3528,21 @@ public Builder clearSchema() { private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3101,21 +3551,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3123,30 +3574,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3156,18 +3614,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Unique identifier for the session, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3177,45 +3639,64 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -3231,16 +3712,19 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); } else { @@ -3251,19 +3735,23 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); } else { expireTime_ = value; @@ -3276,13 +3764,17 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3295,13 +3787,17 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { bitField0_ |= 0x00000002; @@ -3309,40 +3805,52 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. Time at which the session becomes invalid. After this time, subsequent
      * requests to read this Session will return errors. The expire_time is
      * automatically assigned and currently cannot be specified or updated.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getExpireTimeFieldBuilder() { if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); expireTime_ = null; } return expireTimeBuilder_; @@ -3350,22 +3858,33 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { private int dataFormat_ = 0; /** + * + * *
      * Immutable. Data format of the output data.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for dataFormat. */ - @java.lang.Override public int getDataFormatValue() { + @java.lang.Override + public int getDataFormatValue() { return dataFormat_; } /** + * + * *
      * Immutable. Data format of the output data.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for dataFormat to set. * @return This builder for chaining. */ @@ -3376,24 +3895,37 @@ public Builder setDataFormatValue(int value) { return this; } /** + * + * *
      * Immutable. Data format of the output data.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The dataFormat. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.DataFormat getDataFormat() { - com.google.cloud.bigquery.storage.v1beta2.DataFormat result = com.google.cloud.bigquery.storage.v1beta2.DataFormat.forNumber(dataFormat_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.DataFormat.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1beta2.DataFormat result = + com.google.cloud.bigquery.storage.v1beta2.DataFormat.forNumber(dataFormat_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.DataFormat.UNRECOGNIZED + : result; } /** + * + * *
      * Immutable. Data format of the output data.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The dataFormat to set. * @return This builder for chaining. */ @@ -3407,11 +3939,16 @@ public Builder setDataFormat(com.google.cloud.bigquery.storage.v1beta2.DataForma return this; } /** + * + * *
      * Immutable. Data format of the output data.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearDataFormat() { @@ -3422,13 +3959,21 @@ public Builder clearDataFormat() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> avroSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta2.AvroSchema, + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> + avroSchemaBuilder_; /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ @java.lang.Override @@ -3436,11 +3981,16 @@ public boolean hasAvroSchema() { return schemaCase_ == 4; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ @java.lang.Override @@ -3458,11 +4008,15 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema() { } } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchema value) { if (avroSchemaBuilder_ == null) { @@ -3478,11 +4032,15 @@ public Builder setAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchem return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAvroSchema( com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder builderForValue) { @@ -3496,18 +4054,26 @@ public Builder setAvroSchema( return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSchema value) { if (avroSchemaBuilder_ == null) { - if (schemaCase_ == 4 && - schema_ != com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) { - schema_ = com.google.cloud.bigquery.storage.v1beta2.AvroSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_) - .mergeFrom(value).buildPartial(); + if (schemaCase_ == 4 + && schema_ + != com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance()) { + schema_ = + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.newBuilder( + (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -3523,11 +4089,15 @@ public Builder mergeAvroSchema(com.google.cloud.bigquery.storage.v1beta2.AvroSch return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearAvroSchema() { if (avroSchemaBuilder_ == null) { @@ -3546,21 +4116,29 @@ public Builder clearAvroSchema() { return this; } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder getAvroSchemaBuilder() { return getAvroSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder() { @@ -3574,21 +4152,30 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSche } } /** + * + * *
      * Output only. Avro schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.AvroSchema, + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder> getAvroSchemaFieldBuilder() { if (avroSchemaBuilder_ == null) { if (!(schemaCase_ == 4)) { schema_ = com.google.cloud.bigquery.storage.v1beta2.AvroSchema.getDefaultInstance(); } - avroSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.AvroSchema, com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder>( + avroSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.AvroSchema, + com.google.cloud.bigquery.storage.v1beta2.AvroSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.AvroSchema) schema_, getParentForChildren(), isClean()); @@ -3600,13 +4187,21 @@ public com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSche } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> arrowSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> + arrowSchemaBuilder_; /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ @java.lang.Override @@ -3614,11 +4209,16 @@ public boolean hasArrowSchema() { return schemaCase_ == 5; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ @java.lang.Override @@ -3636,11 +4236,15 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema() { } } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { @@ -3656,11 +4260,15 @@ public Builder setArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSch return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setArrowSchema( com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder builderForValue) { @@ -3674,18 +4282,26 @@ public Builder setArrowSchema( return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowSchema value) { if (arrowSchemaBuilder_ == null) { - if (schemaCase_ == 5 && - schema_ != com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance()) { - schema_ = com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.newBuilder((com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_) - .mergeFrom(value).buildPartial(); + if (schemaCase_ == 5 + && schema_ + != com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance()) { + schema_ = + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.newBuilder( + (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_) + .mergeFrom(value) + .buildPartial(); } else { schema_ = value; } @@ -3701,11 +4317,15 @@ public Builder mergeArrowSchema(com.google.cloud.bigquery.storage.v1beta2.ArrowS return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearArrowSchema() { if (arrowSchemaBuilder_ == null) { @@ -3724,24 +4344,33 @@ public Builder clearArrowSchema() { return this; } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder getArrowSchemaBuilder() { return getArrowSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder + getArrowSchemaOrBuilder() { if ((schemaCase_ == 5) && (arrowSchemaBuilder_ != null)) { return arrowSchemaBuilder_.getMessageOrBuilder(); } else { @@ -3752,21 +4381,30 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSc } } /** + * + * *
      * Output only. Arrow schema.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder> getArrowSchemaFieldBuilder() { if (arrowSchemaBuilder_ == null) { if (!(schemaCase_ == 5)) { schema_ = com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.getDefaultInstance(); } - arrowSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder>( + arrowSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder>( (com.google.cloud.bigquery.storage.v1beta2.ArrowSchema) schema_, getParentForChildren(), isClean()); @@ -3779,19 +4417,23 @@ public com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSc private java.lang.Object table_ = ""; /** + * + * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
      * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -3800,21 +4442,24 @@ public java.lang.String getTable() { } } /** + * + * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
      * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -3822,30 +4467,41 @@ public java.lang.String getTable() { } } /** + * + * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
      * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } table_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
      * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearTable() { @@ -3855,18 +4511,24 @@ public Builder clearTable() { return this; } /** + * + * *
      * Immutable. Table that this ReadSession is reading from, in the form
      * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
      * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000020; @@ -3876,41 +4538,63 @@ public Builder setTableBytes( private com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers tableModifiers_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder> tableModifiersBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder> + tableModifiersBuilder_; /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tableModifiers field is set. */ public boolean hasTableModifiers() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tableModifiers. */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getTableModifiers() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + getTableModifiers() { if (tableModifiersBuilder_ == null) { - return tableModifiers_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + .getDefaultInstance() + : tableModifiers_; } else { return tableModifiersBuilder_.getMessage(); } } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers value) { + public Builder setTableModifiers( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers value) { if (tableModifiersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3924,14 +4608,19 @@ public Builder setTableModifiers(com.google.cloud.bigquery.storage.v1beta2.ReadS return this; } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setTableModifiers( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder + builderForValue) { if (tableModifiersBuilder_ == null) { tableModifiers_ = builderForValue.build(); } else { @@ -3942,17 +4631,24 @@ public Builder setTableModifiers( return this; } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers value) { + public Builder mergeTableModifiers( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers value) { if (tableModifiersBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - tableModifiers_ != null && - tableModifiers_ != com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && tableModifiers_ != null + && tableModifiers_ + != com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + .getDefaultInstance()) { getTableModifiersBuilder().mergeFrom(value); } else { tableModifiers_ = value; @@ -3965,11 +4661,15 @@ public Builder mergeTableModifiers(com.google.cloud.bigquery.storage.v1beta2.Rea return this; } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearTableModifiers() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3982,48 +4682,67 @@ public Builder clearTableModifiers() { return this; } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder getTableModifiersBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder + getTableModifiersBuilder() { bitField0_ |= 0x00000040; onChanged(); return getTableModifiersFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder + getTableModifiersOrBuilder() { if (tableModifiersBuilder_ != null) { return tableModifiersBuilder_.getMessageOrBuilder(); } else { - return tableModifiers_ == null ? - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.getDefaultInstance() : tableModifiers_; + return tableModifiers_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers + .getDefaultInstance() + : tableModifiers_; } } /** + * + * *
      * Optional. Any modifiers which are applied when reading from the specified table.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder> getTableModifiersFieldBuilder() { if (tableModifiersBuilder_ == null) { - tableModifiersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder>( - getTableModifiers(), - getParentForChildren(), - isClean()); + tableModifiersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder>( + getTableModifiers(), getParentForChildren(), isClean()); tableModifiers_ = null; } return tableModifiersBuilder_; @@ -4031,41 +4750,62 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBui private com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions readOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder> readOptionsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder> + readOptionsBuilder_; /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readOptions field is set. */ public boolean hasReadOptions() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readOptions. */ public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getReadOptions() { if (readOptionsBuilder_ == null) { - return readOptions_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + .getDefaultInstance() + : readOptions_; } else { return readOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReadOptions(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions value) { + public Builder setReadOptions( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions value) { if (readOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4079,14 +4819,19 @@ public Builder setReadOptions(com.google.cloud.bigquery.storage.v1beta2.ReadSess return this; } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReadOptions( - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder builderForValue) { + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder + builderForValue) { if (readOptionsBuilder_ == null) { readOptions_ = builderForValue.build(); } else { @@ -4097,17 +4842,24 @@ public Builder setReadOptions( return this; } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeReadOptions(com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions value) { + public Builder mergeReadOptions( + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions value) { if (readOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - readOptions_ != null && - readOptions_ != com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && readOptions_ != null + && readOptions_ + != com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + .getDefaultInstance()) { getReadOptionsBuilder().mergeFrom(value); } else { readOptions_ = value; @@ -4120,11 +4872,15 @@ public Builder mergeReadOptions(com.google.cloud.bigquery.storage.v1beta2.ReadSe return this; } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReadOptions() { bitField0_ = (bitField0_ & ~0x00000080); @@ -4137,66 +4893,92 @@ public Builder clearReadOptions() { return this; } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder getReadOptionsBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder + getReadOptionsBuilder() { bitField0_ |= 0x00000080; onChanged(); return getReadOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder + getReadOptionsOrBuilder() { if (readOptionsBuilder_ != null) { return readOptionsBuilder_.getMessageOrBuilder(); } else { - return readOptions_ == null ? - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.getDefaultInstance() : readOptions_; + return readOptions_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions + .getDefaultInstance() + : readOptions_; } } /** + * + * *
      * Optional. Read options for this session (e.g. column selection, filters).
      * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder> getReadOptionsFieldBuilder() { if (readOptionsBuilder_ == null) { - readOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder>( - getReadOptions(), - getParentForChildren(), - isClean()); + readOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder>( + getReadOptions(), getParentForChildren(), isClean()); readOptions_ = null; } return readOptionsBuilder_; } private java.util.List streams_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000100) != 0)) { - streams_ = new java.util.ArrayList(streams_); + streams_ = + new java.util.ArrayList(streams_); bitField0_ |= 0x00000100; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> streamsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.ReadStream, + com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> + streamsBuilder_; /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4205,7 +4987,9 @@ private void ensureStreamsIsMutable() {
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getStreamsList() { if (streamsBuilder_ == null) { @@ -4215,6 +4999,8 @@ public java.util.List getS } } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4223,7 +5009,9 @@ public java.util.List getS
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getStreamsCount() { if (streamsBuilder_ == null) { @@ -4233,6 +5021,8 @@ public int getStreamsCount() { } } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4241,7 +5031,9 @@ public int getStreamsCount() {
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index) { if (streamsBuilder_ == null) { @@ -4251,6 +5043,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index } } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4259,7 +5053,9 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStreams( int index, com.google.cloud.bigquery.storage.v1beta2.ReadStream value) { @@ -4276,6 +5072,8 @@ public Builder setStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4284,7 +5082,9 @@ public Builder setStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStreams( int index, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder builderForValue) { @@ -4298,6 +5098,8 @@ public Builder setStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4306,7 +5108,9 @@ public Builder setStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStreams(com.google.cloud.bigquery.storage.v1beta2.ReadStream value) { if (streamsBuilder_ == null) { @@ -4322,6 +5126,8 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1beta2.ReadStream v return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4330,7 +5136,9 @@ public Builder addStreams(com.google.cloud.bigquery.storage.v1beta2.ReadStream v
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStreams( int index, com.google.cloud.bigquery.storage.v1beta2.ReadStream value) { @@ -4347,6 +5155,8 @@ public Builder addStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4355,7 +5165,9 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStreams( com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder builderForValue) { @@ -4369,6 +5181,8 @@ public Builder addStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4377,7 +5191,9 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addStreams( int index, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder builderForValue) { @@ -4391,6 +5207,8 @@ public Builder addStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4399,14 +5217,15 @@ public Builder addStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllStreams( java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -4414,6 +5233,8 @@ public Builder addAllStreams( return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4422,7 +5243,9 @@ public Builder addAllStreams(
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStreams() { if (streamsBuilder_ == null) { @@ -4435,6 +5258,8 @@ public Builder clearStreams() { return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4443,7 +5268,9 @@ public Builder clearStreams() {
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeStreams(int index) { if (streamsBuilder_ == null) { @@ -4456,6 +5283,8 @@ public Builder removeStreams(int index) { return this; } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4464,13 +5293,17 @@ public Builder removeStreams(int index) {
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getStreamsBuilder( int index) { return getStreamsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4479,16 +5312,21 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getStreamsBu
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsOrBuilder( int index) { if (streamsBuilder_ == null) { - return streams_.get(index); } else { + return streams_.get(index); + } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4497,10 +5335,12 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsO
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -4508,6 +5348,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsO } } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4516,13 +5358,17 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsO
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder().addBuilder( - com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()); + return getStreamsFieldBuilder() + .addBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()); } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4531,14 +5377,19 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder addStreamsBu
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder addStreamsBuilder( int index) { - return getStreamsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()); + return getStreamsFieldBuilder() + .addBuilder( + index, com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()); } /** + * + * *
      * Output only. A list of streams created with the session.
      * At least one stream is created with the session. In the future, larger
@@ -4547,29 +5398,34 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder addStreamsBu
      * instead, which is not yet available.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.ReadStream, + com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>( - streams_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); + streamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.ReadStream, + com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, + com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>( + streams_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); streams_ = null; } return streamsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4579,12 +5435,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadSession) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadSession) private static final com.google.cloud.bigquery.storage.v1beta2.ReadSession DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadSession(); } @@ -4593,27 +5449,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ReadSession getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadSession parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4628,6 +5484,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ReadSession getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java index 58ad2383b3..1fce122602 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadSessionOrBuilder.java @@ -1,217 +1,328 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface ReadSessionOrBuilder extends +public interface ReadSessionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadSession) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Unique identifier for the session, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. Time at which the session becomes invalid. After this time, subsequent
    * requests to read this Session will return errors. The expire_time is
    * automatically assigned and currently cannot be specified or updated.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); /** + * + * *
    * Immutable. Data format of the output data.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for dataFormat. */ int getDataFormatValue(); /** + * + * *
    * Immutable. Data format of the output data.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.DataFormat data_format = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The dataFormat. */ com.google.cloud.bigquery.storage.v1beta2.DataFormat getDataFormat(); /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the avroSchema field is set. */ boolean hasAvroSchema(); /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The avroSchema. */ com.google.cloud.bigquery.storage.v1beta2.AvroSchema getAvroSchema(); /** + * + * *
    * Output only. Avro schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.AvroSchema avro_schema = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1beta2.AvroSchemaOrBuilder getAvroSchemaOrBuilder(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the arrowSchema field is set. */ boolean hasArrowSchema(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The arrowSchema. */ com.google.cloud.bigquery.storage.v1beta2.ArrowSchema getArrowSchema(); /** + * + * *
    * Output only. Arrow schema.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.ArrowSchema arrow_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1beta2.ArrowSchemaOrBuilder getArrowSchemaOrBuilder(); /** + * + * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
    * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The table. */ java.lang.String getTable(); /** + * + * *
    * Immutable. Table that this ReadSession is reading from, in the form
    * `projects/{project_id}/datasets/{dataset_id}/tables/{table_id}
    * 
* - * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * string table = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the tableModifiers field is set. */ boolean hasTableModifiers(); /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The tableModifiers. */ com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers getTableModifiers(); /** + * + * *
    * Optional. Any modifiers which are applied when reading from the specified table.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiers table_modifiers = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder getTableModifiersOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableModifiersOrBuilder + getTableModifiersOrBuilder(); /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the readOptions field is set. */ boolean hasReadOptions(); /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The readOptions. */ com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions getReadOptions(); /** + * + * *
    * Optional. Read options for this session (e.g. column selection, filters).
    * 
* - * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptions read_options = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder getReadOptionsOrBuilder(); + com.google.cloud.bigquery.storage.v1beta2.ReadSession.TableReadOptionsOrBuilder + getReadOptionsOrBuilder(); /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -220,11 +331,14 @@ public interface ReadSessionOrBuilder extends
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getStreamsList(); + java.util.List getStreamsList(); /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -233,10 +347,14 @@ public interface ReadSessionOrBuilder extends
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1beta2.ReadStream getStreams(int index); /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -245,10 +363,14 @@ public interface ReadSessionOrBuilder extends
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getStreamsCount(); /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -257,11 +379,15 @@ public interface ReadSessionOrBuilder extends
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** + * + * *
    * Output only. A list of streams created with the session.
    * At least one stream is created with the session. In the future, larger
@@ -270,10 +396,11 @@ public interface ReadSessionOrBuilder extends
    * instead, which is not yet available.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.ReadStream streams = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsOrBuilder( - int index); + com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getStreamsOrBuilder(int index); public com.google.cloud.bigquery.storage.v1beta2.ReadSession.SchemaCase getSchemaCase(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java similarity index 68% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java index 12e348b32a..15356edcbf 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStream.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Information about a single stream that gets data out of the storage system.
  * Most of the information about `ReadStream` instances is aggregated, making
@@ -12,54 +29,60 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadStream}
  */
-public final class ReadStream extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ReadStream extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ReadStream)
     ReadStreamOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ReadStream.newBuilder() to construct.
   private ReadStream(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ReadStream() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ReadStream();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1beta2.StreamProto
+        .internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1beta2.StreamProto
+        .internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream.class, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder.class);
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream.class,
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -68,30 +91,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -111,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -136,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ReadStream)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ReadStream other = (com.google.cloud.bigquery.storage.v1beta2.ReadStream) obj; + com.google.cloud.bigquery.storage.v1beta2.ReadStream other = + (com.google.cloud.bigquery.storage.v1beta2.ReadStream) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -164,96 +187,103 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ReadStream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ReadStream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about a single stream that gets data out of the storage system.
    * Most of the information about `ReadStream` instances is aggregated, making
@@ -262,33 +292,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ReadStream}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ReadStream)
       com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta2.StreamProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta2.StreamProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta2.ReadStream.class, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta2.ReadStream.class,
+              com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1beta2.ReadStream.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -298,9 +327,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1beta2.StreamProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor;
     }
 
     @java.lang.Override
@@ -319,8 +348,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1beta2.ReadStream buildPartial() {
-      com.google.cloud.bigquery.storage.v1beta2.ReadStream result = new com.google.cloud.bigquery.storage.v1beta2.ReadStream(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.storage.v1beta2.ReadStream result =
+          new com.google.cloud.bigquery.storage.v1beta2.ReadStream(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -336,38 +368,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ReadStream
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ReadStream) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadStream)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ReadStream) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -375,7 +408,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ReadStream other) {
-      if (other == com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -407,17 +441,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -427,23 +463,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -452,21 +491,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -474,30 +514,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -507,27 +554,31 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -537,12 +588,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ReadStream) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ReadStream) private static final com.google.cloud.bigquery.storage.v1beta2.ReadStream DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ReadStream(); } @@ -551,27 +602,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ReadStream getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReadStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReadStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ReadStream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamName.java diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java index 042b73a755..0f2f0660af 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ReadStreamOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface ReadStreamOrBuilder extends +public interface ReadStreamOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ReadStream) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project_id}/locations/{location}/sessions/{session_id}/streams/{stream_id}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java similarity index 64% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java index e73a5cca02..f342e844e4 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Request message for `SplitReadStream`.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest} */ -public final class SplitReadStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SplitReadStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) SplitReadStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SplitReadStreamRequest.newBuilder() to construct. private SplitReadStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SplitReadStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SplitReadStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. Name of the stream to split.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the stream to split.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -98,6 +125,8 @@ public java.lang.String getName() { public static final int FRACTION_FIELD_NUMBER = 2; private double fraction_ = 0D; /** + * + * *
    * A value in the range (0.0, 1.0) that specifies the fractional point at
    * which the original stream should be split. The actual split point is
@@ -109,6 +138,7 @@ public java.lang.String getName() {
    * 
* * double fraction = 2; + * * @return The fraction. */ @java.lang.Override @@ -117,6 +147,7 @@ public double getFraction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,8 +159,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -149,8 +179,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (java.lang.Double.doubleToRawLongBits(fraction_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, fraction_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, fraction_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -160,18 +189,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest other = (com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) obj; + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest other = + (com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (java.lang.Double.doubleToLongBits(getFraction()) - != java.lang.Double.doubleToLongBits( - other.getFraction())) return false; + != java.lang.Double.doubleToLongBits(other.getFraction())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,137 +214,146 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FRACTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFraction())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFraction())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `SplitReadStream`.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.class, com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.class, + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -327,13 +364,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.getDefaultInstance(); } @@ -348,13 +386,17 @@ public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest build() @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest result = new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest result = + new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -368,46 +410,50 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.SplitReadSt public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -442,22 +488,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: { - fraction_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: + { + fraction_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -467,22 +516,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the stream to split.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,20 +545,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to split.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -512,28 +569,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the stream to split.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Name of the stream to split.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -543,17 +611,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. Name of the stream to split.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -561,8 +635,10 @@ public Builder setNameBytes( return this; } - private double fraction_ ; + private double fraction_; /** + * + * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -574,6 +650,7 @@ public Builder setNameBytes(
      * 
* * double fraction = 2; + * * @return The fraction. */ @java.lang.Override @@ -581,6 +658,8 @@ public double getFraction() { return fraction_; } /** + * + * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -592,17 +671,20 @@ public double getFraction() {
      * 
* * double fraction = 2; + * * @param value The fraction to set. * @return This builder for chaining. */ public Builder setFraction(double value) { - + fraction_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A value in the range (0.0, 1.0) that specifies the fractional point at
      * which the original stream should be split. The actual split point is
@@ -614,6 +696,7 @@ public Builder setFraction(double value) {
      * 
* * double fraction = 2; + * * @return This builder for chaining. */ public Builder clearFraction() { @@ -622,9 +705,9 @@ public Builder clearFraction() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -634,41 +717,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) - private static final com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest(); } - public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SplitReadStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SplitReadStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -680,9 +765,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java index cac57d55d0..3a8f4fb7de 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface SplitReadStreamRequestOrBuilder extends +public interface SplitReadStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.SplitReadStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the stream to split.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Name of the stream to split.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A value in the range (0.0, 1.0) that specifies the fractional point at
    * which the original stream should be split. The actual split point is
@@ -39,6 +66,7 @@ public interface SplitReadStreamRequestOrBuilder extends
    * 
* * double fraction = 2; + * * @return The fraction. */ double getFraction(); diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java similarity index 67% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java index 530d46e5d7..f87c67f295 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponse.java @@ -1,51 +1,67 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -/** - * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse} - */ -public final class SplitReadStreamResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse} */ +public final class SplitReadStreamResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse) SplitReadStreamResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SplitReadStreamResponse.newBuilder() to construct. private SplitReadStreamResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SplitReadStreamResponse() { - } + + private SplitReadStreamResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SplitReadStreamResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.class, + com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.Builder.class); } public static final int PRIMARY_STREAM_FIELD_NUMBER = 1; private com.google.cloud.bigquery.storage.v1beta2.ReadStream primaryStream_; /** + * + * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -53,6 +69,7 @@ protected java.lang.Object newInstance(
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; + * * @return Whether the primaryStream field is set. */ @java.lang.Override @@ -60,6 +77,8 @@ public boolean hasPrimaryStream() { return primaryStream_ != null; } /** + * + * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -67,13 +86,18 @@ public boolean hasPrimaryStream() {
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; + * * @return The primaryStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadStream getPrimaryStream() { - return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : primaryStream_; + return primaryStream_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() + : primaryStream_; } /** + * + * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -84,18 +108,23 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getPrimaryStream() {
    */
   @java.lang.Override
   public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getPrimaryStreamOrBuilder() {
-    return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : primaryStream_;
+    return primaryStream_ == null
+        ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()
+        : primaryStream_;
   }
 
   public static final int REMAINDER_STREAM_FIELD_NUMBER = 2;
   private com.google.cloud.bigquery.storage.v1beta2.ReadStream remainderStream_;
   /**
+   *
+   *
    * 
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; + * * @return Whether the remainderStream field is set. */ @java.lang.Override @@ -103,19 +132,26 @@ public boolean hasRemainderStream() { return remainderStream_ != null; } /** + * + * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; + * * @return The remainderStream. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ReadStream getRemainderStream() { - return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : remainderStream_; + return remainderStream_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() + : remainderStream_; } /** + * + * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
@@ -124,11 +160,15 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getRemainderStream()
    * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2;
    */
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getRemainderStreamOrBuilder() {
-    return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : remainderStream_;
+  public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder
+      getRemainderStreamOrBuilder() {
+    return remainderStream_ == null
+        ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()
+        : remainderStream_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -140,8 +180,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (primaryStream_ != null) {
       output.writeMessage(1, getPrimaryStream());
     }
@@ -158,12 +197,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (primaryStream_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getPrimaryStream());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrimaryStream());
     }
     if (remainderStream_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getRemainderStream());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRemainderStream());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -173,22 +210,21 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse other = (com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse) obj;
+    com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse other =
+        (com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse) obj;
 
     if (hasPrimaryStream() != other.hasPrimaryStream()) return false;
     if (hasPrimaryStream()) {
-      if (!getPrimaryStream()
-          .equals(other.getPrimaryStream())) return false;
+      if (!getPrimaryStream().equals(other.getPrimaryStream())) return false;
     }
     if (hasRemainderStream() != other.hasRemainderStream()) return false;
     if (hasRemainderStream()) {
-      if (!getRemainderStream()
-          .equals(other.getRemainderStream())) return false;
+      if (!getRemainderStream().equals(other.getRemainderStream())) return false;
     }
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -215,125 +251,130 @@ public int hashCode() {
   }
 
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
+      parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
-  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
+      parseDelimitedFrom(
+          java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /**
-   * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse}
-   */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  /** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse} */
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)
       com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.class, com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.class,
+              com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.Builder.class);
     }
 
-    // Construct using com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -352,13 +393,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse getDefaultInstanceForType() {
+    public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
+        getDefaultInstanceForType() {
       return com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.getDefaultInstance();
     }
 
@@ -373,23 +415,25 @@ public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse build()
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse buildPartial() {
-      com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse result = new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse result =
+          new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse result) {
+    private void buildPartial0(
+        com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
-        result.primaryStream_ = primaryStreamBuilder_ == null
-            ? primaryStream_
-            : primaryStreamBuilder_.build();
+        result.primaryStream_ =
+            primaryStreamBuilder_ == null ? primaryStream_ : primaryStreamBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.remainderStream_ = remainderStreamBuilder_ == null
-            ? remainderStream_
-            : remainderStreamBuilder_.build();
+        result.remainderStream_ =
+            remainderStreamBuilder_ == null ? remainderStream_ : remainderStreamBuilder_.build();
       }
     }
 
@@ -397,46 +441,50 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.SplitReadSt
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse other) {
-      if (other == com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse other) {
+      if (other
+          == com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse.getDefaultInstance())
+        return this;
       if (other.hasPrimaryStream()) {
         mergePrimaryStream(other.getPrimaryStream());
       }
@@ -469,26 +517,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              input.readMessage(
-                  getPrimaryStreamFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getRemainderStreamFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                input.readMessage(getPrimaryStreamFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getRemainderStreamFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -498,12 +545,18 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.bigquery.storage.v1beta2.ReadStream primaryStream_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> primaryStreamBuilder_;
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream,
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>
+        primaryStreamBuilder_;
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -511,12 +564,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; + * * @return Whether the primaryStream field is set. */ public boolean hasPrimaryStream() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -524,16 +580,21 @@ public boolean hasPrimaryStream() {
      * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; + * * @return The primaryStream. */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getPrimaryStream() { if (primaryStreamBuilder_ == null) { - return primaryStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : primaryStream_; + return primaryStream_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() + : primaryStream_; } else { return primaryStreamBuilder_.getMessage(); } } /** + * + * *
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -556,6 +617,8 @@ public Builder setPrimaryStream(com.google.cloud.bigquery.storage.v1beta2.ReadSt
       return this;
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -576,6 +639,8 @@ public Builder setPrimaryStream(
       return this;
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -586,9 +651,10 @@ public Builder setPrimaryStream(
      */
     public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1beta2.ReadStream value) {
       if (primaryStreamBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0) &&
-          primaryStream_ != null &&
-          primaryStream_ != com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000001) != 0)
+            && primaryStream_ != null
+            && primaryStream_
+                != com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()) {
           getPrimaryStreamBuilder().mergeFrom(value);
         } else {
           primaryStream_ = value;
@@ -601,6 +667,8 @@ public Builder mergePrimaryStream(com.google.cloud.bigquery.storage.v1beta2.Read
       return this;
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -620,6 +688,8 @@ public Builder clearPrimaryStream() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -634,6 +704,8 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getPrimarySt
       return getPrimaryStreamFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -642,15 +714,19 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getPrimarySt
      *
      * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getPrimaryStreamOrBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder
+        getPrimaryStreamOrBuilder() {
       if (primaryStreamBuilder_ != null) {
         return primaryStreamBuilder_.getMessageOrBuilder();
       } else {
-        return primaryStream_ == null ?
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : primaryStream_;
+        return primaryStream_ == null
+            ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()
+            : primaryStream_;
       }
     }
     /**
+     *
+     *
      * 
      * Primary stream, which contains the beginning portion of
      * |original_stream|. An empty value indicates that the original stream can no
@@ -660,14 +736,17 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getPrimaryS
      * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> 
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream,
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>
         getPrimaryStreamFieldBuilder() {
       if (primaryStreamBuilder_ == null) {
-        primaryStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>(
-                getPrimaryStream(),
-                getParentForChildren(),
-                isClean());
+        primaryStreamBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1beta2.ReadStream,
+                com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
+                com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>(
+                getPrimaryStream(), getParentForChildren(), isClean());
         primaryStream_ = null;
       }
       return primaryStreamBuilder_;
@@ -675,36 +754,49 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getPrimaryS
 
     private com.google.cloud.bigquery.storage.v1beta2.ReadStream remainderStream_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> remainderStreamBuilder_;
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream,
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>
+        remainderStreamBuilder_;
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; + * * @return Whether the remainderStream field is set. */ public boolean hasRemainderStream() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
      * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; + * * @return The remainderStream. */ public com.google.cloud.bigquery.storage.v1beta2.ReadStream getRemainderStream() { if (remainderStreamBuilder_ == null) { - return remainderStream_ == null ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : remainderStream_; + return remainderStream_ == null + ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() + : remainderStream_; } else { return remainderStreamBuilder_.getMessage(); } } /** + * + * *
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -726,6 +818,8 @@ public Builder setRemainderStream(com.google.cloud.bigquery.storage.v1beta2.Read
       return this;
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -745,6 +839,8 @@ public Builder setRemainderStream(
       return this;
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -752,11 +848,13 @@ public Builder setRemainderStream(
      *
      * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2;
      */
-    public Builder mergeRemainderStream(com.google.cloud.bigquery.storage.v1beta2.ReadStream value) {
+    public Builder mergeRemainderStream(
+        com.google.cloud.bigquery.storage.v1beta2.ReadStream value) {
       if (remainderStreamBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0) &&
-          remainderStream_ != null &&
-          remainderStream_ != com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000002) != 0)
+            && remainderStream_ != null
+            && remainderStream_
+                != com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()) {
           getRemainderStreamBuilder().mergeFrom(value);
         } else {
           remainderStream_ = value;
@@ -769,6 +867,8 @@ public Builder mergeRemainderStream(com.google.cloud.bigquery.storage.v1beta2.Re
       return this;
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -787,6 +887,8 @@ public Builder clearRemainderStream() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -794,12 +896,15 @@ public Builder clearRemainderStream() {
      *
      * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getRemainderStreamBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder
+        getRemainderStreamBuilder() {
       bitField0_ |= 0x00000002;
       onChanged();
       return getRemainderStreamFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -807,15 +912,19 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder getRemainder
      *
      * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2;
      */
-    public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getRemainderStreamOrBuilder() {
+    public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder
+        getRemainderStreamOrBuilder() {
       if (remainderStreamBuilder_ != null) {
         return remainderStreamBuilder_.getMessageOrBuilder();
       } else {
-        return remainderStream_ == null ?
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance() : remainderStream_;
+        return remainderStream_ == null
+            ? com.google.cloud.bigquery.storage.v1beta2.ReadStream.getDefaultInstance()
+            : remainderStream_;
       }
     }
     /**
+     *
+     *
      * 
      * Remainder stream, which contains the tail of |original_stream|. An empty
      * value indicates that the original stream can no longer be split.
@@ -824,21 +933,24 @@ public com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getRemainde
      * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder> 
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream,
+            com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
+            com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>
         getRemainderStreamFieldBuilder() {
       if (remainderStreamBuilder_ == null) {
-        remainderStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.bigquery.storage.v1beta2.ReadStream, com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder, com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>(
-                getRemainderStream(),
-                getParentForChildren(),
-                isClean());
+        remainderStreamBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.bigquery.storage.v1beta2.ReadStream,
+                com.google.cloud.bigquery.storage.v1beta2.ReadStream.Builder,
+                com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder>(
+                getRemainderStream(), getParentForChildren(), isClean());
         remainderStream_ = null;
       }
       return remainderStreamBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -848,41 +960,43 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)
-  private static final com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse();
   }
 
-  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse getDefaultInstance() {
+  public static com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SplitReadStreamResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SplitReadStreamResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -894,9 +1008,8 @@ public com.google.protobuf.Parser getParserForType() {
   }
 
   @java.lang.Override
-  public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse getDefaultInstanceForType() {
+  public com.google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java
similarity index 78%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java
index 96a62e1daf..adb37ece00 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/SplitReadStreamResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
-public interface SplitReadStreamResponseOrBuilder extends
+public interface SplitReadStreamResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.SplitReadStreamResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -15,10 +33,13 @@ public interface SplitReadStreamResponseOrBuilder extends
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; + * * @return Whether the primaryStream field is set. */ boolean hasPrimaryStream(); /** + * + * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -26,10 +47,13 @@ public interface SplitReadStreamResponseOrBuilder extends
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream primary_stream = 1; + * * @return The primaryStream. */ com.google.cloud.bigquery.storage.v1beta2.ReadStream getPrimaryStream(); /** + * + * *
    * Primary stream, which contains the beginning portion of
    * |original_stream|. An empty value indicates that the original stream can no
@@ -41,26 +65,34 @@ public interface SplitReadStreamResponseOrBuilder extends
   com.google.cloud.bigquery.storage.v1beta2.ReadStreamOrBuilder getPrimaryStreamOrBuilder();
 
   /**
+   *
+   *
    * 
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; + * * @return Whether the remainderStream field is set. */ boolean hasRemainderStream(); /** + * + * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
    * 
* * .google.cloud.bigquery.storage.v1beta2.ReadStream remainder_stream = 2; + * * @return The remainderStream. */ com.google.cloud.bigquery.storage.v1beta2.ReadStream getRemainderStream(); /** + * + * *
    * Remainder stream, which contains the tail of |original_stream|. An empty
    * value indicates that the original stream can no longer be split.
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java
similarity index 69%
rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java
rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java
index 57e6448766..b4160bc776 100644
--- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java
+++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageError.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/bigquery/storage/v1beta2/storage.proto
 
 package com.google.cloud.bigquery.storage.v1beta2;
 
 /**
+ *
+ *
  * 
  * Structured custom BigQuery Storage error message. The error can be attached
  * as error details in the returned rpc Status. In particular, the use of error
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StorageError}
  */
-public final class StorageError extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StorageError extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.StorageError)
     StorageErrorOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StorageError.newBuilder() to construct.
   private StorageError(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StorageError() {
     code_ = 0;
     entity_ = "";
@@ -30,39 +48,43 @@ private StorageError() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StorageError();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+        .internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable
+    return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+        .internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.bigquery.storage.v1beta2.StorageError.class, com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder.class);
+            com.google.cloud.bigquery.storage.v1beta2.StorageError.class,
+            com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Error code for `StorageError`.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode} */ - public enum StorageErrorCode - implements com.google.protobuf.ProtocolMessageEnum { + public enum StorageErrorCode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default error.
      * 
@@ -71,6 +93,8 @@ public enum StorageErrorCode */ STORAGE_ERROR_CODE_UNSPECIFIED(0), /** + * + * *
      * Table is not found in the system.
      * 
@@ -79,6 +103,8 @@ public enum StorageErrorCode */ TABLE_NOT_FOUND(1), /** + * + * *
      * Stream is already committed.
      * 
@@ -87,6 +113,8 @@ public enum StorageErrorCode */ STREAM_ALREADY_COMMITTED(2), /** + * + * *
      * Stream is not found.
      * 
@@ -95,6 +123,8 @@ public enum StorageErrorCode */ STREAM_NOT_FOUND(3), /** + * + * *
      * Invalid Stream type.
      * For example, you try to commit a stream that is not pending.
@@ -104,6 +134,8 @@ public enum StorageErrorCode
      */
     INVALID_STREAM_TYPE(4),
     /**
+     *
+     *
      * 
      * Invalid Stream state.
      * For example, you try to commit a stream that is not finalized or is
@@ -114,6 +146,8 @@ public enum StorageErrorCode
      */
     INVALID_STREAM_STATE(5),
     /**
+     *
+     *
      * 
      * Stream is finalized.
      * 
@@ -125,6 +159,8 @@ public enum StorageErrorCode ; /** + * + * *
      * Default error.
      * 
@@ -133,6 +169,8 @@ public enum StorageErrorCode */ public static final int STORAGE_ERROR_CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Table is not found in the system.
      * 
@@ -141,6 +179,8 @@ public enum StorageErrorCode */ public static final int TABLE_NOT_FOUND_VALUE = 1; /** + * + * *
      * Stream is already committed.
      * 
@@ -149,6 +189,8 @@ public enum StorageErrorCode */ public static final int STREAM_ALREADY_COMMITTED_VALUE = 2; /** + * + * *
      * Stream is not found.
      * 
@@ -157,6 +199,8 @@ public enum StorageErrorCode */ public static final int STREAM_NOT_FOUND_VALUE = 3; /** + * + * *
      * Invalid Stream type.
      * For example, you try to commit a stream that is not pending.
@@ -166,6 +210,8 @@ public enum StorageErrorCode
      */
     public static final int INVALID_STREAM_TYPE_VALUE = 4;
     /**
+     *
+     *
      * 
      * Invalid Stream state.
      * For example, you try to commit a stream that is not finalized or is
@@ -176,6 +222,8 @@ public enum StorageErrorCode
      */
     public static final int INVALID_STREAM_STATE_VALUE = 5;
     /**
+     *
+     *
      * 
      * Stream is finalized.
      * 
@@ -184,7 +232,6 @@ public enum StorageErrorCode */ public static final int STREAM_FINALIZED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -209,44 +256,53 @@ public static StorageErrorCode valueOf(int value) { */ public static StorageErrorCode forNumber(int value) { switch (value) { - case 0: return STORAGE_ERROR_CODE_UNSPECIFIED; - case 1: return TABLE_NOT_FOUND; - case 2: return STREAM_ALREADY_COMMITTED; - case 3: return STREAM_NOT_FOUND; - case 4: return INVALID_STREAM_TYPE; - case 5: return INVALID_STREAM_STATE; - case 6: return STREAM_FINALIZED; - default: return null; + case 0: + return STORAGE_ERROR_CODE_UNSPECIFIED; + case 1: + return TABLE_NOT_FOUND; + case 2: + return STREAM_ALREADY_COMMITTED; + case 3: + return STREAM_NOT_FOUND; + case 4: + return INVALID_STREAM_TYPE; + case 5: + return INVALID_STREAM_STATE; + case 6: + return STREAM_FINALIZED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - StorageErrorCode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StorageErrorCode findValueByNumber(int number) { - return StorageErrorCode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StorageErrorCode findValueByNumber(int number) { + return StorageErrorCode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageError.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageError.getDescriptor() + .getEnumTypes() + .get(0); } private static final StorageErrorCode[] VALUES = values(); @@ -254,8 +310,7 @@ public StorageErrorCode findValueByNumber(int number) { public static StorageErrorCode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -275,38 +330,53 @@ private StorageErrorCode(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_ = 0; /** + * + * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode getCode() { - com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode result = com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.forNumber(code_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode getCode() { + com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode result = + com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.forNumber(code_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.UNRECOGNIZED + : result; } public static final int ENTITY_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object entity_ = ""; /** + * + * *
    * Name of the failed entity.
    * 
* * string entity = 2; + * * @return The entity. */ @java.lang.Override @@ -315,29 +385,29 @@ public java.lang.String getEntity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; } } /** + * + * *
    * Name of the failed entity.
    * 
* * string entity = 2; + * * @return The bytes for entity. */ @java.lang.Override - public com.google.protobuf.ByteString - getEntityBytes() { + public com.google.protobuf.ByteString getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entity_ = b; return b; } else { @@ -346,14 +416,18 @@ public java.lang.String getEntity() { } public static final int ERROR_MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object errorMessage_ = ""; /** + * + * *
    * Message that describes the error.
    * 
* * string error_message = 3; + * * @return The errorMessage. */ @java.lang.Override @@ -362,29 +436,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * Message that describes the error.
    * 
* * string error_message = 3; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -393,6 +467,7 @@ public java.lang.String getErrorMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -404,9 +479,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.STORAGE_ERROR_CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode + .STORAGE_ERROR_CODE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { @@ -424,9 +501,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.STORAGE_ERROR_CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode + .STORAGE_ERROR_CODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entity_); @@ -442,18 +521,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.StorageError)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.StorageError other = (com.google.cloud.bigquery.storage.v1beta2.StorageError) obj; + com.google.cloud.bigquery.storage.v1beta2.StorageError other = + (com.google.cloud.bigquery.storage.v1beta2.StorageError) obj; if (code_ != other.code_) return false; - if (!getEntity() - .equals(other.getEntity())) return false; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; + if (!getEntity().equals(other.getEntity())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -477,96 +555,104 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.StorageError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.StorageError prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.StorageError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Structured custom BigQuery Storage error message. The error can be attached
    * as error details in the returned rpc Status. In particular, the use of error
@@ -576,33 +662,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StorageError}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.StorageError)
       com.google.cloud.bigquery.storage.v1beta2.StorageErrorOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.bigquery.storage.v1beta2.StorageError.class, com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder.class);
+              com.google.cloud.bigquery.storage.v1beta2.StorageError.class,
+              com.google.cloud.bigquery.storage.v1beta2.StorageError.Builder.class);
     }
 
     // Construct using com.google.cloud.bigquery.storage.v1beta2.StorageError.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -614,9 +699,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.bigquery.storage.v1beta2.StorageProto
+          .internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor;
     }
 
     @java.lang.Override
@@ -635,8 +720,11 @@ public com.google.cloud.bigquery.storage.v1beta2.StorageError build() {
 
     @java.lang.Override
     public com.google.cloud.bigquery.storage.v1beta2.StorageError buildPartial() {
-      com.google.cloud.bigquery.storage.v1beta2.StorageError result = new com.google.cloud.bigquery.storage.v1beta2.StorageError(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.bigquery.storage.v1beta2.StorageError result =
+          new com.google.cloud.bigquery.storage.v1beta2.StorageError(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -658,38 +746,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.StorageErro
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.bigquery.storage.v1beta2.StorageError) {
-        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StorageError)other);
+        return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StorageError) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -697,7 +786,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.StorageError other) {
-      if (other == com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance()) return this;
+      if (other == com.google.cloud.bigquery.storage.v1beta2.StorageError.getDefaultInstance())
+        return this;
       if (other.code_ != 0) {
         setCodeValue(other.getCodeValue());
       }
@@ -737,27 +827,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              code_ = input.readEnum();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 8
-            case 18: {
-              entity_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              errorMessage_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                code_ = input.readEnum();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 8
+            case 18:
+              {
+                entity_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                errorMessage_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -767,26 +861,34 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -797,28 +899,38 @@ public Builder setCodeValue(int value) { return this; } /** + * + * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode getCode() { - com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode result = com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.forNumber(code_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode result = + com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.forNumber(code_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode.UNRECOGNIZED + : result; } /** + * + * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode value) { + public Builder setCode( + com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode value) { if (value == null) { throw new NullPointerException(); } @@ -828,11 +940,14 @@ public Builder setCode(com.google.cloud.bigquery.storage.v1beta2.StorageError.St return this; } /** + * + * *
      * BigQuery Storage specific error code.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -844,18 +959,20 @@ public Builder clearCode() { private java.lang.Object entity_ = ""; /** + * + * *
      * Name of the failed entity.
      * 
* * string entity = 2; + * * @return The entity. */ public java.lang.String getEntity() { java.lang.Object ref = entity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); entity_ = s; return s; @@ -864,20 +981,21 @@ public java.lang.String getEntity() { } } /** + * + * *
      * Name of the failed entity.
      * 
* * string entity = 2; + * * @return The bytes for entity. */ - public com.google.protobuf.ByteString - getEntityBytes() { + public com.google.protobuf.ByteString getEntityBytes() { java.lang.Object ref = entity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); entity_ = b; return b; } else { @@ -885,28 +1003,35 @@ public java.lang.String getEntity() { } } /** + * + * *
      * Name of the failed entity.
      * 
* * string entity = 2; + * * @param value The entity to set. * @return This builder for chaining. */ - public Builder setEntity( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } entity_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Name of the failed entity.
      * 
* * string entity = 2; + * * @return This builder for chaining. */ public Builder clearEntity() { @@ -916,17 +1041,21 @@ public Builder clearEntity() { return this; } /** + * + * *
      * Name of the failed entity.
      * 
* * string entity = 2; + * * @param value The bytes for entity to set. * @return This builder for chaining. */ - public Builder setEntityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); entity_ = value; bitField0_ |= 0x00000002; @@ -936,18 +1065,20 @@ public Builder setEntityBytes( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * Message that describes the error.
      * 
* * string error_message = 3; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -956,20 +1087,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * Message that describes the error.
      * 
* * string error_message = 3; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -977,28 +1109,35 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * Message that describes the error.
      * 
* * string error_message = 3; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } errorMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Message that describes the error.
      * 
* * string error_message = 3; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { @@ -1008,26 +1147,30 @@ public Builder clearErrorMessage() { return this; } /** + * + * *
      * Message that describes the error.
      * 
* * string error_message = 3; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); errorMessage_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1037,12 +1180,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.StorageError) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.StorageError) private static final com.google.cloud.bigquery.storage.v1beta2.StorageError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.StorageError(); } @@ -1051,27 +1194,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.StorageError getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1086,6 +1229,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.StorageError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java index 5ff3305f7f..24f7a8eb5e 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageErrorOrBuilder.java @@ -1,68 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface StorageErrorOrBuilder extends +public interface StorageErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.StorageError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * BigQuery Storage specific error code.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode code = 1; + * * @return The code. */ com.google.cloud.bigquery.storage.v1beta2.StorageError.StorageErrorCode getCode(); /** + * + * *
    * Name of the failed entity.
    * 
* * string entity = 2; + * * @return The entity. */ java.lang.String getEntity(); /** + * + * *
    * Name of the failed entity.
    * 
* * string entity = 2; + * * @return The bytes for entity. */ - com.google.protobuf.ByteString - getEntityBytes(); + com.google.protobuf.ByteString getEntityBytes(); /** + * + * *
    * Message that describes the error.
    * 
* * string error_message = 3; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * Message that describes the error.
    * 
* * string error_message = 3; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); } diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java new file mode 100644 index 0000000000..59abc99bc1 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StorageProto.java @@ -0,0 +1,506 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public final class StorageProto { + private StorageProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/bigquery/storage/v1beta2/" + + "storage.proto\022%google.cloud.bigquery.sto" + + "rage.v1beta2\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\0321google/cloud/bigquery/storage/v" + + "1beta2/arrow.proto\0320google/cloud/bigquer" + + "y/storage/v1beta2/avro.proto\0324google/clo" + + "ud/bigquery/storage/v1beta2/protobuf.pro" + + "to\0322google/cloud/bigquery/storage/v1beta" + + "2/stream.proto\0321google/cloud/bigquery/st" + + "orage/v1beta2/table.proto\032\037google/protob" + + "uf/timestamp.proto\032\036google/protobuf/wrap" + + "pers.proto\032\027google/rpc/status.proto\"\310\001\n\030" + + "CreateReadSessionRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" + + "s.com/Project\022M\n\014read_session\030\002 \001(\01322.go" + + "ogle.cloud.bigquery.storage.v1beta2.Read" + + "SessionB\003\340A\002\022\030\n\020max_stream_count\030\003 \001(\005\"i" + + "\n\017ReadRowsRequest\022F\n\013read_stream\030\001 \001(\tB1" + + "\340A\002\372A+\n)bigquerystorage.googleapis.com/R" + + "eadStream\022\016\n\006offset\030\002 \001(\003\")\n\rThrottleSta" + + "te\022\030\n\020throttle_percent\030\001 \001(\005\"\234\001\n\013StreamS" + + "tats\022M\n\010progress\030\002 \001(\0132;.google.cloud.bi" + + "gquery.storage.v1beta2.StreamStats.Progr" + + "ess\032>\n\010Progress\022\031\n\021at_response_start\030\001 \001" + + "(\001\022\027\n\017at_response_end\030\002 \001(\001\"\205\004\n\020ReadRows" + + "Response\022D\n\tavro_rows\030\003 \001(\0132/.google.clo" + + "ud.bigquery.storage.v1beta2.AvroRowsH\000\022U" + + "\n\022arrow_record_batch\030\004 \001(\01327.google.clou" + + "d.bigquery.storage.v1beta2.ArrowRecordBa" + + "tchH\000\022\021\n\trow_count\030\006 \001(\003\022A\n\005stats\030\002 \001(\0132" + + "2.google.cloud.bigquery.storage.v1beta2." + + "StreamStats\022L\n\016throttle_state\030\005 \001(\01324.go" + + "ogle.cloud.bigquery.storage.v1beta2.Thro" + + "ttleState\022M\n\013avro_schema\030\007 \001(\01321.google." + + "cloud.bigquery.storage.v1beta2.AvroSchem" + + "aB\003\340A\003H\001\022O\n\014arrow_schema\030\010 \001(\01322.google." + + "cloud.bigquery.storage.v1beta2.ArrowSche" + + "maB\003\340A\003H\001B\006\n\004rowsB\010\n\006schema\"k\n\026SplitRead" + + "StreamRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)big" + + "querystorage.googleapis.com/ReadStream\022\020" + + "\n\010fraction\030\002 \001(\001\"\261\001\n\027SplitReadStreamResp" + + "onse\022I\n\016primary_stream\030\001 \001(\01321.google.cl" + + "oud.bigquery.storage.v1beta2.ReadStream\022" + + "K\n\020remainder_stream\030\002 \001(\01321.google.cloud" + + ".bigquery.storage.v1beta2.ReadStream\"\240\001\n" + + "\030CreateWriteStreamRequest\0225\n\006parent\030\001 \001(" + + "\tB%\340A\002\372A\037\n\035bigquery.googleapis.com/Table" + + "\022M\n\014write_stream\030\002 \001(\01322.google.cloud.bi" + + "gquery.storage.v1beta2.WriteStreamB\003\340A\002\"" + + "\227\003\n\021AppendRowsRequest\022H\n\014write_stream\030\001 " + + "\001(\tB2\340A\002\372A,\n*bigquerystorage.googleapis." + + "com/WriteStream\022+\n\006offset\030\002 \001(\0132\033.google" + + ".protobuf.Int64Value\022X\n\nproto_rows\030\004 \001(\013" + + "2B.google.cloud.bigquery.storage.v1beta2" + + ".AppendRowsRequest.ProtoDataH\000\022\020\n\010trace_" + + "id\030\006 \001(\t\032\226\001\n\tProtoData\022I\n\rwriter_schema\030" + + "\001 \001(\01322.google.cloud.bigquery.storage.v1" + + "beta2.ProtoSchema\022>\n\004rows\030\002 \001(\01320.google" + + ".cloud.bigquery.storage.v1beta2.ProtoRow" + + "sB\006\n\004rows\"\257\002\n\022AppendRowsResponse\022_\n\rappe" + + "nd_result\030\001 \001(\0132F.google.cloud.bigquery." + + "storage.v1beta2.AppendRowsResponse.Appen" + + "dResultH\000\022#\n\005error\030\002 \001(\0132\022.google.rpc.St" + + "atusH\000\022J\n\016updated_schema\030\003 \001(\01322.google." + + "cloud.bigquery.storage.v1beta2.TableSche" + + "ma\032;\n\014AppendResult\022+\n\006offset\030\001 \001(\0132\033.goo" + + "gle.protobuf.Int64ValueB\n\n\010response\"Y\n\025G" + + "etWriteStreamRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372" + + "A,\n*bigquerystorage.googleapis.com/Write" + + "Stream\"Q\n\036BatchCommitWriteStreamsRequest" + + "\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\032\n\rwrite_streams\030\002" + + " \003(\tB\003\340A\002\"\236\001\n\037BatchCommitWriteStreamsRes" + + "ponse\022/\n\013commit_time\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\022J\n\rstream_errors\030\002 \003(\01323." + + "google.cloud.bigquery.storage.v1beta2.St" + + "orageError\"^\n\032FinalizeWriteStreamRequest" + + "\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*bigquerystorage." + + "googleapis.com/WriteStream\"0\n\033FinalizeWr" + + "iteStreamResponse\022\021\n\trow_count\030\001 \001(\003\"\211\001\n" + + "\020FlushRowsRequest\022H\n\014write_stream\030\001 \001(\tB" + + "2\340A\002\372A,\n*bigquerystorage.googleapis.com/" + + "WriteStream\022+\n\006offset\030\002 \001(\0132\033.google.pro" + + "tobuf.Int64Value\"#\n\021FlushRowsResponse\022\016\n" + + "\006offset\030\001 \001(\003\"\324\002\n\014StorageError\022R\n\004code\030\001" + + " \001(\0162D.google.cloud.bigquery.storage.v1b" + + "eta2.StorageError.StorageErrorCode\022\016\n\006en" + + "tity\030\002 \001(\t\022\025\n\rerror_message\030\003 \001(\t\"\310\001\n\020St" + + "orageErrorCode\022\"\n\036STORAGE_ERROR_CODE_UNS" + + "PECIFIED\020\000\022\023\n\017TABLE_NOT_FOUND\020\001\022\034\n\030STREA" + + "M_ALREADY_COMMITTED\020\002\022\024\n\020STREAM_NOT_FOUN" + + "D\020\003\022\027\n\023INVALID_STREAM_TYPE\020\004\022\030\n\024INVALID_" + + "STREAM_STATE\020\005\022\024\n\020STREAM_FINALIZED\020\0062\277\006\n" + + "\014BigQueryRead\022\370\001\n\021CreateReadSession\022?.go" + + "ogle.cloud.bigquery.storage.v1beta2.Crea" + + "teReadSessionRequest\0322.google.cloud.bigq" + + "uery.storage.v1beta2.ReadSession\"n\202\323\344\223\002A" + + "\".google.cloud.bigquery.sto" + + "rage.v1beta2.SplitReadStreamResponse\"C\202\323" + + "\344\223\002=\022;/v1beta2/{name=projects/*/location" + + "s/*/sessions/*/streams/*}\032{\312A\036bigqueryst" + + "orage.googleapis.com\322AWhttps://www.googl" + + "eapis.com/auth/bigquery,https://www.goog" + + "leapis.com/auth/cloud-platform2\226\014\n\rBigQu" + + "eryWrite\022\346\001\n\021CreateWriteStream\022?.google." + + "cloud.bigquery.storage.v1beta2.CreateWri" + + "teStreamRequest\0322.google.cloud.bigquery." + + "storage.v1beta2.WriteStream\"\\\202\323\344\223\002@\"0/v1" + + "beta2/{parent=projects/*/datasets/*/tabl" + + "es/*}:\014write_stream\332A\023parent,write_strea" + + "m\022\341\001\n\nAppendRows\0228.google.cloud.bigquery" + + ".storage.v1beta2.AppendRowsRequest\0329.goo" + + "gle.cloud.bigquery.storage.v1beta2.Appen" + + "dRowsResponse\"Z\202\323\344\223\002E\"@/v1beta2/{write_s" + + "tream=projects/*/datasets/*/tables/*/str" + + "eams/*}:\001*\332A\014write_stream(\0010\001\022\316\001\n\016GetWri" + + "teStream\022<.google.cloud.bigquery.storage" + + ".v1beta2.GetWriteStreamRequest\0322.google." + + "cloud.bigquery.storage.v1beta2.WriteStre" + + "am\"J\202\323\344\223\002=\"8/v1beta2/{name=projects/*/da" + + "tasets/*/tables/*/streams/*}:\001*\332A\004name\022\350" + + "\001\n\023FinalizeWriteStream\022A.google.cloud.bi" + + "gquery.storage.v1beta2.FinalizeWriteStre" + + "amRequest\032B.google.cloud.bigquery.storag" + + "e.v1beta2.FinalizeWriteStreamResponse\"J\202" + + "\323\344\223\002=\"8/v1beta2/{name=projects/*/dataset" + + "s/*/tables/*/streams/*}:\001*\332A\004name\022\353\001\n\027Ba" + + "tchCommitWriteStreams\022E.google.cloud.big" + + "query.storage.v1beta2.BatchCommitWriteSt" + + "reamsRequest\032F.google.cloud.bigquery.sto" + + "rage.v1beta2.BatchCommitWriteStreamsResp" + + "onse\"A\202\323\344\223\0022\0220/v1beta2/{parent=projects/" + + "*/datasets/*/tables/*}\332A\006parent\022\332\001\n\tFlus" + + "hRows\0227.google.cloud.bigquery.storage.v1" + + "beta2.FlushRowsRequest\0328.google.cloud.bi" + + "gquery.storage.v1beta2.FlushRowsResponse" + + "\"Z\202\323\344\223\002E\"@/v1beta2/{write_stream=project" + + "s/*/datasets/*/tables/*/streams/*}:\001*\332A\014" + + "write_stream\032\260\001\312A\036bigquerystorage.google" + + "apis.com\322A\213\001https://www.googleapis.com/a" + + "uth/bigquery,https://www.googleapis.com/" + + "auth/bigquery.insertdata,https://www.goo" + + "gleapis.com/auth/cloud-platformB\200\001\n)com." + + "google.cloud.bigquery.storage.v1beta2B\014S" + + "torageProtoP\001ZCcloud.google.com/go/bigqu" + + "ery/storage/apiv1beta2/storagepb;storage" + + "pbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_CreateReadSessionRequest_descriptor, + new java.lang.String[] { + "Parent", "ReadSession", "MaxStreamCount", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsRequest_descriptor, + new java.lang.String[] { + "ReadStream", "Offset", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor, + new java.lang.String[] { + "ThrottlePercent", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor, + new java.lang.String[] { + "Progress", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor = + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor, + new java.lang.String[] { + "AtResponseStart", "AtResponseEnd", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadRowsResponse_descriptor, + new java.lang.String[] { + "AvroRows", + "ArrowRecordBatch", + "RowCount", + "Stats", + "ThrottleState", + "AvroSchema", + "ArrowSchema", + "Rows", + "Schema", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamRequest_descriptor, + new java.lang.String[] { + "Name", "Fraction", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_SplitReadStreamResponse_descriptor, + new java.lang.String[] { + "PrimaryStream", "RemainderStream", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_CreateWriteStreamRequest_descriptor, + new java.lang.String[] { + "Parent", "WriteStream", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor, + new java.lang.String[] { + "WriteStream", "Offset", "ProtoRows", "TraceId", "Rows", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor = + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsRequest_ProtoData_descriptor, + new java.lang.String[] { + "WriterSchema", "Rows", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor, + new java.lang.String[] { + "AppendResult", "Error", "UpdatedSchema", "Response", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor = + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_AppendRowsResponse_AppendResult_descriptor, + new java.lang.String[] { + "Offset", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_GetWriteStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsRequest_descriptor, + new java.lang.String[] { + "Parent", "WriteStreams", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_BatchCommitWriteStreamsResponse_descriptor, + new java.lang.String[] { + "CommitTime", "StreamErrors", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_FinalizeWriteStreamResponse_descriptor, + new java.lang.String[] { + "RowCount", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsRequest_descriptor, + new java.lang.String[] { + "WriteStream", "Offset", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_FlushRowsResponse_descriptor, + new java.lang.String[] { + "Offset", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_StorageError_descriptor, + new java.lang.String[] { + "Code", "Entity", "ErrorMessage", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.ProtoBufProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.StreamProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java new file mode 100644 index 0000000000..a18e4269cb --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamProto.java @@ -0,0 +1,199 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/stream.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public final class StreamProto { + private StreamProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/bigquery/storage/v1beta2/" + + "stream.proto\022%google.cloud.bigquery.stor" + + "age.v1beta2\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\0321google/" + + "cloud/bigquery/storage/v1beta2/arrow.pro" + + "to\0320google/cloud/bigquery/storage/v1beta" + + "2/avro.proto\0321google/cloud/bigquery/stor" + + "age/v1beta2/table.proto\032\037google/protobuf" + + "/timestamp.proto\"\362\007\n\013ReadSession\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\0224\n\013expire_time\030\002 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022K\n\013data_format" + + "\030\003 \001(\01621.google.cloud.bigquery.storage.v" + + "1beta2.DataFormatB\003\340A\005\022M\n\013avro_schema\030\004 " + + "\001(\01321.google.cloud.bigquery.storage.v1be" + + "ta2.AvroSchemaB\003\340A\003H\000\022O\n\014arrow_schema\030\005 " + + "\001(\01322.google.cloud.bigquery.storage.v1be" + + "ta2.ArrowSchemaB\003\340A\003H\000\0224\n\005table\030\006 \001(\tB%\340" + + "A\005\372A\037\n\035bigquery.googleapis.com/Table\022_\n\017" + + "table_modifiers\030\007 \001(\0132A.google.cloud.big" + + "query.storage.v1beta2.ReadSession.TableM" + + "odifiersB\003\340A\001\022^\n\014read_options\030\010 \001(\0132C.go" + + "ogle.cloud.bigquery.storage.v1beta2.Read" + + "Session.TableReadOptionsB\003\340A\001\022G\n\007streams" + + "\030\n \003(\01321.google.cloud.bigquery.storage.v" + + "1beta2.ReadStreamB\003\340A\003\032C\n\016TableModifiers" + + "\0221\n\rsnapshot_time\030\001 \001(\0132\032.google.protobu" + + "f.Timestamp\032\260\001\n\020TableReadOptions\022\027\n\017sele" + + "cted_fields\030\001 \003(\t\022\027\n\017row_restriction\030\002 \001" + + "(\t\022j\n\033arrow_serialization_options\030\003 \001(\0132" + + "@.google.cloud.bigquery.storage.v1beta2." + + "ArrowSerializationOptionsB\003\340A\001:k\352Ah\n*big" + + "querystorage.googleapis.com/ReadSession\022" + + ":projects/{project}/locations/{location}" + + "/sessions/{session}B\010\n\006schema\"\234\001\n\nReadSt" + + "ream\022\021\n\004name\030\001 \001(\tB\003\340A\003:{\352Ax\n)bigqueryst" + + "orage.googleapis.com/ReadStream\022Kproject" + + "s/{project}/locations/{location}/session" + + "s/{session}/streams/{stream}\"\347\003\n\013WriteSt" + + "ream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022J\n\004type\030\002 \001(\01627." + + "google.cloud.bigquery.storage.v1beta2.Wr" + + "iteStream.TypeB\003\340A\005\0224\n\013create_time\030\003 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013com" + + "mit_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022M\n\014table_schema\030\005 \001(\01322.google.c" + + "loud.bigquery.storage.v1beta2.TableSchem" + + "aB\003\340A\003\"F\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\r\n\t" + + "COMMITTED\020\001\022\013\n\007PENDING\020\002\022\014\n\010BUFFERED\020\003:v" + + "\352As\n*bigquerystorage.googleapis.com/Writ" + + "eStream\022Eprojects/{project}/datasets/{da" + + "taset}/tables/{table}/streams/{stream}*>" + + "\n\nDataFormat\022\033\n\027DATA_FORMAT_UNSPECIFIED\020" + + "\000\022\010\n\004AVRO\020\001\022\t\n\005ARROW\020\002B\327\001\n)com.google.cl" + + "oud.bigquery.storage.v1beta2B\013StreamProt" + + "oP\001ZCcloud.google.com/go/bigquery/storag" + + "e/apiv1beta2/storagepb;storagepb\352AU\n\035big" + + "query.googleapis.com/Table\0224projects/{pr" + + "oject}/datasets/{dataset}/tables/{table}" + + "b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(), + com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor, + new java.lang.String[] { + "Name", + "ExpireTime", + "DataFormat", + "AvroSchema", + "ArrowSchema", + "Table", + "TableModifiers", + "ReadOptions", + "Streams", + "Schema", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor = + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableModifiers_descriptor, + new java.lang.String[] { + "SnapshotTime", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor = + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadSession_TableReadOptions_descriptor, + new java.lang.String[] { + "SelectedFields", "RowRestriction", "ArrowSerializationOptions", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_ReadStream_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor, + new java.lang.String[] { + "Name", "Type", "CreateTime", "CommitTime", "TableSchema", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.ArrowProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.AvroProto.getDescriptor(); + com.google.cloud.bigquery.storage.v1beta2.TableProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java similarity index 69% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java index 816a134c06..b6cf2d63e6 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStats.java @@ -1,57 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Estimated stream statistics for a given Stream.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats} */ -public final class StreamStats extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamStats extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.StreamStats) StreamStatsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamStats.newBuilder() to construct. private StreamStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamStats() { - } + + private StreamStats() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.class, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.StreamStats.class, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder.class); } - public interface ProgressOrBuilder extends + public interface ProgressOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The fraction of rows assigned to the stream that have been processed by
      * the server so far, not including the rows in the current response
@@ -66,64 +87,69 @@ public interface ProgressOrBuilder extends
      * 
* * double at_response_start = 1; + * * @return The atResponseStart. */ double getAtResponseStart(); /** + * + * *
      * Similar to `at_response_start`, except that this value includes the
      * rows in the current response.
      * 
* * double at_response_end = 2; + * * @return The atResponseEnd. */ double getAtResponseEnd(); } - /** - * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats.Progress} - */ - public static final class Progress extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats.Progress} */ + public static final class Progress extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) ProgressOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Progress.newBuilder() to construct. private Progress(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Progress() { - } + + private Progress() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Progress(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.class, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.class, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder.class); } public static final int AT_RESPONSE_START_FIELD_NUMBER = 1; private double atResponseStart_ = 0D; /** + * + * *
      * The fraction of rows assigned to the stream that have been processed by
      * the server so far, not including the rows in the current response
@@ -138,6 +164,7 @@ protected java.lang.Object newInstance(
      * 
* * double at_response_start = 1; + * * @return The atResponseStart. */ @java.lang.Override @@ -148,12 +175,15 @@ public double getAtResponseStart() { public static final int AT_RESPONSE_END_FIELD_NUMBER = 2; private double atResponseEnd_ = 0D; /** + * + * *
      * Similar to `at_response_start`, except that this value includes the
      * rows in the current response.
      * 
* * double at_response_end = 2; + * * @return The atResponseEnd. */ @java.lang.Override @@ -162,6 +192,7 @@ public double getAtResponseEnd() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (java.lang.Double.doubleToRawLongBits(atResponseStart_) != 0) { output.writeDouble(1, atResponseStart_); } @@ -191,12 +221,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Double.doubleToRawLongBits(atResponseStart_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(1, atResponseStart_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, atResponseStart_); } if (java.lang.Double.doubleToRawLongBits(atResponseEnd_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, atResponseEnd_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, atResponseEnd_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -206,19 +234,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress other = (com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) obj; + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress other = + (com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) obj; if (java.lang.Double.doubleToLongBits(getAtResponseStart()) - != java.lang.Double.doubleToLongBits( - other.getAtResponseStart())) return false; + != java.lang.Double.doubleToLongBits(other.getAtResponseStart())) return false; if (java.lang.Double.doubleToLongBits(getAtResponseEnd()) - != java.lang.Double.doubleToLongBits( - other.getAtResponseEnd())) return false; + != java.lang.Double.doubleToLongBits(other.getAtResponseEnd())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -231,98 +258,109 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AT_RESPONSE_START_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getAtResponseStart())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAtResponseStart())); hash = (37 * hash) + AT_RESPONSE_END_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getAtResponseEnd())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAtResponseEnd())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -331,36 +369,34 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats.Progress} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats.Progress} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.class, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.class, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,13 +407,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_Progress_descriptor; } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress + getDefaultInstanceForType() { return com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance(); } @@ -392,13 +429,17 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress result = new com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress result = + new com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress result) { + private void buildPartial0( + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.atResponseStart_ = atResponseStart_; @@ -412,46 +453,52 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.StreamStats public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress other) { + if (other + == com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance()) + return this; if (other.getAtResponseStart() != 0D) { setAtResponseStart(other.getAtResponseStart()); } @@ -484,22 +531,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 9: { - atResponseStart_ = input.readDouble(); - bitField0_ |= 0x00000001; - break; - } // case 9 - case 17: { - atResponseEnd_ = input.readDouble(); - bitField0_ |= 0x00000002; - break; - } // case 17 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 9: + { + atResponseStart_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: + { + atResponseEnd_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -509,10 +559,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private double atResponseStart_ ; + private double atResponseStart_; /** + * + * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -527,6 +580,7 @@ public Builder mergeFrom(
        * 
* * double at_response_start = 1; + * * @return The atResponseStart. */ @java.lang.Override @@ -534,6 +588,8 @@ public double getAtResponseStart() { return atResponseStart_; } /** + * + * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -548,17 +604,20 @@ public double getAtResponseStart() {
        * 
* * double at_response_start = 1; + * * @param value The atResponseStart to set. * @return This builder for chaining. */ public Builder setAtResponseStart(double value) { - + atResponseStart_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The fraction of rows assigned to the stream that have been processed by
        * the server so far, not including the rows in the current response
@@ -573,6 +632,7 @@ public Builder setAtResponseStart(double value) {
        * 
* * double at_response_start = 1; + * * @return This builder for chaining. */ public Builder clearAtResponseStart() { @@ -582,14 +642,17 @@ public Builder clearAtResponseStart() { return this; } - private double atResponseEnd_ ; + private double atResponseEnd_; /** + * + * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; + * * @return The atResponseEnd. */ @java.lang.Override @@ -597,29 +660,35 @@ public double getAtResponseEnd() { return atResponseEnd_; } /** + * + * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; + * * @param value The atResponseEnd to set. * @return This builder for chaining. */ public Builder setAtResponseEnd(double value) { - + atResponseEnd_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Similar to `at_response_start`, except that this value includes the
        * rows in the current response.
        * 
* * double at_response_end = 2; + * * @return This builder for chaining. */ public Builder clearAtResponseEnd() { @@ -628,6 +697,7 @@ public Builder clearAtResponseEnd() { onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -640,41 +710,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.StreamStats.Progress) - private static final com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress DEFAULT_INSTANCE; + private static final com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress(); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getDefaultInstance() { + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Progress parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -686,20 +759,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getDefaultInstanceForType() { + public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int PROGRESS_FIELD_NUMBER = 2; private com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress_; /** + * + * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; + * * @return Whether the progress field is set. */ @java.lang.Override @@ -707,18 +783,25 @@ public boolean hasProgress() { return progress_ != null; } /** + * + * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; + * * @return The progress. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getProgress() { - return progress_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() : progress_; + return progress_ == null + ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() + : progress_; } /** + * + * *
    * Represents the progress of the current stream.
    * 
@@ -726,11 +809,15 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getProgres * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ @java.lang.Override - public com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder getProgressOrBuilder() { - return progress_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() : progress_; + public com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder + getProgressOrBuilder() { + return progress_ == null + ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() + : progress_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -742,8 +829,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (progress_ != null) { output.writeMessage(2, getProgress()); } @@ -757,8 +843,7 @@ public int getSerializedSize() { size = 0; if (progress_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getProgress()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getProgress()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -768,17 +853,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.StreamStats)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.StreamStats other = (com.google.cloud.bigquery.storage.v1beta2.StreamStats) obj; + com.google.cloud.bigquery.storage.v1beta2.StreamStats other = + (com.google.cloud.bigquery.storage.v1beta2.StreamStats) obj; if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { - if (!getProgress() - .equals(other.getProgress())) return false; + if (!getProgress().equals(other.getProgress())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -801,129 +886,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.StreamStats parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.StreamStats prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.StreamStats prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Estimated stream statistics for a given Stream.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.StreamStats} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.StreamStats) com.google.cloud.bigquery.storage.v1beta2.StreamStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.StreamStats.class, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.StreamStats.class, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.StreamStats.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -937,9 +1029,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_StreamStats_descriptor; } @java.lang.Override @@ -958,8 +1050,11 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.StreamStats buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.StreamStats result = new com.google.cloud.bigquery.storage.v1beta2.StreamStats(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.StreamStats result = + new com.google.cloud.bigquery.storage.v1beta2.StreamStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -967,9 +1062,7 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats buildPartial() { private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.StreamStats result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.progress_ = progressBuilder_ == null - ? progress_ - : progressBuilder_.build(); + result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); } } @@ -977,38 +1070,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.StreamStats public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.StreamStats) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StreamStats)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.StreamStats) other); } else { super.mergeFrom(other); return this; @@ -1016,7 +1110,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.StreamStats other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.StreamStats.getDefaultInstance()) + return this; if (other.hasProgress()) { mergeProgress(other.getProgress()); } @@ -1046,19 +1141,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getProgressFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1068,45 +1163,60 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder> progressBuilder_; + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder> + progressBuilder_; /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; + * * @return Whether the progress field is set. */ public boolean hasProgress() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; + * * @return The progress. */ public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getProgress() { if (progressBuilder_ == null) { - return progress_ == null ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() : progress_; + return progress_ == null + ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() + : progress_; } else { return progressBuilder_.getMessage(); } } /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ - public Builder setProgress(com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress value) { + public Builder setProgress( + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress value) { if (progressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1120,6 +1230,8 @@ public Builder setProgress(com.google.cloud.bigquery.storage.v1beta2.StreamStats return this; } /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -1138,17 +1250,22 @@ public Builder setProgress( return this; } /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ - public Builder mergeProgress(com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress value) { + public Builder mergeProgress( + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress value) { if (progressBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - progress_ != null && - progress_ != com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && progress_ != null + && progress_ + != com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress + .getDefaultInstance()) { getProgressBuilder().mergeFrom(value); } else { progress_ = value; @@ -1161,6 +1278,8 @@ public Builder mergeProgress(com.google.cloud.bigquery.storage.v1beta2.StreamSta return this; } /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -1178,33 +1297,42 @@ public Builder clearProgress() { return this; } /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ - public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder getProgressBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder + getProgressBuilder() { bitField0_ |= 0x00000001; onChanged(); return getProgressFieldBuilder().getBuilder(); } /** + * + * *
      * Represents the progress of the current stream.
      * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ - public com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder getProgressOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder + getProgressOrBuilder() { if (progressBuilder_ != null) { return progressBuilder_.getMessageOrBuilder(); } else { - return progress_ == null ? - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() : progress_; + return progress_ == null + ? com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.getDefaultInstance() + : progress_; } } /** + * + * *
      * Represents the progress of the current stream.
      * 
@@ -1212,21 +1340,24 @@ public com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder g * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder> getProgressFieldBuilder() { if (progressBuilder_ == null) { - progressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder>( - getProgress(), - getParentForChildren(), - isClean()); + progressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress.Builder, + com.google.cloud.bigquery.storage.v1beta2.StreamStats.ProgressOrBuilder>( + getProgress(), getParentForChildren(), isClean()); progress_ = null; } return progressBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1236,12 +1367,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.StreamStats) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.StreamStats) private static final com.google.cloud.bigquery.storage.v1beta2.StreamStats DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.StreamStats(); } @@ -1250,27 +1381,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.StreamStats getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1285,6 +1416,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.StreamStats getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java index 7567961429..ed9f32db50 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/StreamStatsOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface StreamStatsOrBuilder extends +public interface StreamStatsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.StreamStats) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; + * * @return Whether the progress field is set. */ boolean hasProgress(); /** + * + * *
    * Represents the progress of the current stream.
    * 
* * .google.cloud.bigquery.storage.v1beta2.StreamStats.Progress progress = 2; + * * @return The progress. */ com.google.cloud.bigquery.storage.v1beta2.StreamStats.Progress getProgress(); /** + * + * *
    * Represents the progress of the current stream.
    * 
diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java similarity index 65% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java index 6b89b11e92..5b9689b1d1 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchema.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * A field in TableSchema
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema} */ -public final class TableFieldSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TableFieldSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.TableFieldSchema) TableFieldSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableFieldSchema.newBuilder() to construct. private TableFieldSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableFieldSchema() { name_ = ""; type_ = 0; @@ -29,35 +47,35 @@ private TableFieldSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableFieldSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto + .internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.TableProto + .internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.class, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.class, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder.class); } - /** - * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + /** Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type} */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Illegal value
      * 
@@ -66,6 +84,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * 64K, UTF8
      * 
@@ -74,6 +94,8 @@ public enum Type */ STRING(1), /** + * + * *
      * 64-bit signed
      * 
@@ -82,6 +104,8 @@ public enum Type */ INT64(2), /** + * + * *
      * 64-bit IEEE floating point
      * 
@@ -90,6 +114,8 @@ public enum Type */ DOUBLE(3), /** + * + * *
      * Aggregate type
      * 
@@ -98,6 +124,8 @@ public enum Type */ STRUCT(4), /** + * + * *
      * 64K, Binary
      * 
@@ -106,6 +134,8 @@ public enum Type */ BYTES(5), /** + * + * *
      * 2-valued
      * 
@@ -114,6 +144,8 @@ public enum Type */ BOOL(6), /** + * + * *
      * 64-bit signed usec since UTC epoch
      * 
@@ -122,6 +154,8 @@ public enum Type */ TIMESTAMP(7), /** + * + * *
      * Civil date - Year, Month, Day
      * 
@@ -130,6 +164,8 @@ public enum Type */ DATE(8), /** + * + * *
      * Civil time - Hour, Minute, Second, Microseconds
      * 
@@ -138,6 +174,8 @@ public enum Type */ TIME(9), /** + * + * *
      * Combination of civil date and civil time
      * 
@@ -146,6 +184,8 @@ public enum Type */ DATETIME(10), /** + * + * *
      * Geography object
      * 
@@ -154,6 +194,8 @@ public enum Type */ GEOGRAPHY(11), /** + * + * *
      * Numeric value
      * 
@@ -162,6 +204,8 @@ public enum Type */ NUMERIC(12), /** + * + * *
      * BigNumeric value
      * 
@@ -170,6 +214,8 @@ public enum Type */ BIGNUMERIC(13), /** + * + * *
      * Interval
      * 
@@ -178,6 +224,8 @@ public enum Type */ INTERVAL(14), /** + * + * *
      * JSON, String
      * 
@@ -189,6 +237,8 @@ public enum Type ; /** + * + * *
      * Illegal value
      * 
@@ -197,6 +247,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * 64K, UTF8
      * 
@@ -205,6 +257,8 @@ public enum Type */ public static final int STRING_VALUE = 1; /** + * + * *
      * 64-bit signed
      * 
@@ -213,6 +267,8 @@ public enum Type */ public static final int INT64_VALUE = 2; /** + * + * *
      * 64-bit IEEE floating point
      * 
@@ -221,6 +277,8 @@ public enum Type */ public static final int DOUBLE_VALUE = 3; /** + * + * *
      * Aggregate type
      * 
@@ -229,6 +287,8 @@ public enum Type */ public static final int STRUCT_VALUE = 4; /** + * + * *
      * 64K, Binary
      * 
@@ -237,6 +297,8 @@ public enum Type */ public static final int BYTES_VALUE = 5; /** + * + * *
      * 2-valued
      * 
@@ -245,6 +307,8 @@ public enum Type */ public static final int BOOL_VALUE = 6; /** + * + * *
      * 64-bit signed usec since UTC epoch
      * 
@@ -253,6 +317,8 @@ public enum Type */ public static final int TIMESTAMP_VALUE = 7; /** + * + * *
      * Civil date - Year, Month, Day
      * 
@@ -261,6 +327,8 @@ public enum Type */ public static final int DATE_VALUE = 8; /** + * + * *
      * Civil time - Hour, Minute, Second, Microseconds
      * 
@@ -269,6 +337,8 @@ public enum Type */ public static final int TIME_VALUE = 9; /** + * + * *
      * Combination of civil date and civil time
      * 
@@ -277,6 +347,8 @@ public enum Type */ public static final int DATETIME_VALUE = 10; /** + * + * *
      * Geography object
      * 
@@ -285,6 +357,8 @@ public enum Type */ public static final int GEOGRAPHY_VALUE = 11; /** + * + * *
      * Numeric value
      * 
@@ -293,6 +367,8 @@ public enum Type */ public static final int NUMERIC_VALUE = 12; /** + * + * *
      * BigNumeric value
      * 
@@ -301,6 +377,8 @@ public enum Type */ public static final int BIGNUMERIC_VALUE = 13; /** + * + * *
      * Interval
      * 
@@ -309,6 +387,8 @@ public enum Type */ public static final int INTERVAL_VALUE = 14; /** + * + * *
      * JSON, String
      * 
@@ -317,7 +397,6 @@ public enum Type */ public static final int JSON_VALUE = 15; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -342,62 +421,77 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return STRING; - case 2: return INT64; - case 3: return DOUBLE; - case 4: return STRUCT; - case 5: return BYTES; - case 6: return BOOL; - case 7: return TIMESTAMP; - case 8: return DATE; - case 9: return TIME; - case 10: return DATETIME; - case 11: return GEOGRAPHY; - case 12: return NUMERIC; - case 13: return BIGNUMERIC; - case 14: return INTERVAL; - case 15: return JSON; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return STRING; + case 2: + return INT64; + case 3: + return DOUBLE; + case 4: + return STRUCT; + case 5: + return BYTES; + case 6: + return BOOL; + case 7: + return TIMESTAMP; + case 8: + return DATE; + case 9: + return TIME; + case 10: + return DATETIME; + case 11: + return GEOGRAPHY; + case 12: + return NUMERIC; + case 13: + return BIGNUMERIC; + case 14: + return INTERVAL; + case 15: + return JSON; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -414,12 +508,11 @@ private Type(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type) } - /** - * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode} - */ - public enum Mode - implements com.google.protobuf.ProtocolMessageEnum { + /** Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode} */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Illegal value
      * 
@@ -427,22 +520,18 @@ public enum Mode * MODE_UNSPECIFIED = 0; */ MODE_UNSPECIFIED(0), - /** - * NULLABLE = 1; - */ + /** NULLABLE = 1; */ NULLABLE(1), - /** - * REQUIRED = 2; - */ + /** REQUIRED = 2; */ REQUIRED(2), - /** - * REPEATED = 3; - */ + /** REPEATED = 3; */ REPEATED(3), UNRECOGNIZED(-1), ; /** + * + * *
      * Illegal value
      * 
@@ -450,20 +539,13 @@ public enum Mode * MODE_UNSPECIFIED = 0; */ public static final int MODE_UNSPECIFIED_VALUE = 0; - /** - * NULLABLE = 1; - */ + /** NULLABLE = 1; */ public static final int NULLABLE_VALUE = 1; - /** - * REQUIRED = 2; - */ + /** REQUIRED = 2; */ public static final int REQUIRED_VALUE = 2; - /** - * REPEATED = 3; - */ + /** REPEATED = 3; */ public static final int REPEATED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -488,50 +570,53 @@ public static Mode valueOf(int value) { */ public static Mode forNumber(int value) { switch (value) { - case 0: return MODE_UNSPECIFIED; - case 1: return NULLABLE; - case 2: return REQUIRED; - case 3: return REPEATED; - default: return null; + case 0: + return MODE_UNSPECIFIED; + case 1: + return NULLABLE; + case 2: + return REQUIRED; + case 3: + return REPEATED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Mode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Mode findValueByNumber(int number) { - return Mode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Mode findValueByNumber(int number) { + return Mode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDescriptor() + .getEnumTypes() + .get(1); } private static final Mode[] VALUES = values(); - public static Mode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -549,9 +634,12 @@ private Mode(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -559,6 +647,7 @@ private Mode(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -567,14 +656,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -582,16 +672,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -602,109 +691,162 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** + * + * *
    * Required. The field data type.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Required. The field data type.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type getType() { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type result = com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.forNumber(type_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type getType() { + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type result = + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.forNumber(type_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.UNRECOGNIZED + : result; } public static final int MODE_FIELD_NUMBER = 3; private int mode_ = 0; /** + * + * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The mode. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode getMode() { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode result = com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.forNumber(mode_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode getMode() { + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode result = + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.UNRECOGNIZED + : result; } public static final int FIELDS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List fields_; /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getFieldsList() { + public java.util.List + getFieldsList() { return fields_; } /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> getFieldsOrBuilderList() { return fields_; } /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getFieldsCount() { return fields_.size(); } /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int index) { return fields_.get(index); } /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder( @@ -713,14 +855,18 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFi } public static final int DESCRIPTION_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -729,29 +875,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -760,6 +906,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -771,15 +918,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } - if (mode_ != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.MODE_UNSPECIFIED.getNumber()) { + if (mode_ + != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.MODE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, mode_); } for (int i = 0; i < fields_.size(); i++) { @@ -800,17 +950,18 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } - if (mode_ != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, mode_); + if (mode_ + != com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, mode_); } for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, fields_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, description_); @@ -823,21 +974,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema other = (com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema) obj; + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema other = + (com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; if (mode_ != other.mode_) return false; - if (!getFieldsList() - .equals(other.getFieldsList())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getFieldsList().equals(other.getFieldsList())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -867,129 +1016,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A field in TableSchema
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.TableFieldSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.TableFieldSchema) com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto + .internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.TableProto + .internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.class, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.class, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1009,9 +1165,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto + .internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; } @java.lang.Override @@ -1030,14 +1186,18 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema result = new com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema(this); + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema result = + new com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); @@ -1069,38 +1229,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.TableFieldS public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema) other); } else { super.mergeFrom(other); return this; @@ -1108,7 +1269,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1138,9 +1300,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.TableFieldSch fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000008); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldsFieldBuilder() : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -1177,45 +1340,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - mode_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 34 - case 50: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 34 + case 50: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1225,10 +1394,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1236,13 +1408,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1251,6 +1423,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1258,15 +1432,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1274,6 +1447,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1281,18 +1456,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1300,6 +1479,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1309,6 +1489,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The field name. The name must contain only letters (a-z, A-Z),
      * numbers (0-9), or underscores (_), and must start with a letter or
@@ -1316,12 +1498,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1331,22 +1515,33 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * Required. The field data type.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Required. The field data type.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1357,24 +1552,37 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * Required. The field data type.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type getType() { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type result = com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.forNumber(type_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type result = + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.forNumber(type_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The field data type.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -1388,11 +1596,16 @@ public Builder setType(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchem return this; } /** + * + * *
      * Required. The field data type.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearType() { @@ -1404,22 +1617,33 @@ public Builder clearType() { private int mode_ = 0; /** + * + * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for mode. */ - @java.lang.Override public int getModeValue() { + @java.lang.Override + public int getModeValue() { return mode_; } /** + * + * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for mode to set. * @return This builder for chaining. */ @@ -1430,24 +1654,37 @@ public Builder setModeValue(int value) { return this; } /** + * + * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The mode. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode getMode() { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode result = com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.forNumber(mode_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode result = + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The mode to set. * @return This builder for chaining. */ @@ -1461,11 +1698,16 @@ public Builder setMode(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchem return this; } /** + * + * *
      * Optional. The field mode. The default value is NULLABLE.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearMode() { @@ -1476,25 +1718,36 @@ public Builder clearMode() { } private java.util.List fields_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - fields_ = new java.util.ArrayList(fields_); + fields_ = + new java.util.ArrayList( + fields_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> fieldsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> + fieldsBuilder_; /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List getFieldsList() { + public java.util.List + getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { @@ -1502,11 +1755,15 @@ public java.util.List * Optional. Describes the nested schema fields if the type property is set to STRUCT. *
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getFieldsCount() { if (fieldsBuilder_ == null) { @@ -1516,11 +1773,15 @@ public int getFieldsCount() { } } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int index) { if (fieldsBuilder_ == null) { @@ -1530,11 +1791,15 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int } } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFields( int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema value) { @@ -1551,14 +1816,19 @@ public Builder setFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setFields( - int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { + int index, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); @@ -1569,11 +1839,15 @@ public Builder setFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addFields(com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema value) { if (fieldsBuilder_ == null) { @@ -1589,11 +1863,15 @@ public Builder addFields(com.google.cloud.bigquery.storage.v1beta2.TableFieldSch return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addFields( int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema value) { @@ -1610,11 +1888,15 @@ public Builder addFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addFields( com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { @@ -1628,14 +1910,19 @@ public Builder addFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addFields( - int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { + int index, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); @@ -1646,18 +1933,22 @@ public Builder addFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllFields( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -1665,11 +1956,15 @@ public Builder addAllFields( return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearFields() { if (fieldsBuilder_ == null) { @@ -1682,11 +1977,15 @@ public Builder clearFields() { return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeFields(int index) { if (fieldsBuilder_ == null) { @@ -1699,39 +1998,53 @@ public Builder removeFields(int index) { return this; } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder getFieldsBuilder( int index) { return getFieldsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); } else { + return fields_.get(index); + } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getFieldsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -1739,49 +2052,67 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFi } } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFieldsBuilder() { - return getFieldsFieldBuilder().addBuilder( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFieldsBuilder( int index) { - return getFieldsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); } /** + * + * *
      * Optional. Describes the nested schema fields if the type property is set to STRUCT.
      * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder>( - fields_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder>( + fields_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; @@ -1789,18 +2120,20 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFie private java.lang.Object description_ = ""; /** + * + * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1809,20 +2142,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1830,28 +2164,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1861,26 +2202,30 @@ public Builder clearDescription() { return this; } /** + * + * *
      * Optional. The field description. The maximum length is 1,024 characters.
      * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1890,12 +2235,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.TableFieldSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.TableFieldSchema) private static final com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema(); } @@ -1904,27 +2249,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableFieldSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableFieldSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1939,6 +2284,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java index d753ba7d93..90055b13d4 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableFieldSchemaOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface TableFieldSchemaOrBuilder extends +public interface TableFieldSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.TableFieldSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -15,10 +33,13 @@ public interface TableFieldSchemaOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The field name. The name must contain only letters (a-z, A-Z),
    * numbers (0-9), or underscores (_), and must start with a letter or
@@ -26,110 +47,153 @@ public interface TableFieldSchemaOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The field data type.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Required. The field data type.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Type getType(); /** + * + * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for mode. */ int getModeValue(); /** + * + * *
    * Optional. The field mode. The default value is NULLABLE.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The mode. */ com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Mode getMode(); /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getFieldsList(); + java.util.List getFieldsList(); /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int index); /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getFieldsCount(); /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** + * + * *
    * Optional. Describes the nested schema fields if the type property is set to STRUCT.
    * 
* - * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder( - int index); + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index); /** + * + * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. The field description. The maximum length is 1,024 characters.
    * 
* * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableName.java diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java new file mode 100644 index 0000000000..9b661d9ea1 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableProto.java @@ -0,0 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/table.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public final class TableProto { + private TableProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/bigquery/storage/v1beta2/" + + "table.proto\022%google.cloud.bigquery.stora" + + "ge.v1beta2\032\037google/api/field_behavior.pr" + + "oto\"V\n\013TableSchema\022G\n\006fields\030\001 \003(\01327.goo" + + "gle.cloud.bigquery.storage.v1beta2.Table" + + "FieldSchema\"\317\004\n\020TableFieldSchema\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\002\022O\n\004type\030\002 \001(\0162<.google.cloud" + + ".bigquery.storage.v1beta2.TableFieldSche" + + "ma.TypeB\003\340A\002\022O\n\004mode\030\003 \001(\0162<.google.clou" + + "d.bigquery.storage.v1beta2.TableFieldSch" + + "ema.ModeB\003\340A\001\022L\n\006fields\030\004 \003(\01327.google.c" + + "loud.bigquery.storage.v1beta2.TableField" + + "SchemaB\003\340A\001\022\030\n\013description\030\006 \001(\tB\003\340A\001\"\325\001" + + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006STRING\020\001" + + "\022\t\n\005INT64\020\002\022\n\n\006DOUBLE\020\003\022\n\n\006STRUCT\020\004\022\t\n\005B" + + "YTES\020\005\022\010\n\004BOOL\020\006\022\r\n\tTIMESTAMP\020\007\022\010\n\004DATE\020" + + "\010\022\010\n\004TIME\020\t\022\014\n\010DATETIME\020\n\022\r\n\tGEOGRAPHY\020\013" + + "\022\013\n\007NUMERIC\020\014\022\016\n\nBIGNUMERIC\020\r\022\014\n\010INTERVA" + + "L\020\016\022\010\n\004JSON\020\017\"F\n\004Mode\022\024\n\020MODE_UNSPECIFIE" + + "D\020\000\022\014\n\010NULLABLE\020\001\022\014\n\010REQUIRED\020\002\022\014\n\010REPEA" + + "TED\020\003B~\n)com.google.cloud.bigquery.stora" + + "ge.v1beta2B\nTableProtoP\001ZCcloud.google.c" + + "om/go/bigquery/storage/apiv1beta2/storag" + + "epb;storagepbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor, + new java.lang.String[] { + "Fields", + }); + internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_bigquery_storage_v1beta2_TableFieldSchema_descriptor, + new java.lang.String[] { + "Name", "Type", "Mode", "Fields", "Description", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java similarity index 70% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java index 955543c53c..ba6c3636c4 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchema.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Schema of a table
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.TableSchema} */ -public final class TableSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TableSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.TableSchema) TableSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TableSchema.newBuilder() to construct. private TableSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TableSchema() { fields_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TableSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto + .internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.TableProto + .internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.TableSchema.class, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.TableSchema.class, + com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder.class); } public static final int FIELDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List fields_; /** + * + * *
    * Describes the fields in a table.
    * 
@@ -59,10 +81,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ @java.lang.Override - public java.util.List getFieldsList() { + public java.util.List + getFieldsList() { return fields_; } /** + * + * *
    * Describes the fields in a table.
    * 
@@ -70,11 +95,14 @@ public java.util.Listrepeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> getFieldsOrBuilderList() { return fields_; } /** + * + * *
    * Describes the fields in a table.
    * 
@@ -86,6 +114,8 @@ public int getFieldsCount() { return fields_.size(); } /** + * + * *
    * Describes the fields in a table.
    * 
@@ -97,6 +127,8 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int return fields_.get(index); } /** + * + * *
    * Describes the fields in a table.
    * 
@@ -110,6 +142,7 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFi } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +154,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < fields_.size(); i++) { output.writeMessage(1, fields_.get(i)); } @@ -136,8 +168,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < fields_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, fields_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, fields_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -147,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.TableSchema)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.TableSchema other = (com.google.cloud.bigquery.storage.v1beta2.TableSchema) obj; + com.google.cloud.bigquery.storage.v1beta2.TableSchema other = + (com.google.cloud.bigquery.storage.v1beta2.TableSchema) obj; - if (!getFieldsList() - .equals(other.getFieldsList())) return false; + if (!getFieldsList().equals(other.getFieldsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,129 +208,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.TableSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.TableSchema prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.TableSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Schema of a table
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.TableSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.TableSchema) com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto + .internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.TableProto + .internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.TableSchema.class, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.TableSchema.class, + com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.TableSchema.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -315,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.TableProto.internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.TableProto + .internal_static_google_cloud_bigquery_storage_v1beta2_TableSchema_descriptor; } @java.lang.Override @@ -336,14 +374,18 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableSchema buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.TableSchema result = new com.google.cloud.bigquery.storage.v1beta2.TableSchema(this); + com.google.cloud.bigquery.storage.v1beta2.TableSchema result = + new com.google.cloud.bigquery.storage.v1beta2.TableSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.bigquery.storage.v1beta2.TableSchema result) { + private void buildPartialRepeatedFields( + com.google.cloud.bigquery.storage.v1beta2.TableSchema result) { if (fieldsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { fields_ = java.util.Collections.unmodifiableList(fields_); @@ -363,38 +405,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.TableSchema public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.TableSchema) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.TableSchema)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.TableSchema) other); } else { super.mergeFrom(other); return this; @@ -402,7 +445,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.TableSchema other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) + return this; if (fieldsBuilder_ == null) { if (!other.fields_.isEmpty()) { if (fields_.isEmpty()) { @@ -421,9 +465,10 @@ public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.TableSchema o fieldsBuilder_ = null; fields_ = other.fields_; bitField0_ = (bitField0_ & ~0x00000001); - fieldsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFieldsFieldBuilder() : null; + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFieldsFieldBuilder() + : null; } else { fieldsBuilder_.addAllMessages(other.fields_); } @@ -455,25 +500,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema m = - input.readMessage( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.parser(), - extensionRegistry); - if (fieldsBuilder_ == null) { - ensureFieldsIsMutable(); - fields_.add(m); - } else { - fieldsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema m = + input.readMessage( + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.parser(), + extensionRegistry); + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(m); + } else { + fieldsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -483,28 +530,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List fields_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - fields_ = new java.util.ArrayList(fields_); + fields_ = + new java.util.ArrayList( + fields_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> fieldsBuilder_; + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> + fieldsBuilder_; /** + * + * *
      * Describes the fields in a table.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - public java.util.List getFieldsList() { + public java.util.List + getFieldsList() { if (fieldsBuilder_ == null) { return java.util.Collections.unmodifiableList(fields_); } else { @@ -512,6 +569,8 @@ public java.util.List * Describes the fields in a table. *
@@ -526,6 +585,8 @@ public int getFieldsCount() { } } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -540,6 +601,8 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int } } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -561,6 +624,8 @@ public Builder setFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -568,7 +633,8 @@ public Builder setFields( * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ public Builder setFields( - int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { + int index, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.set(index, builderForValue.build()); @@ -579,6 +645,8 @@ public Builder setFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -599,6 +667,8 @@ public Builder addFields(com.google.cloud.bigquery.storage.v1beta2.TableFieldSch return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -620,6 +690,8 @@ public Builder addFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -638,6 +710,8 @@ public Builder addFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -645,7 +719,8 @@ public Builder addFields( * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ public Builder addFields( - int index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { + int index, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder builderForValue) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); fields_.add(index, builderForValue.build()); @@ -656,6 +731,8 @@ public Builder addFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -663,11 +740,11 @@ public Builder addFields( * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ public Builder addAllFields( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (fieldsBuilder_ == null) { ensureFieldsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, fields_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fields_); onChanged(); } else { fieldsBuilder_.addAllMessages(values); @@ -675,6 +752,8 @@ public Builder addAllFields( return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -692,6 +771,8 @@ public Builder clearFields() { return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -709,6 +790,8 @@ public Builder removeFields(int index) { return this; } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -720,6 +803,8 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder getFie return getFieldsFieldBuilder().getBuilder(index); } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -729,19 +814,23 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder getFie public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder( int index) { if (fieldsBuilder_ == null) { - return fields_.get(index); } else { + return fields_.get(index); + } else { return fieldsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Describes the fields in a table.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> + getFieldsOrBuilderList() { if (fieldsBuilder_ != null) { return fieldsBuilder_.getMessageOrBuilderList(); } else { @@ -749,6 +838,8 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFi } } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -756,10 +847,13 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFi * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFieldsBuilder() { - return getFieldsFieldBuilder().addBuilder( - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder() + .addBuilder( + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); } /** + * + * *
      * Describes the fields in a table.
      * 
@@ -768,37 +862,44 @@ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFie */ public com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder addFieldsBuilder( int index) { - return getFieldsFieldBuilder().addBuilder( - index, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); + return getFieldsFieldBuilder() + .addBuilder( + index, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.getDefaultInstance()); } /** + * + * *
      * Describes the fields in a table.
      * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - public java.util.List - getFieldsBuilderList() { + public java.util.List + getFieldsBuilderList() { return getFieldsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder> getFieldsFieldBuilder() { if (fieldsBuilder_ == null) { - fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder>( - fields_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + fieldsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder>( + fields_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); fields_ = null; } return fieldsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +909,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.TableSchema) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.TableSchema) private static final com.google.cloud.bigquery.storage.v1beta2.TableSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.TableSchema(); } @@ -822,27 +923,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.TableSchema getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.TableSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java index 899deefd99..6f06a3c9f4 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/TableSchemaOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/table.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface TableSchemaOrBuilder extends +public interface TableSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.TableSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - java.util.List - getFieldsList(); + java.util.List getFieldsList(); /** + * + * *
    * Describes the fields in a table.
    * 
@@ -25,6 +44,8 @@ public interface TableSchemaOrBuilder extends */ com.google.cloud.bigquery.storage.v1beta2.TableFieldSchema getFields(int index); /** + * + * *
    * Describes the fields in a table.
    * 
@@ -33,21 +54,24 @@ public interface TableSchemaOrBuilder extends */ int getFieldsCount(); /** + * + * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - java.util.List + java.util.List getFieldsOrBuilderList(); /** + * + * *
    * Describes the fields in a table.
    * 
* * repeated .google.cloud.bigquery.storage.v1beta2.TableFieldSchema fields = 1; */ - com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder( - int index); + com.google.cloud.bigquery.storage.v1beta2.TableFieldSchemaOrBuilder getFieldsOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java similarity index 66% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java index a2902fd707..5281d244f1 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleState.java @@ -1,61 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/storage.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Information on if the current connection is being throttled.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ThrottleState} */ -public final class ThrottleState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ThrottleState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.ThrottleState) ThrottleStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ThrottleState.newBuilder() to construct. private ThrottleState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ThrottleState() { - } + + private ThrottleState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ThrottleState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ThrottleState.class, com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ThrottleState.class, + com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder.class); } public static final int THROTTLE_PERCENT_FIELD_NUMBER = 1; private int throttlePercent_ = 0; /** + * + * *
    * How much this connection is being throttled. Zero means no throttling,
    * 100 means fully throttled.
    * 
* * int32 throttle_percent = 1; + * * @return The throttlePercent. */ @java.lang.Override @@ -64,6 +85,7 @@ public int getThrottlePercent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -75,8 +97,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (throttlePercent_ != 0) { output.writeInt32(1, throttlePercent_); } @@ -90,8 +111,7 @@ public int getSerializedSize() { size = 0; if (throttlePercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, throttlePercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, throttlePercent_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -101,15 +121,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.ThrottleState)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.ThrottleState other = (com.google.cloud.bigquery.storage.v1beta2.ThrottleState) obj; + com.google.cloud.bigquery.storage.v1beta2.ThrottleState other = + (com.google.cloud.bigquery.storage.v1beta2.ThrottleState) obj; - if (getThrottlePercent() - != other.getThrottlePercent()) return false; + if (getThrottlePercent() != other.getThrottlePercent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -129,129 +149,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.ThrottleState prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.ThrottleState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information on if the current connection is being throttled.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.ThrottleState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.ThrottleState) com.google.cloud.bigquery.storage.v1beta2.ThrottleStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.ThrottleState.class, com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.ThrottleState.class, + com.google.cloud.bigquery.storage.v1beta2.ThrottleState.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.ThrottleState.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -261,9 +288,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StorageProto.internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StorageProto + .internal_static_google_cloud_bigquery_storage_v1beta2_ThrottleState_descriptor; } @java.lang.Override @@ -282,8 +309,11 @@ public com.google.cloud.bigquery.storage.v1beta2.ThrottleState build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.ThrottleState buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.ThrottleState result = new com.google.cloud.bigquery.storage.v1beta2.ThrottleState(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.ThrottleState result = + new com.google.cloud.bigquery.storage.v1beta2.ThrottleState(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -299,38 +329,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.ThrottleSta public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.ThrottleState) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ThrottleState)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.ThrottleState) other); } else { super.mergeFrom(other); return this; @@ -338,7 +369,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.ThrottleState other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.ThrottleState.getDefaultInstance()) + return this; if (other.getThrottlePercent() != 0) { setThrottlePercent(other.getThrottlePercent()); } @@ -368,17 +400,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - throttlePercent_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + throttlePercent_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -388,16 +422,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private int throttlePercent_ ; + private int throttlePercent_; /** + * + * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; + * * @return The throttlePercent. */ @java.lang.Override @@ -405,29 +443,35 @@ public int getThrottlePercent() { return throttlePercent_; } /** + * + * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; + * * @param value The throttlePercent to set. * @return This builder for chaining. */ public Builder setThrottlePercent(int value) { - + throttlePercent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * How much this connection is being throttled. Zero means no throttling,
      * 100 means fully throttled.
      * 
* * int32 throttle_percent = 1; + * * @return This builder for chaining. */ public Builder clearThrottlePercent() { @@ -436,9 +480,9 @@ public Builder clearThrottlePercent() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -448,12 +492,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.ThrottleState) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.ThrottleState) private static final com.google.cloud.bigquery.storage.v1beta2.ThrottleState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.ThrottleState(); } @@ -462,27 +506,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.ThrottleState getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThrottleState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThrottleState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -497,6 +541,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.ThrottleState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java new file mode 100644 index 0000000000..cf416b5ef5 --- /dev/null +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/ThrottleStateOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/bigquery/storage/v1beta2/storage.proto + +package com.google.cloud.bigquery.storage.v1beta2; + +public interface ThrottleStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.ThrottleState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * How much this connection is being throttled. Zero means no throttling,
+   * 100 means fully throttled.
+   * 
+ * + * int32 throttle_percent = 1; + * + * @return The throttlePercent. + */ + int getThrottlePercent(); +} diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java similarity index 67% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java index 1cf63980e6..625658a008 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStream.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; /** + * + * *
  * Information about a single stream that gets data inside the storage system.
  * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.WriteStream} */ -public final class WriteStream extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WriteStream extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.bigquery.storage.v1beta2.WriteStream) WriteStreamOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WriteStream.newBuilder() to construct. private WriteStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WriteStream() { name_ = ""; type_ = 0; @@ -26,39 +44,43 @@ private WriteStream() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteStream(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder.class); } /** + * + * *
    * Type enum of the stream.
    * 
* * Protobuf enum {@code google.cloud.bigquery.storage.v1beta2.WriteStream.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown type.
      * 
@@ -67,6 +89,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Data will commit automatically and appear as soon as the write is
      * acknowledged.
@@ -76,6 +100,8 @@ public enum Type
      */
     COMMITTED(1),
     /**
+     *
+     *
      * 
      * Data is invisible until the stream is committed.
      * 
@@ -84,6 +110,8 @@ public enum Type */ PENDING(2), /** + * + * *
      * Data is only visible up to the offset to which it was flushed.
      * 
@@ -95,6 +123,8 @@ public enum Type ; /** + * + * *
      * Unknown type.
      * 
@@ -103,6 +133,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Data will commit automatically and appear as soon as the write is
      * acknowledged.
@@ -112,6 +144,8 @@ public enum Type
      */
     public static final int COMMITTED_VALUE = 1;
     /**
+     *
+     *
      * 
      * Data is invisible until the stream is committed.
      * 
@@ -120,6 +154,8 @@ public enum Type */ public static final int PENDING_VALUE = 2; /** + * + * *
      * Data is only visible up to the offset to which it was flushed.
      * 
@@ -128,7 +164,6 @@ public enum Type */ public static final int BUFFERED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -153,50 +188,53 @@ public static Type valueOf(int value) { */ public static Type forNumber(int value) { switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return COMMITTED; - case 2: return PENDING; - case 3: return BUFFERED; - default: return null; + case 0: + return TYPE_UNSPECIFIED; + case 1: + return COMMITTED; + case 2: + return PENDING; + case 3: + return BUFFERED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDescriptor() + .getEnumTypes() + .get(0); } private static final Type[] VALUES = values(); - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -214,15 +252,19 @@ private Type(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -231,30 +273,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -265,38 +307,57 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_ = 0; /** + * + * *
    * Immutable. Type of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Immutable. Type of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type getType() { - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type result = com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.forNumber(type_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type getType() { + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type result = + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.forNumber(type_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -304,12 +365,16 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -317,12 +382,15 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -332,6 +400,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int COMMIT_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp commitTime_; /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -339,7 +409,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the commitTime field is set. */ @java.lang.Override @@ -347,6 +419,8 @@ public boolean hasCommitTime() { return commitTime_ != null; } /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -354,7 +428,9 @@ public boolean hasCommitTime() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The commitTime. */ @java.lang.Override @@ -362,6 +438,8 @@ public com.google.protobuf.Timestamp getCommitTime() { return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; } /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -369,7 +447,8 @@ public com.google.protobuf.Timestamp getCommitTime() {
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { @@ -379,6 +458,8 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { public static final int TABLE_SCHEMA_FIELD_NUMBER = 5; private com.google.cloud.bigquery.storage.v1beta2.TableSchema tableSchema_; /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -386,7 +467,10 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tableSchema field is set. */ @java.lang.Override @@ -394,6 +478,8 @@ public boolean hasTableSchema() { return tableSchema_ != null; } /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -401,14 +487,21 @@ public boolean hasTableSchema() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tableSchema. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableSchema getTableSchema() { - return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : tableSchema_; + return tableSchema_ == null + ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() + : tableSchema_; } /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -416,14 +509,19 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema getTableSchema() {
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getTableSchemaOrBuilder() { - return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : tableSchema_; + return tableSchema_ == null + ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() + : tableSchema_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -435,12 +533,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } if (createTime_ != null) { @@ -464,21 +563,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (commitTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCommitTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCommitTime()); } if (tableSchema_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTableSchema()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTableSchema()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -488,30 +585,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.bigquery.storage.v1beta2.WriteStream)) { return super.equals(obj); } - com.google.cloud.bigquery.storage.v1beta2.WriteStream other = (com.google.cloud.bigquery.storage.v1beta2.WriteStream) obj; + com.google.cloud.bigquery.storage.v1beta2.WriteStream other = + (com.google.cloud.bigquery.storage.v1beta2.WriteStream) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasCommitTime() != other.hasCommitTime()) return false; if (hasCommitTime()) { - if (!getCommitTime() - .equals(other.getCommitTime())) return false; + if (!getCommitTime().equals(other.getCommitTime())) return false; } if (hasTableSchema() != other.hasTableSchema()) return false; if (hasTableSchema()) { - if (!getTableSchema() - .equals(other.getTableSchema())) return false; + if (!getTableSchema().equals(other.getTableSchema())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -546,129 +640,136 @@ public int hashCode() { } public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.bigquery.storage.v1beta2.WriteStream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.bigquery.storage.v1beta2.WriteStream prototype) { + + public static Builder newBuilder( + com.google.cloud.bigquery.storage.v1beta2.WriteStream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information about a single stream that gets data inside the storage system.
    * 
* * Protobuf type {@code google.cloud.bigquery.storage.v1beta2.WriteStream} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.bigquery.storage.v1beta2.WriteStream) com.google.cloud.bigquery.storage.v1beta2.WriteStreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder.class); + com.google.cloud.bigquery.storage.v1beta2.WriteStream.class, + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Builder.class); } // Construct using com.google.cloud.bigquery.storage.v1beta2.WriteStream.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -694,9 +795,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.bigquery.storage.v1beta2.StreamProto.internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.bigquery.storage.v1beta2.StreamProto + .internal_static_google_cloud_bigquery_storage_v1beta2_WriteStream_descriptor; } @java.lang.Override @@ -715,8 +816,11 @@ public com.google.cloud.bigquery.storage.v1beta2.WriteStream build() { @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.WriteStream buildPartial() { - com.google.cloud.bigquery.storage.v1beta2.WriteStream result = new com.google.cloud.bigquery.storage.v1beta2.WriteStream(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.bigquery.storage.v1beta2.WriteStream result = + new com.google.cloud.bigquery.storage.v1beta2.WriteStream(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -730,19 +834,14 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.WriteStream result.type_ = type_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.commitTime_ = commitTimeBuilder_ == null - ? commitTime_ - : commitTimeBuilder_.build(); + result.commitTime_ = commitTimeBuilder_ == null ? commitTime_ : commitTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.tableSchema_ = tableSchemaBuilder_ == null - ? tableSchema_ - : tableSchemaBuilder_.build(); + result.tableSchema_ = + tableSchemaBuilder_ == null ? tableSchema_ : tableSchemaBuilder_.build(); } } @@ -750,38 +849,39 @@ private void buildPartial0(com.google.cloud.bigquery.storage.v1beta2.WriteStream public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.bigquery.storage.v1beta2.WriteStream) { - return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.WriteStream)other); + return mergeFrom((com.google.cloud.bigquery.storage.v1beta2.WriteStream) other); } else { super.mergeFrom(other); return this; @@ -789,7 +889,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.bigquery.storage.v1beta2.WriteStream other) { - if (other == com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance()) return this; + if (other == com.google.cloud.bigquery.storage.v1beta2.WriteStream.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -833,43 +934,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getCommitTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getTableSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCommitTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getTableSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -879,23 +980,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -904,21 +1008,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -926,30 +1031,37 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -959,18 +1071,22 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Name of the stream, in the form
      * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -980,22 +1096,33 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * Immutable. Type of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Immutable. Type of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ @@ -1006,24 +1133,37 @@ public Builder setTypeValue(int value) { return this; } /** + * + * *
      * Immutable. Type of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type getType() { - com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type result = com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.forNumber(type_); - return result == null ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.UNRECOGNIZED : result; + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type result = + com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.forNumber(type_); + return result == null + ? com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Immutable. Type of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -1037,11 +1177,16 @@ public Builder setType(com.google.cloud.bigquery.storage.v1beta2.WriteStream.Typ return this; } /** + * + * *
      * Immutable. Type of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearType() { @@ -1053,42 +1198,61 @@ public Builder clearType() { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1104,15 +1268,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1123,18 +1290,22 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1147,12 +1318,16 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1165,12 +1340,16 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1178,38 +1357,50 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Create time of the stream. For the _default stream, this is the
      * creation_time of the table.
      * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1217,8 +1408,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp commitTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> commitTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + commitTimeBuilder_; /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1226,13 +1422,18 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the commitTime field is set. */ public boolean hasCommitTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1240,17 +1441,24 @@ public boolean hasCommitTime() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The commitTime. */ public com.google.protobuf.Timestamp getCommitTime() { if (commitTimeBuilder_ == null) { - return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; } else { return commitTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1258,7 +1466,9 @@ public com.google.protobuf.Timestamp getCommitTime() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { @@ -1274,6 +1484,8 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1281,10 +1493,11 @@ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCommitTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (commitTimeBuilder_ == null) { commitTime_ = builderForValue.build(); } else { @@ -1295,6 +1508,8 @@ public Builder setCommitTime( return this; } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1302,13 +1517,15 @@ public Builder setCommitTime(
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { if (commitTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - commitTime_ != null && - commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && commitTime_ != null + && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCommitTimeBuilder().mergeFrom(value); } else { commitTime_ = value; @@ -1321,6 +1538,8 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1328,7 +1547,9 @@ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCommitTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1341,6 +1562,8 @@ public Builder clearCommitTime() { return this; } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1348,7 +1571,9 @@ public Builder clearCommitTime() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { bitField0_ |= 0x00000008; @@ -1356,6 +1581,8 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() { return getCommitTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1363,17 +1590,22 @@ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { if (commitTimeBuilder_ != null) { return commitTimeBuilder_.getMessageOrBuilder(); } else { - return commitTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_; + return commitTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : commitTime_; } } /** + * + * *
      * Output only. Commit time of the stream.
      * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -1381,17 +1613,22 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * means it is not committed.
      * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCommitTimeFieldBuilder() { if (commitTimeBuilder_ == null) { - commitTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCommitTime(), - getParentForChildren(), - isClean()); + commitTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCommitTime(), getParentForChildren(), isClean()); commitTime_ = null; } return commitTimeBuilder_; @@ -1399,8 +1636,13 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() { private com.google.cloud.bigquery.storage.v1beta2.TableSchema tableSchema_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> tableSchemaBuilder_; + com.google.cloud.bigquery.storage.v1beta2.TableSchema, + com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> + tableSchemaBuilder_; /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1408,13 +1650,18 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tableSchema field is set. */ public boolean hasTableSchema() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1422,17 +1669,24 @@ public boolean hasTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tableSchema. */ public com.google.cloud.bigquery.storage.v1beta2.TableSchema getTableSchema() { if (tableSchemaBuilder_ == null) { - return tableSchema_ == null ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : tableSchema_; + return tableSchema_ == null + ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() + : tableSchema_; } else { return tableSchemaBuilder_.getMessage(); } } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1440,7 +1694,9 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema getTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableSchema value) { if (tableSchemaBuilder_ == null) { @@ -1456,6 +1712,8 @@ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableSch return this; } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1463,7 +1721,9 @@ public Builder setTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableSch
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setTableSchema( com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder builderForValue) { @@ -1477,6 +1737,8 @@ public Builder setTableSchema( return this; } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1484,13 +1746,16 @@ public Builder setTableSchema(
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableSchema value) { if (tableSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - tableSchema_ != null && - tableSchema_ != com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && tableSchema_ != null + && tableSchema_ + != com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance()) { getTableSchemaBuilder().mergeFrom(value); } else { tableSchema_ = value; @@ -1503,6 +1768,8 @@ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableS return this; } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1510,7 +1777,9 @@ public Builder mergeTableSchema(com.google.cloud.bigquery.storage.v1beta2.TableS
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearTableSchema() { bitField0_ = (bitField0_ & ~0x00000010); @@ -1523,6 +1792,8 @@ public Builder clearTableSchema() { return this; } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1530,7 +1801,9 @@ public Builder clearTableSchema() {
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getTableSchemaBuilder() { bitField0_ |= 0x00000010; @@ -1538,6 +1811,8 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getTableSch return getTableSchemaFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1545,17 +1820,23 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder getTableSch
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getTableSchemaOrBuilder() { + public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder + getTableSchemaOrBuilder() { if (tableSchemaBuilder_ != null) { return tableSchemaBuilder_.getMessageOrBuilder(); } else { - return tableSchema_ == null ? - com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() : tableSchema_; + return tableSchema_ == null + ? com.google.cloud.bigquery.storage.v1beta2.TableSchema.getDefaultInstance() + : tableSchema_; } } /** + * + * *
      * Output only. The schema of the destination table. It is only returned in
      * `CreateWriteStream` response. Caller should generate data that's
@@ -1563,24 +1844,29 @@ public com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getTableSc
      * The table schema could go out of date during the life time of the stream.
      * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> + com.google.cloud.bigquery.storage.v1beta2.TableSchema, + com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder> getTableSchemaFieldBuilder() { if (tableSchemaBuilder_ == null) { - tableSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.bigquery.storage.v1beta2.TableSchema, com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>( - getTableSchema(), - getParentForChildren(), - isClean()); + tableSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.bigquery.storage.v1beta2.TableSchema, + com.google.cloud.bigquery.storage.v1beta2.TableSchema.Builder, + com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder>( + getTableSchema(), getParentForChildren(), isClean()); tableSchema_ = null; } return tableSchemaBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1590,12 +1876,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.bigquery.storage.v1beta2.WriteStream) } // @@protoc_insertion_point(class_scope:google.cloud.bigquery.storage.v1beta2.WriteStream) private static final com.google.cloud.bigquery.storage.v1beta2.WriteStream DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.bigquery.storage.v1beta2.WriteStream(); } @@ -1604,27 +1890,27 @@ public static com.google.cloud.bigquery.storage.v1beta2.WriteStream getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WriteStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WriteStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1639,6 +1925,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.bigquery.storage.v1beta2.WriteStream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamName.java diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java index 8c42317d9a..ec38e1c726 100644 --- a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java +++ b/proto-google-cloud-bigquerystorage-v1beta2/src/main/java/com/google/cloud/bigquery/storage/v1beta2/WriteStreamOrBuilder.java @@ -1,84 +1,128 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/bigquery/storage/v1beta2/stream.proto package com.google.cloud.bigquery.storage.v1beta2; -public interface WriteStreamOrBuilder extends +public interface WriteStreamOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.bigquery.storage.v1beta2.WriteStream) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Name of the stream, in the form
    * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Immutable. Type of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Immutable. Type of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.bigquery.storage.v1beta2.WriteStream.Type type = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The type. */ com.google.cloud.bigquery.storage.v1beta2.WriteStream.Type getType(); /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Create time of the stream. For the _default stream, this is the
    * creation_time of the table.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -86,11 +130,15 @@ public interface WriteStreamOrBuilder extends
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the commitTime field is set. */ boolean hasCommitTime(); /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -98,11 +146,15 @@ public interface WriteStreamOrBuilder extends
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The commitTime. */ com.google.protobuf.Timestamp getCommitTime(); /** + * + * *
    * Output only. Commit time of the stream.
    * If a stream is of `COMMITTED` type, then it will have a commit_time same as
@@ -110,11 +162,14 @@ public interface WriteStreamOrBuilder extends
    * means it is not committed.
    * 
* - * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp commit_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder(); /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -122,11 +177,16 @@ public interface WriteStreamOrBuilder extends
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the tableSchema field is set. */ boolean hasTableSchema(); /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -134,11 +194,16 @@ public interface WriteStreamOrBuilder extends
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The tableSchema. */ com.google.cloud.bigquery.storage.v1beta2.TableSchema getTableSchema(); /** + * + * *
    * Output only. The schema of the destination table. It is only returned in
    * `CreateWriteStream` response. Caller should generate data that's
@@ -146,7 +211,9 @@ public interface WriteStreamOrBuilder extends
    * The table schema could go out of date during the life time of the stream.
    * 
* - * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.bigquery.storage.v1beta2.TableSchema table_schema = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.bigquery.storage.v1beta2.TableSchemaOrBuilder getTableSchemaOrBuilder(); } diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto b/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/arrow.proto diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto b/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/avro.proto diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto b/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/protobuf.proto diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto b/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/storage.proto diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/stream.proto b/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/stream.proto similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/stream.proto rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/stream.proto diff --git a/owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/table.proto b/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/table.proto similarity index 100% rename from owl-bot-staging/v1beta2/proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/table.proto rename to proto-google-cloud-bigquerystorage-v1beta2/src/main/proto/google/cloud/bigquery/storage/v1beta2/table.proto